Re: [PHP] Problems with remote include
On Thu, 2003-10-30 at 17:00, Chris Shiflett wrote: So the server where you're running the PHP script can't connect to the server you specify in your include() call. So, you can now remove PHP from the problem and work on that. [...] Hope that helps. Chris Thank you Chris..i solved the problem with an etry in /etc/hosts in the webserver. Pablo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problems with remote include
On Wed, 2003-10-29 at 17:52, Chris Shiflett wrote: --- Pablo Zorzoli [EMAIL PROTECTED] wrote: ? include('http://www.google.com/'); ? That should basically take Google's HTML and make it your own. The image will obviously not work, but it should otherwise look like Google's home page. yes i get Google's HTML. OK, so this proves that this method works in your environment. Given this, can you identify the differences between this code and your own? Maybe if you try to break it down into its simplest case, you will reveal some subtle error that we all missed. Cris and rest of the list, I've tried with the simlpest example: --- output.php ? echo Hello World!; ? -- test.php htmlheadtitletesing!/title/head body ?php include ('http://***.com/output.php'); ? /body/html -- The result is: I spend a lot of time waiting for the response, and i only receive a blank page with the title testing! (wich is okay), but i don't get the hello world. Any clue? Regards, Pablo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problems with remote include
--- Pablo Zorzoli [EMAIL PROTECTED] wrote: I've tried with the simlpest example: --- output.php ? echo Hello World!; ? -- test.php htmlheadtitletesing!/title/head body ?php include ('http://***.com/output.php'); ? /body/html -- Actually, I think the simplest example was what you tries earlier: ? include('http://www.google.com/'); ? Also, as I recall, this was successful. I spend a lot of time waiting for the response, and i only receive a blank page with the title testing! (wich is okay), but i don't get the hello world. Any clue? Maybe it times out? Maybe the server where your PHP script is located cannot access the server at ***.com? Maybe the output that output.php generates isn't what you expect? Basically, because you can include Google's home page successfully, the error lies in something else. Try this from the server hosting your PHP script: wget http://***.com/output.php Then type: vi output.php Are the contents what you expect? Hope that helps. Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problems with remote include
On Thu, 2003-10-30 at 17:00, Chris Shiflett wrote: Maybe it times out? Maybe the server where your PHP script is located cannot access the server at ***.com? Maybe the output that output.php generates isn't what you expect? Basically, because you can include Google's home page successfully, the error lies in something else. Try this from the server hosting your PHP script: wget http://***.com/output.php Then type: vi output.php Are the contents what you expect? That's it i cannot wget it from the webserver i get failed: Connection timed out. i tried to wgetit from another machine and i get the desired output. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problems with remote include
--- Pablo Zorzoli [EMAIL PROTECTED] wrote: That's it i cannot wget it from the webserver i get failed: Connection timed out. i tried to wgetit from another machine and i get the desired output. So the server where you're running the PHP script can't connect to the server you specify in your include() call. So, you can now remove PHP from the problem and work on that. One way of testing connectivity is to try and telnet there manually: telnet www.example.org 80 That should time out, which is indicative of your problem. You can also try to do a DNS lookup: host www.example.org This will make sure your server is properly configured to resolve names and that this specific domain resolves properly. Aside from that, you can look at your routing table, speak with a network administrator, etc. Hope that helps. Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Problems with remote include
Hi all, I'm having trouble while i try to include a php file. the testing code is something loke the sort. html head/head body h1 test:/h1 ?php include ('http://blabla.com/script.php?var1=a'); ? /body /html script.php should echo some text, but i don't get any output. In my php.ini I have allow_url_fopen = On, is there any other thing to configure. And both scripts are under the same domain webserver. Thanks, Pablo Zorzoli -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problems with remote include
--- Pablo Zorzoli [EMAIL PROTECTED] wrote: I'm having trouble while i try to include a php file. [snip] include ('http://blabla.com/script.php?var1=a'); [snip] script.php should echo some text, but i don't get any output. When you visit http://blabla.com/script.php?var1=a and view source, what do you see? Is it valid PHP? Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problems with remote include
On Wed, 2003-10-29 at 16:00, Chris Shiflett wrote: When you visit http://blabla.com/script.php?var1=a and view source, what do you see? Is it valid PHP? yap, exactly. if i paste th elink i my browser i see the results expected.. pablo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problems with remote include
From: Pablo Zorzoli [EMAIL PROTECTED] ?php include ('http://blabla.com/script.php?var1=a'); ? [snip] script.php should echo some text, but i don't get any output. You know you're going to get the OUTPUT of script.php, right? You'll get the same exact result as if you typed the address into your browser. Is that what you're trying to do? ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problems with remote include
On Wed, 2003-10-29 at 16:18, CPT John W. Holmes wrote: You know you're going to get the OUTPUT of script.php, right? You'll get the same exact result as if you typed the address into your browser. Is that what you're trying to do? yes John, tht's exactly what i want to get. pablo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problems with remote include
On Wed, 2003-10-29 at 16:36, Chris Shiflett wrote: The results you expect might not be right. This doesn't help me help you. Is it valid PHP? Can you show us *exactly* what you see when you view source in your browser? i see one line containing the expected html code.The scrip is a counter that outputs the img tags to fecth the images: img src=digit4.gifimg src=digit2.gif that's all i get, and all i would like to get with the remote include. pablo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problems with remote include
--- Pablo Zorzoli [EMAIL PROTECTED] wrote: i see one line containing the expected html code.The scrip is a counter that outputs the img tags to fecth the images: img src=digit4.gifimg src=digit2.gif that's all i get, and all i would like to get with the remote include. That seems right, unless I'm missing something obvious. I think you already mentioned that you have configured to allow URL opens. So, can you tell us what something like this produces? ? include('http://www.google.com/'); ? That should basically take Google's HTML and make it your own. The image will obviously not work, but it should otherwise look like Google's home page. Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problems with remote include
On Wed, 2003-10-29 at 17:17, Chris Shiflett wrote: That seems right, unless I'm missing something obvious. I think you already mentioned that you have configured to allow URL opens. yes that parameter is 'On' So, can you tell us what something like this produces? ? include('http://www.google.com/'); ? That should basically take Google's HTML and make it your own. The image will obviously not work, but it should otherwise look like Google's home page. yes i get Google's HTML. pablo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problems with remote include
--- Pablo Zorzoli [EMAIL PROTECTED] wrote: ? include('http://www.google.com/'); ? That should basically take Google's HTML and make it your own. The image will obviously not work, but it should otherwise look like Google's home page. yes i get Google's HTML. OK, so this proves that this method works in your environment. Given this, can you identify the differences between this code and your own? Maybe if you try to break it down into its simplest case, you will reveal some subtle error that we all missed. Hope that helps. Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problems with remote include
Can you connect from your server to the other server? Pablo Zorzoli wrote: On Wed, 2003-10-29 at 17:17, Chris Shiflett wrote: That seems right, unless I'm missing something obvious. I think you already mentioned that you have configured to allow URL opens. yes that parameter is 'On' So, can you tell us what something like this produces? ? include('http://www.google.com/'); ? That should basically take Google's HTML and make it your own. The image will obviously not work, but it should otherwise look like Google's home page. yes i get Google's HTML. pablo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problems with remote include
El mi? 29-10-2003 a las 16:49, Evan Nemerson escribió: Don't be insulted he asked. You'd be amazed at the level of idiocy around here, and you're not known on the list... He meant no disrespect. NOOO..i'm sorry if MY answer seemed ugly..i'm impressed by the amount of help i received. By no means i meant to be rude. I'm sorry for it, i just tried to be brief with the answer. Pablo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problems with remote include
El mi? 29-10-2003 a las 17:38, Marek Kilimajer escribió: Can you connect from your server to the other server? yes Marek, both files are under the same domain(and server) now. I'm using the remote inclusion, because when it works they'll be on separate domains. Pablo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php