Related
I'm trying to accomplish something in php format and I'm stuck.
I don't want to go into too much detail because I'm trying to surprise a friend on here so I will only go into specifics via pm but here's what I got so far:
I dl'd the eclipse PHP environment and the Zend debugger, got it all set up just fine (I think, lol)
I'm trying to edit an existing .php and with Treve's help was able to determine just exactly what I needed to edit. But I can't figure out how to "play" the code so I can see the changes, or even the original.
When I go to play the .php thru the web portal I only get code, it sees the file and displays it but doesn't convert it to the format I'm looking for, it just shows a large part of the page in plain text.
Any help would be greatly appreciated.
I will owe you one, or two maybe (and I'll actually pay up on it!!).
Please PM me if you need/want specifics. If there is something I am obviously missing then please help me out.
Thanks!
neb
wish i could help
regaw_leinad said:
wish i could help
Click to expand...
Click to collapse
Move along regaw, nothing to see here...
Anyone else? Anyone... anyone? Bueller?
i'm taking a php class and i know < ? p h p
i think thats right??? lol...
Not real proficient in it, but I figured if I can learn PHP in three weeks to allow me to build a web report group builder for the company I work for, I might be able to help.
First, which web server are you using? Apache, IIS or something else? The answer to that question depends on what happens next.
nebenezer said:
I'm trying to accomplish something in php format and I'm stuck.
I don't want to go into too much detail because I'm trying to surprise a friend on here so I will only go into specifics via pm but here's what I got so far:
I dl'd the eclipse PHP environment and the Zend debugger, got it all set up just fine (I think, lol)
I'm trying to edit an existing .php and with Treve's help was able to determine just exactly what I needed to edit. But I can't figure out how to "play" the code so I can see the changes, or even the original.
When I go to play the .php thru the web portal I only get code, it sees the file and displays it but doesn't convert it to the format I'm looking for, it just shows a large part of the page in plain text.
Any help would be greatly appreciated.
I will owe you one, or two maybe (and I'll actually pay up on it!!).
Please PM me if you need/want specifics. If there is something I am obviously missing then please help me out.
Thanks!
neb
Click to expand...
Click to collapse
tkirton said:
Not real proficient in it, but I figured if I can learn PHP in three weeks to allow me to build a web report group builder for the company I work for, I might be able to help.
First, which web server are you using? Apache, IIS or something else? The answer to that question depends on what happens next.
Click to expand...
Click to collapse
Apache2
And I just realized I apparently need GIFEncoder, reading up on it...
uhmm ill take a stab at it, i can probably guess what you're trying to set up by why you are needing but you want to be secretive. if you are using a decent webserver gifencoder should be installed. if you are running a script on a server you set up on your local pc then maybe you havent installed php correctly or it may not be running that why its coming up as txt in your browser.
edit: i see you installed zend, so youre running a server on your pc. im willing to bet you havent started the php service.
i have some webspace i havent used for years if you want some space let me know, u can run the script there
Bonified PHP Guru here... send me a PM and I will see what I can do to help.
I too am a php programer. Your issue is that to don't have the php integrated into your web server correctly best way to solve that would be to find some one that can host the app for you. I currently have my own servers at several co-location sites all running php and can let u use for a while
Download and install XAMPP web server, it's easy, free and works great. Then you can veiw your changes.
Yes install xampp and you will get a server running in no time ... just copy your php to inside the apache folder.
Thanks guys!
Only PHP thread on XDA??
I was searching to see if anyone has managed to compile PHP cli for rooted Android devices, and the only result I found is this thread ...
So I installed xampp, very neat program, but I can't figure out how to use it right.
I'm not sure what I'm doing wrong...
localhost takes me to the xampp screen and myadmin screen works but when I try opening the php in the browser I get "object not found", and the icon on the browser tab switches from the xampp icon to the Zend icon even though I've uninstalled Zend
xampp says Apache and MySQL are running.
Also I went with eclipse-php. I've set up a galileo w/ adt successfully but have not done something right in the php install, I can't create working php projects or files.
I edited and saved as php in notepad++, if anyone wants to check it out and try to get it to execute please let me know
Any help would be appreciated
Thanks
nebenezer said:
localhost takes me to the xampp screen and myadmin screen works but when I try opening the php in the browser I get "object not found", and the icon on the browser tab switches from the xampp icon to the Zend icon even though I've uninstalled Zend
Click to expand...
Click to collapse
It sounds like you need place the php file into the working root directory for XAMPP. You may even need to rename the php file as index.php and place that in the root.
I think you are just trying to open the php file from your file explorer. The php file needs to be in the web root directory and you access it like you would a webpage. ( http://127.0.0.1/YOURFILE.php ) <--- but like I said it needs to be in the webroot directory.
centran said:
It sounds like you need place the php file into the working root directory for XAMPP. You may even need to rename the php file as index.php and place that in the root.
I think you are just trying to open the php file from your file explorer. The php file needs to be in the web root directory and you access it like you would a webpage. ( http://127.0.0.1/YOURFILE.php ) <--- but like I said it needs to be in the webroot directory.
Click to expand...
Click to collapse
Thank you,
I tried your suggestions to no avail. I put the file in (separately, not multiple copies) c:\, c:\xampp and c:\xampp\php and always get the error.
I tried renaming the file index.php, same error
I need to put this on the shelf for a bit and do something productive...
Thanks for your help guys!
nebenezer said:
Thank you,
I tried your suggestions to no avail. I put the file in (separately, not multiple copies) c:\, c:\xampp and c:\xampp\php and always get the error.
I tried renaming the file index.php, same error
I need to put this on the shelf for a bit and do something productive...
Thanks for your help guys!
Click to expand...
Click to collapse
The correct directory for xampp is in htdocs.
damageless said:
The correct directory for xampp is in htdocs.
Click to expand...
Click to collapse
Tried that one also.. BUT I didn't try it after renaming to index.php
One more shot!
*edit, still just getting raw code, which I suppose is better than an error code
thanks damage
pm me your php script. probably best to just pastebin.ca it. If it is showing you the code after putting it in the htdocs directory that means you found the right directory. Usually when php is not configured correctly on your web server it doesn't just show you the code, the mime type is not recognized and offers it as a download. So your browser would try to download "index.php" or whatever instead of just showing you raw php.
hahhaah.. I know what you're up to....
Here's how I did it before your modifications you're working on: http://i0v.net/matrix/
Hi Guys,why is it the Window Folder in the File Explorer takes longer time to open? I need to check some software which I download from a website in my Opera 9 downloader folder,thanks
cammys said:
Hi Guys,why is it the Window Folder in the File Explorer takes longer time to open? I need to check some software which I download from a website in my Opera 9 downloader folder,thanks
Click to expand...
Click to collapse
Because there are thousands of files to cache and display.
Any suggestion on how to reduce the cache or whatsoever?
cammys said:
Any suggestion on how to reduce the cache or whatsoever?
Click to expand...
Click to collapse
There isn't much you can do about it as far as I know. There are a few registry tweaks I think, but none of them make much difference.
Been looking around for a way to change the User Agent of an application.. ? can anyone point me in the right direction?
p.s: I am rooted, and i searched through the forums
You'd have to open up/decompile the .apk, find the file that it's stored in, edit it, recompile/repack and install.
thanks!
what file to edit in particular?
Not a clue, I suspect you'll have to look through the folders 'til you find it.
What are you trying to do?
Apps check with the build prop to see what your is/has and then shows it the appropriate info/features.
Yeah what apk are you trying to change the user agent? mms.apk? ect...
I am trying to "trick" a webserver to think that i am coming from a specific application.. this application has its own UA identifier..
If the server saw any other identifier, it won't display the results of a webquery.
The apk is an app i did in appinventor..
bump anyone?
If password for any website is saved in the native browser of the phone, then can we retrieve the password like we can do in Firefox on desktop?
The phone has Android 2.2
vijay.gupta said:
If password for any website is saved in the native browser of the phone, then can we retrieve the password like we can do in Firefox on desktop?
The phone has Android 2.2
Click to expand...
Click to collapse
Search the browser's data in system or sdcard, I'm pretty sure you'll find it
Thanks Jason for the reply. Can you please let me know the exact folder where browser data is saved as I looked but could not find it?
vijay.gupta said:
Thanks Jason for the reply. Can you please let me know the exact folder where browser data is saved as I looked but could not find it?
Click to expand...
Click to collapse
Which browser are you using?
Phone's native browser
vijay.gupta said:
Phone's native browser
Click to expand...
Click to collapse
Oh yeah, sorry for not reading carefully
Go inside "/data/data/com.android.browser/" with Root Explorer or maybe other same kind of app, then search for the things you need. I'm sure all of your data is there!
I use ES Explorer to view Files and in the data folder in my sdcard, there is only one folder: com.keramidas.Titanium Backup
Am I doing something wrong?
vijay.gupta said:
I use ES Explorer to view Files and in the data folder in my sdcard, there is only one folder: com.keramidas.Titanium Backup
Am I doing something wrong?
Click to expand...
Click to collapse
No, it's in /data not /sdcard/data You must use a file explorer like "Root Explorer", which can navigate to the root :good: Also, you'll need to root your phone first! Here's the guide
hit "thanks" if i helped you
I already rooted my phone and I go to \data. Inside\data, there is no file shown...
vijay.gupta said:
I already rooted my phone and I go to \data. Inside\data, there is no file shown...
Click to expand...
Click to collapse
you can navigate any files from Es file explorer.
just change the path from sdcard to system, there you can find all system files including cache also
you can change directory in settins after this exit the explorer then open the explorer again.
IF I HELPED YOU HIT THANKS
pchenna143 said:
you can navigate any files from Es file explorer.
just change the path from sdcard to system, there you can find all system files including cache also
you can change directory in settins after this exit the explorer then open the explorer again.
IF I HELPED YOU HIT THANKS
Click to expand...
Click to collapse
No, the data is not located in /system, it is located in /data he'll need to change the path to the root of everything "/"
@OP: Go inside /data/data/com.android.browser/ with Root Explorer (highly recommended), all the browser data are stored in there!
Jason-EX said:
@OP: Go inside /data/data/com.android.browser/ with Root Explorer (highly recommended), all the browser data are stored in there!
Click to expand...
Click to collapse
Just to clarify some things :
If you are on the sd-card you're acctually in /mnt/sdcard
You will need to go two steps back, to /
From there follow the path Jason described ...
Hope this helps.
Es explorer can also be used as a root explorer, you have to go to settings, scroll down, check the box and approve it when the superuser dialog appears
ya..done that...now I am in data/data/com.android.browser, now, there are 9 folders here and in each folder there are many files. I dont know how to open these files and do I need to open each file?
and how to know that which file I need to open?
Can anyone please give me direction on which folder to open at least?
cache, database or something else?
vijay.gupta said:
Can anyone please give me direction on which folder to open at least?
cache, database or something else?
Click to expand...
Click to collapse
I'm not really sure, but I'm sure that every browser data is in that directory.
Thanks Jason for the reply. Can you please check after saving password for any website that where it stores the password?
Meanwhile, I am also trying....will post if I find out anything
An android app for that...
I found a cool Android app, which can recover and edit stored browser Passwords. Very easy: play.google.com/store/apps/details?id=tkstudio.browserpasswordrecovery
turn on root explorer option from option menu . then you can access
turn on root explorer option from option menu . then you can access
can't help it. whoever store's password in a device
Sent from my Xperia T using XDA-Developers mobile app
Hey guys.
I'm a bit intrigued. There's an unknown folder in the root of my phone's internal memory. I delete it every few weeks when I check the storage and sweep all the junk I might find in there.
Here's the folder structure.
GT-I9505\Internal storage\.sp\.94\.743\.cache\LazyList.
Inside that last folder (LazyList), there's a 23 KB file named 663014360. It has no extension. Opening it with Notepad / WordPad reveals a lot of unreadable characters (of course...).
I am having a hard time tracing it back to any app (if it's an app that's creating it, or the ROM itsellf ).
Does anyone here know what this .sp sh*t is all about...?
For what it's worth, I am running the latest SlimKat ROM.
Formhault said:
Hey guys.
I'm a bit intrigued. There's an unknown folder in the root of my phone's internal memory. I delete it every few weeks when I check the storage and sweep all the junk I might find in there.
Here's the folder structure.
GT-I9505\Internal storage\.sp\.94\.743\.cache\LazyList.
Inside that last folder (LazyList), there's a 23 KB file named 663014360. It has no extension. Opening it with Notepad / WordPad reveals a lot of unreadable characters (of course...).
I am having a hard time tracing it back to any app (if it's an app that's creating it, or the ROM itsellf ).
Does anyone here know what this .sp sh*t is all about...?
For what it's worth, I am running the latest SlimKat ROM.
Click to expand...
Click to collapse
try this app - https://play.google.com/store/apps/details?id=com.kokanes.fileextensiondirectory
Sent from my GT-I9500
Formhault said:
Hey guys.
I'm a bit intrigued. There's an unknown folder in the root of my phone's internal memory. I delete it every few weeks when I check the storage and sweep all the junk I might find in there.
Here's the folder structure.
GT-I9505\Internal storage\.sp\.94\.743\.cache\LazyList.
Inside that last folder (LazyList), there's a 23 KB file named 663014360. It has no extension. Opening it with Notepad / WordPad reveals a lot of unreadable characters (of course...).
I am having a hard time tracing it back to any app (if it's an app that's creating it, or the ROM itsellf ).
Does anyone here know what this .sp sh*t is all about...?
For what it's worth, I am running the latest SlimKat ROM.
Click to expand...
Click to collapse
It is very good that although you are deleting the launcher's (or some other app) cache, it restores it.
I can understand that you're mad about it and you would like that your launcher (or app) shall not create any cache and consequently would work slower.
As well I appreciate your huge work with tracing it (5th link in google search provides the answer what is it).
If you really care what is, your work would be pretty simple. Factory reset your phone, start each built in ROM app and check the folder after. Then, install your apps one by one, starting each of it and each time after closure checking the folder. Easy.
anu.cool said:
try this app - https://play.google.com/store/apps/details?id=com.kokanes.fileextensiondirectory
Click to expand...
Click to collapse
Sorry, but that app is of no use to me since the file in question has no extension.
spamtrash said:
It is very good that although you are deleting the launcher's (or some other app) cache, it restores it.
I can understand that you're mad about it and you would like that your launcher (or app) shall not create any cache and consequently would work slower.
As well I appreciate your huge work with tracing it (5th link in google search provides the answer what is it).
If you really care what is, your work would be pretty simple. Factory reset your phone, start each built in ROM app and check the folder after. Then, install your apps one by one, starting each of it and each time after closure checking the folder. Easy.
Click to expand...
Click to collapse
What exactly did you use as a search term on Google?
I know most apps create folders that are legible (com.android.thisgameproducer). Buth with this given specific folder's structure, I don't know what it could be.
For what it's worth, I have been trying to find an answer to this for some months. But only now I made a topic about it. I did my research, which turned out nothing... :/
Formhault said:
. I did my research, which turned out nothing... :/
Click to expand...
Click to collapse
Have you:
wiped your phone, and then used titanium backup for freezing each app, restoring it, and verifying which one creates it? did you repeated the same for each installed by you app? Well, if this folder/file is NOT created by one application (or installed, or embedded into the ROM), then only one explanation is that your phone is used by E.T at night while he "phone home" and this is his encrypted message.:cyclops:
about extension/filetype:does the file have header?
spamtrash said:
Have you:
wiped your phone, and then used titanium backup for freezing each app, restoring it, and verifying which one creates it? did you repeated the same for each installed by you app? Well, if this folder/file is NOT created by one application (or installed, or embedded into the ROM), then only one explanation is that your phone is used by E.T at night while he "phone home" and this is his encrypted message.:cyclops:
about extension/filetype:does the file have header?
Click to expand...
Click to collapse
You know where that .sp folder comes from? Perhaps you were able to find something on Google that I didn't all this time...
I don't know what that header is / should be...
I know I could wipe all and start over again and check each app... But that's too time consuming... Hence I am asking here.
Formhault said:
You know where that .sp folder comes from? Perhaps you were able to find something on Google that I didn't all this time...
I don't know what that header is / should be...
I know I could wipe all and start over again and check each app... But that's too time consuming... Hence I am asking here.
Click to expand...
Click to collapse
1. No idea which particular app makes the cache file, but it is clear that it is cach for one app you have installed, or one you have embedded in ROM.
2. Header is the two first bytes of file in the notepad viewer: for example, PK is characteristic for zip files and by changing the extension you could see what's inside.
3. No one who does not have your ROM AND your specific set of apps installed would be able to provide the answer, therefore without doing your homework, it is unlikely that you'd have information you want.
spamtrash said:
1. No idea which particular app makes the cache file, but it is clear that it is cach for one app you have installed, or one you have embedded in ROM.
2. Header is the two first bytes of file in the notepad viewer: for example, PK is characteristic for zip files and by changing the extension you could see what's inside.
3. No one who does not have your ROM AND your specific set of apps installed would be able to provide the answer, therefore without doing your homework, it is unlikely that you'd have information you want.
Click to expand...
Click to collapse
Well, I don't really know what homework I should do here, as the folder structure is weird (come on, just numbers? ) and the file has no obvious meaning whatsoever. I'm usually a tech guy, but when all I see is numbers, I'm really not that wise... :silly:
Since I know for a fact that I don't have any rogue apps installed, guess I should leave it be and carry on.
But anyway, just for the heck of it, I opened the file in Notepad. Here's the first line (as seen in Notepad, lol).
Code:
ÿØÿà JFIF ÿÛ „
(1#%(:3=<[email protected]\[email protected]_bghg>Mqypdx
I'm sorry, but this is way out of my league. :/
Mod Edit
Thread closed at the request of the [OP]
malybru
Forum Moderator