homepage Welcome to WebmasterWorld Guest from 54.211.201.65
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
Php help
basic help!
RebeccaK




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

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




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

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




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

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




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

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




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

and Maria even if your earlier files were created as

phpfile.php.htm

you could just rename them as

phpfile.php

;)

dreamcatcher




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

Welcome to Webmaster World Maria444 & RebeccaK. :)

RebeccaK




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

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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved