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 04-08-2005, 06:36 AM Php!?!
Junior Talker

Posts: 2
Trades: 0
I was wondering, im completely new to using PHP. All i want to do is enable my website to use php instead of standard urls.

So instead of www.test.co.uk/pictures.html

it would come up with something like www.test.co.uk/index.php?id=3

just so the actual html file names are not there.... any ideas? any help would be very much appreciated i have to do this for 35 .html files :S

Thanks in advance

Storm
Storm is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-08-2005, 06:41 AM
brokensoul2271's Avatar
- - - - - - - - -

Posts: 750
Location: Lancashire, UK
Trades: 0
So you want a quick way of changing your files to php? Dont thin there is one. you will need to change the extensions manually...
__________________
Yes, indeed...

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
brokensoul2271 is offline
Reply With Quote
View Public Profile Visit brokensoul2271's homepage!
 
Old 04-08-2005, 06:42 AM
pencer's Avatar
Extreme Talker

Posts: 179
Location: Nottingham UK
Trades: 0
Does your current host support PHP?
If all you want to do is change your html files to php files then just rename the file extension.

Just out of interest, why would you want to do that?
__________________
Upto 90% of all home computers are infected with Spyware.
Please login or register to view this content. Registration is FREE


Making money online is easy when you know
Please login or register to view this content. Registration is FREE

pencer is offline
Reply With Quote
View Public Profile Visit pencer's homepage!
 
Old 04-08-2005, 06:45 AM
Junior Talker

Posts: 2
Trades: 0
Basically, all i wanted to do was make it so that people cant see the html files and names. i know that you have to create a php file that contains all the actual links. but i just didn't know how to code it in php
Storm is offline
Reply With Quote
View Public Profile
 
Old 04-08-2005, 07:00 AM
brokensoul2271's Avatar
- - - - - - - - -

Posts: 750
Location: Lancashire, UK
Trades: 0
ohhhhh. so you want to hide the file names... Sorry.
Is there nothing on hot scripts? (www.hotscripts.com)
__________________
Yes, indeed...

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
brokensoul2271 is offline
Reply With Quote
View Public Profile Visit brokensoul2271's homepage!
 
Old 04-08-2005, 07:09 AM
brokensoul2271's Avatar
- - - - - - - - -

Posts: 750
Location: Lancashire, UK
Trades: 0
maybe this would help
http://www.hotscripts.com/Detailed/28938.html not sure if its what your looking for but sounds similar...
__________________
Yes, indeed...

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
brokensoul2271 is offline
Reply With Quote
View Public Profile Visit brokensoul2271's homepage!
 
Old 04-08-2005, 03:03 PM
x2digital's Avatar
Novice Talker

Posts: 14
Trades: 0
You could create a basic php file that includes a page according to an id number.
You could work this into a mySQL database, but here's the simple version:

Code:
<?
// Define URLS
$1 = "http://www.yourdomain.com/index.html";
$2 = "http://www.thisdomain.com";
$3 = "http://www.anotherdomain.co.uk";

// Include URL
$idno = $_POST['id'];
include("$$idno");
?>
Simply visit the php page, such as yourdomain.com/redirect.php?id=2
and the code gets the URL and displays it.

The reason for the ("$$idno") is because just using $idno will only display the number, $$idno will display the $ before the number, making $2, which then evaluates to the URL.
__________________
Kind Regards,

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


Please login or register to view this content. Registration is FREE
x2digital is offline
Reply With Quote
View Public Profile Visit x2digital's homepage!
 
Old 04-08-2005, 03:11 PM
Skilled Talker

Posts: 62
Trades: 0
Ask your host if you have mod_rewrite.
If you do, there is a better and faster way to do this.
The Jasong is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Php!?!
 

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 0.35595 seconds with 12 queries