Computer Boffins wanted!
Author
Discussion

deltafox

Original Poster:

3,839 posts

261 months

Sunday 17th April 2005
quotequote all
Ok, i have a question. How the heck do i run php scripts saved in the temporary internet folder?

Basically ,ive modified a parameter of the script that requires it to email me a password and saved it in the temporary internet folder to allow me run it.
For some reason, when i find the actual saved file it looks empty....theres nothing saved.
What am i doing wrong, do i need to leave it alone and go do something more useful, am i likely to blow my O/s to Bluescreen hell if i keep messing?

Any help would be mucho thankyou!


>>> Edited by deltafox on Sunday 17th April 17:34

vescovo

8,875 posts

311 months

Sunday 17th April 2005
quotequote all
Do you have a webserver installed if you're trying to run it locally?

Silver Dream

12 posts

258 months

Sunday 17th April 2005
quotequote all
If you're running windows, you'll need to install php to be able to run the script, along with a web service like MS's personal web server or apache.

www.php.net have the installers for windows, although you may have to do some manual configuration, all the info will be in the install readme's.

docevi1

10,430 posts

277 months

Sunday 17th April 2005
quotequote all
PHP is a scripted language and requires an interpreter ro do what you want in realtime, i.e. it reads the file line-by-line and does what it says. In that light you need to install the interpreter on your machine...

If it's XP Pro or similar you can chuck IIS on and then install php to get it to run, but IIS is a big security no-no

bga

8,134 posts

280 months

Sunday 17th April 2005
quotequote all
docevi1 said:
PHP is a scripted language and requires an interpreter ro do what you want in realtime, i.e. it reads the file line-by-line and does what it says. In that light you need to install the interpreter on your machine...

If it's XP Pro or similar you can chuck IIS on and then install php to get it to run, but IIS is a big security no-no

Foxserv is pretty good & no need for IIS

chrisjl

787 posts

311 months

Sunday 17th April 2005
quotequote all
deltafox said:
How the heck do i run php scripts saved in the temporary internet folder?

Your phrasing in a couple of places has me thinking that you've visited http://somewhere.com/page.php and are now hoping to change the behaviour of the page, but what you've got in your 'temporary internet files' folder is only the ouptut of the script, not the script itself.
If that's not the case, feel free to ignore this post and carry on!

deltafox

Original Poster:

3,839 posts

261 months

Sunday 17th April 2005
quotequote all
chrisjl said:

deltafox said:
How the heck do i run php scripts saved in the temporary internet folder?


Your phrasing in a couple of places has me thinking that you've visited http://somewhere.com/page.php and are now hoping to change the behaviour of the page, but what you've got in your 'temporary internet files' folder is only the ouptut of the script, not the script itself.
If that's not the case, feel free to ignore this post and carry on!


Thanks for that guys, some interesting answers there...(take me a week to work out what ya said! )

Ive been learning, well trying to learn bits and bobs and a particular thing i had to do was to change an email addy in a script so that when run instead of sending the email reminder to the named recipient, it sends it to you instead.....
Youre right about the temporary internet folder tho.......looks like i have work to do!