GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   PHP Experts... help me (https://gfy.com/showthread.php?t=1107841)

roganoli 04-27-2013 06:32 AM

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 :winkwink:

sarettah 04-27-2013 06:48 AM

Quote:

Originally Posted by roganoli (Post 19600257)
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 :winkwink:

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.

.

Datebizguy 04-27-2013 07:02 AM

try some othe forum as well

Fetish Gimp 04-27-2013 07:23 AM

Very similar to what you're asking
http://stackoverflow.com/questions/8...e-get-contents

sarettah 04-27-2013 07:31 AM

Quote:

Originally Posted by roganoli (Post 19600257)
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 :winkwink:

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 times are GMT -7. The time now is 07:28 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123