Webmaster Forum

Ezilon Directory   High Bandwidth Dedicated Servers   V7N Directory
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Reply
 
LinkBack Thread Tools Display Modes
Old 02-24-2007, 10:56 AM   #1 (permalink)
Inactive
 
bytech's Avatar
 
Join Date: 10-13-03
Location: Manitoba, Canada
Posts: 573
iTrader: 0 / 0%
Latest Blog:
None

bytech is just really nicebytech is just really nicebytech is just really nicebytech is just really nicebytech is just really nicebytech is just really nicebytech is just really nicebytech is just really nicebytech is just really nicebytech is just really nice
Send a message via Skype™ to bytech
How-to Save PHP's require URL

I'm receiving a require 'http://somethingurl.com/' from a remote server. I need to extract some values from the actual URL. I know how to do that, but only once the URL is saved in a variable. How can I save the URL to a variable from the provided "require" line? Any tips greatly appreciated.
bytech is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 02-24-2007, 07:01 PM   #2 (permalink)
Contributing Member
 
Izzmo's Avatar
 
Join Date: 11-01-03
Location: Kansas City
Posts: 981
iTrader: 0 / 0%
Latest Blog:
None

Izzmo is a splendid one to beholdIzzmo is a splendid one to beholdIzzmo is a splendid one to beholdIzzmo is a splendid one to beholdIzzmo is a splendid one to beholdIzzmo is a splendid one to beholdIzzmo is a splendid one to beholdIzzmo is a splendid one to beholdIzzmo is a splendid one to beholdIzzmo is a splendid one to beholdIzzmo is a splendid one to behold
Send a message via ICQ to Izzmo Send a message via AIM to Izzmo Send a message via MSN to Izzmo Send a message via Yahoo to Izzmo
I'm not fully following you on this. You said you already saved a variable from the URL? So, why would you need to get the requre line if you already have it? Can you show us an example, or the code you have?
__________________
~Izzmo
ZeroWeb Hosting & Design - Customizable hosting for every type of user!
Izzmo is offline  
Add Post to del.icio.us
Reply With Quote
Old 02-26-2007, 01:39 PM   #3 (permalink)
Inactive
 
bytech's Avatar
 
Join Date: 10-13-03
Location: Manitoba, Canada
Posts: 573
iTrader: 0 / 0%
Latest Blog:
None

bytech is just really nicebytech is just really nicebytech is just really nicebytech is just really nicebytech is just really nicebytech is just really nicebytech is just really nicebytech is just really nicebytech is just really nicebytech is just really nice
Send a message via Skype™ to bytech
Basically I receive a piece of code from an advertiser, and it needs to be pasted into a website. The code includes a "require 'www.something.com?id=xx?method=banner?etc...'"

I'd like to extract the variables included in the URL, like the ID and method in the above example. I don't know how to do that when I'm simply given the 'require' line. I can ask the provider to send it down as a variable and process that, but I am not sure if this is an option, and even if, would like to work as much as possible with the existing setup.

I have a feeling the answer to this question is that there is no way to "recall" via PHP, what 'require' calls have just been made... the only way to extract the variables will be if I can get the URL in the form of a variable that can be used for processing/parsing, or something similar...
bytech is offline  
Add Post to del.icio.us
Reply With Quote
Old 02-28-2007, 04:14 PM   #4 (permalink)
Inactive
 
bytech's Avatar
 
Join Date: 10-13-03
Location: Manitoba, Canada
Posts: 573
iTrader: 0 / 0%
Latest Blog:
None

bytech is just really nicebytech is just really nicebytech is just really nicebytech is just really nicebytech is just really nicebytech is just really nicebytech is just really nicebytech is just really nicebytech is just really nicebytech is just really nice
Send a message via Skype™ to bytech
Okay, I got around this one and won't need to do this anymore. Still, if anyone has an answer for future benefit of others, feel free to drop us a few hints.
bytech is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Require drop down box selection CharlieWon Coding Forum 7 02-07-2008 04:31 PM
htaccess - require part filename Nelsobra Coding Forum 10 06-04-2004 08:56 PM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 05:30 AM.
© Copyright 2008 V7 Inc