Welcome to WebmasterWorld Guest from 54.226.62.26

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Php help

basic help!

     

RebeccaK

1:54 am on Jul 16, 2005 (gmt 0)

10+ Year Member



I was just wondering if someone could help me with some basic PhP. I have recently acquired a free script which allows me to create an image gallery. It tells me to put the script in with my images. My only problem is I'm not sure how to call the script. At the moment i have a range of buttons loading different HTML files into the iframe. In one of those HTML files that loads into the iframe i want the image gallery. Im sure this is quite basic, however this is all very new to me! Thanks in advance!

Anyango

4:47 am on Jul 16, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hey RebeccaK

Welcome to Webmasterworld.

Before Expecting to load any PHP scripts there are some points in the checklist which you should make sure they work, before moving ahead.

1) Does your server support php? html files can be run by any server but php files need to have support of php added before they can recognize php language. for example on a windows based server you ll probably have support for ASP and ASP.NET rather then php (usually)

2) If you are not sure if the answer to Question 1 is yes or no, then do this

<?
phpinfo();
?>

paste the above code into a file named like test.php
save it, upload it to root of your server, call it and see what it prints out, if you see a long page telling details about php's installation on your server, This means you are ready to rock n roll. BUT in any other case , i mean if you dont see PHP details in browser when you call that file, then be assured that some more work has to be done before going live with php ;)

Let me know about anything you find.

I ll be glad to guide you as long as you say.

Thanks
Kami

Maria444

11:58 pm on Jul 16, 2005 (gmt 0)

10+ Year Member



Hi, I think my question is similar. My server does support php, in fact someone uploaded a directory for me because I know nothing about php. I only know how to create html files in notepad.

But I want to learn how to upload a php page myself. The creator of the directory sent me a php page to upload which I guess should be first saved as a php file. But my notepad cannot save it as php - it can save it either as a text file or as an html file. Therefore, all I get is a page called ...submit.php.htm which shows nothing.

Can you show me how to save this page as a php file?

Thank you
Maria

Anyango

7:18 am on Jul 17, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Maria

That is easy!

when you create a file in notepad and intent to save it as a php file, you ll see following three options
when you click to save it

File Name :

Save as Type:

Encoding:

Now do this

1) in filename section enter the filename with .php extensionm like first.php

2) Select the Drop Down box in "Save as Type" and select its option "All Files", which by default would be "Text Documents(*.txt)", after when you select "All Files"

3) just simply save it to the location where you want to.

Cheers!

Anyango

7:21 am on Jul 17, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



and Maria even if your earlier files were created as

phpfile.php.htm

you could just rename them as

phpfile.php

;)

dreamcatcher

8:08 am on Jul 17, 2005 (gmt 0)

WebmasterWorld Senior Member dreamcatcher is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Welcome to Webmaster World Maria444 & RebeccaK. :)

RebeccaK

1:02 am on Jul 20, 2005 (gmt 0)

10+ Year Member



Thank you Kami for you help! I have been successful to this point! firstly with your suggestion and now ive got the image gallery working! I'm sure there will be many more questions to come! thank you again for your help!

rebecca

 

Featured Threads

Hot Threads This Week

Hot Threads This Month