![]() |
quick php question?
Does this make any sense to any of you?
1. I have a PHP site - it loads all pages referencing < head.inc.php > 2. I need a curl feature to include in the < head.inc.php > file that performs 1 of 2 things. Step 1 - downloads a webpage that contains YES or NO only from a different server and based on the results either: (a) result = yes (does nothing - page loads as normal) (b) result = no (forwards the user to a different website address) |
yes it makes sense, what do you want to know about it?
|
of course, its all about if echoing....
|
it makes sense. so what's the question?
|
lets see if it will let me write it in here... but you dont need curl at all.
Code:
$url = "url"; |
Code:
$url = "url"; but that would only work if fopen is allowed to get URLs, if not then you still need curl |
This whole design is absolutely atrocious and going to cause not only latency through this major bottleneck, but one hell of a point of failure.
If you use file(), or cURL, set a reasonable timeout value. |
why - he'll need curl since the page is on a different server as is a script not a flat file.
|
All times are GMT -7. The time now is 11:36 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123