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 09-26-2007, 03:37 PM How would i do this?
amw_drizz's Avatar
Ultra Talker

Posts: 340
Name: Jon
Location: New York
Trades: 0
Okay how would i do this,

i want to do something like
PHP Code:
$url $var1 $var2 $var3 $var4 
since i am making a url and when i do that in the include() it fails and throws the error.

cause it is pulling data from 2 different arrays to make the url 1 array to define what folder the file(s) are in and the 2nd array to tell the file to use. but i really dont want 1 array as it would be quite long and tedious to debug. as the first array points out 8 different folders and the 2nd array contains 7 different commands for editing/viewing data.

so in short with only 1 array that would be 56 files linked to the everything in 1 dir.

and yes the file names are the same in every dir

so how would i write 1 var to use 4 different vars to make up the url address?
__________________
AMW_Drizz
Dev Machine:: Apache 2.2.6 PHP 5.2.6 MySQL 5.1
amw_drizz is offline
Reply With Quote
View Public Profile Visit amw_drizz's homepage!
 
 
Register now for full access!
Old 09-26-2007, 03:52 PM Re: How would i do this?
rogem002's Avatar
PHP Chap

Posts: 843
Name: Mike
Location: United Kingdom
Trades: 0
PHP Code:
<?php
$url 
"$var1 $var2 $var3 $var4";

// Or
$url "{$var1} {$var2} {$var3} {$var4}";

// or
$url $var1.$var2.$var3.$var4;

// or
$url "{$var1}"."{$vars}"."{$var3}"."{$var4}";


?>
__________________
My Blog/Site:
Please login or register to view this content. Registration is FREE

Last edited by rogem002; 09-26-2007 at 03:54 PM..
rogem002 is offline
Reply With Quote
View Public Profile Visit rogem002's homepage!
 
Old 09-26-2007, 06:01 PM Re: How would i do this?
amw_drizz's Avatar
Ultra Talker

Posts: 340
Name: Jon
Location: New York
Trades: 0
thanks so much the first $var1. etc worked
__________________
AMW_Drizz
Dev Machine:: Apache 2.2.6 PHP 5.2.6 MySQL 5.1
amw_drizz is offline
Reply With Quote
View Public Profile Visit amw_drizz's homepage!
 
Reply     « Reply to How would i do this?
 

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