11Tami Posted September 23, 2006 Share Posted September 23, 2006 Hello, is there a problem with php calling url's in an array if they are not in the same directory? I can call pages just fine in the same directory but I am trying to call actual web site url's. So I put them in an array instead and it still doesn't work? I looked at all the php manuals and their url instructions don't make sense for what I am trying to do. Anyone know if there is a special command that needs to go in the code to make url's elswhere work, instead of your own web pages? Url's like something.com etc. etc. Thank you very much! Quote Link to comment https://forums.phpfreaks.com/topic/21774-one-question-to-those-who-know-a-lot-about-php/ Share on other sites More sharing options...
alpine Posted September 23, 2006 Share Posted September 23, 2006 It would be better to understand you if you posted some code of what you try to accomplish... Quote Link to comment https://forums.phpfreaks.com/topic/21774-one-question-to-those-who-know-a-lot-about-php/#findComment-97239 Share on other sites More sharing options...
Daniel0 Posted September 23, 2006 Share Posted September 23, 2006 I don't get your problem. Quote Link to comment https://forums.phpfreaks.com/topic/21774-one-question-to-those-who-know-a-lot-about-php/#findComment-97252 Share on other sites More sharing options...
wildteen88 Posted September 23, 2006 Share Posted September 23, 2006 Are you using the file functions, such as fopen, fread etc or file_get_contents() or whever then make sure that the PHP setting [b]allow_url_fopen[/b]is enabled in the php.ini and that php is not running in safe mode.If the allow_url_fopen setting is enabled or PHP is in safe mode then this why you cannot use urls within your code. Quote Link to comment https://forums.phpfreaks.com/topic/21774-one-question-to-those-who-know-a-lot-about-php/#findComment-97267 Share on other sites More sharing options...
11Tami Posted November 22, 2006 Author Share Posted November 22, 2006 What is php safe mode? Quote Link to comment https://forums.phpfreaks.com/topic/21774-one-question-to-those-who-know-a-lot-about-php/#findComment-128459 Share on other sites More sharing options...
wildteen88 Posted November 22, 2006 Share Posted November 22, 2006 It is a PHP setting, which attempts to solve the shared-server security problem. Most (shared) hosts enable this setting. Also In my last post the last sentance should read this:If the allow_url_fopen setting is not enabled or PHP is in safe mode then this is why you cannot use urls within your code. Quote Link to comment https://forums.phpfreaks.com/topic/21774-one-question-to-those-who-know-a-lot-about-php/#findComment-128765 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.