Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 04-27-2013, 06:32 AM   #1
roganoli
Confirmed User
 
roganoli's Avatar
 
Join Date: Dec 2004
Posts: 757
PHP Experts... help me

PHP Code:
$html file_get_contents_curl("http://example.com/"); 
How to put <? echo "$url"; ?> via echo in the URL above... is possible?

I was wondering how to make it work.

Thanks for help
roganoli is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-27-2013, 06:48 AM   #2
sarettah
see you later, I'm gone
 
Industry Role:
Join Date: Oct 2002
Posts: 14,073
Quote:
Originally Posted by roganoli View Post
PHP Code:
$html file_get_contents_curl("http://example.com/"); 
How to put <? echo "$url"; ?> via echo in the URL above... is possible?

I was wondering how to make it work.

Thanks for help
I am not sure what you are asking but:

1. do you have a user defined function called file_get_contents_curl ? Because as far as I know PHP does not. It has file_get_contents() or you can use a curl routine for the same thing.

2. If in the example you gave you mean file_get_contents then that code should end up with all the contents of the example.com page stored in a var called $html.

3. echo "url"; should probably be echo $url; once you have something in the var called $url.

So, if you could be clearer about what you want to do, I might be able to answer.

Hope that helps.

.
__________________
All cookies cleared!
sarettah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-27-2013, 07:02 AM   #3
Datebizguy
Confirmed User
 
Industry Role:
Join Date: Nov 2012
Posts: 241
try some othe forum as well
Datebizguy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-27-2013, 07:23 AM   #4
Fetish Gimp
Confirmed User
 
Industry Role:
Join Date: Feb 2005
Posts: 1,699
Very similar to what you're asking
http://stackoverflow.com/questions/8...e-get-contents
__________________
Strapon Seduction - femdom blog | Twitter
Fetish Gimp is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-27-2013, 07:31 AM   #5
sarettah
see you later, I'm gone
 
Industry Role:
Join Date: Oct 2002
Posts: 14,073
Quote:
Originally Posted by roganoli View Post
PHP Code:
$html file_get_contents_curl("http://example.com/"); 
How to put <? echo "$url"; ?> via echo in the URL above... is possible?

I was wondering how to make it work.

Thanks for help
revisiting for a second.

If what you are tring to do is display the html from example.com then once you have the file_get_contents_curl() changed to file_get_contents() then you would just echo $html.

So something like:

$html = file_get_contentsl("http://example.com/");
echo $html;

.
__________________
All cookies cleared!
sarettah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.