Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 10-17-2007, 07:14 AM Php Basics
Super Spam Talker

Latest Blog Post:
Omegle.com
Posts: 800
Trades: 0
Hi guys

I have to confess to knowing nothing about php, so im sure the questions i am going to ask are very basic, i have tryed lookin on varios web pages and they assume some knowledge of php, which i dont have lol.

I have got a php script im tryin to install ive uploaded to cgi folder, into another folder called resize, the file is just index.php.

What i cant figure out is how do u call this file ive tryed

domain.co.uk/resize/index.php

Tryed the following and it just gives me a not found error ?

What have i done wrong ?

Woc
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
usearchme is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-17-2007, 07:27 AM Re: Php Basics
Defies a Status

Posts: 1,606
Trades: 0
First off, php scripts do not have to be in the cgi bin. They will run in any directory on a php enabled server.

The answer to your question is:

file called file is in same directory
Quote:
<?php include("filename.php"); ?>
If it is in a different directory:
Quote:
<?php include("directory/filename.php"); ?>
If you copy the above to use paste it to notepad before you paste it into your page. These boards add formatting characters to the text.
__________________
Colbyt

Please login or register to view this content. Registration is FREE
colbyt is offline
Reply With Quote
View Public Profile
 
Old 10-17-2007, 07:46 AM Re: Php Basics
solomongaby's Avatar
Webmaster Talker

Latest Blog Post:
How Do You Find Music Online ?
Posts: 522
Name: Gabe Solomon
Location: Romania
Trades: 1
cgi folder ?
you should install them in the http root of the server ... usualy called public_html
__________________
If you like my posts ... TK is appreciated:)

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
solomongaby is offline
Reply With Quote
View Public Profile Visit solomongaby's homepage!
 
Old 10-17-2007, 08:17 AM Re: Php Basics
Foundationflash's Avatar
Ultra Talker

Posts: 410
Name: Harry Burt
Location: Colchester, Essex, England
Trades: 0
You can't directly get anything in a cgi folder easily, I don't think. Just put all stuff in the main root folder of the site.
__________________
Foundation Flash tutorials :
Please login or register to view this content. Registration is FREE


New Dreamed Up Web Design:
Please login or register to view this content. Registration is FREE
Foundationflash is offline
Reply With Quote
View Public Profile Visit Foundationflash's homepage!
 
Old 10-17-2007, 08:46 AM Re: Php Basics
Super Spam Talker

Latest Blog Post:
Omegle.com
Posts: 800
Trades: 0
Hi guys

Thanks for the advice, ive now got it working, i remember installing a script previously and i had to put it all in teh cgi bin for some reason, so got a bit confused, i just stuck it in a directory from the root and all is working

Woc
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
usearchme is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Php Basics
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.06448 seconds with 12 queries