Re: [PHP] Apply the hyper link ( javascript functon ) with php
Make sure your $dir variable isn't containing the path to your file from your OS file system. This should be an apache (or whatever) path (an URL). Andy [EMAIL PROTECTED] wrote: > Richard Lynch wrote: > >> On Sun, October 8, 2006 6:53 pm, [EMAIL PROTECTED] wrote: >> >> >>> How to apply the following function with php ? >>> Test >>> >>> >> If you're new to PHP, be a minimalist, and pull out PHP only when you >> absolutely have to: >> >> Test >> >> Since $dir is the ONLY part you want to be changing, use PHP only for >> that part. >> >> Switching in/out of PHP like this is very fast/cheap, and leaves you >> with HTML that mostly looks just like you are used to. >> >> YMMV >> >> >> > Hello to you, > > php web page ( test.php ) : > > > > > > Test > > Result : "homepage error" > > Web Server error log : > > [Tue Oct 10 18:07:36 2006] [error] [client 202.108.22.70] File does not > exist: /home/web/index.htm > [Tue Oct 10 18:10:12 2006] [error] [client 61.135.145.217] File does not > exist: /home/web/test2004.htm > [Tue Oct 10 18:10:14 2006] [error] [client 61.135.145.217] File does not > exist: /home/web/readme.htm > > Please help, thanks ! > > Edward. > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Apply the hyper link ( javascript functon ) with php
On Tue, October 10, 2006 7:57 am, [EMAIL PROTECTED] wrote: > php web page ( test.php ) : > > > > > > Test > > Result : "homepage error" > > Web Server error log : > > [Tue Oct 10 18:07:36 2006] [error] [client 202.108.22.70] File does > not > exist: /home/web/index.htm > [Tue Oct 10 18:10:12 2006] [error] [client 61.135.145.217] File does > not > exist: /home/web/test2004.htm > [Tue Oct 10 18:10:14 2006] [error] [client 61.135.145.217] File does > not > exist: /home/web/readme.htm > > Please help, thanks ! So, after you take out the $dir and there is NO PHP in it, the problem clearly has nothing to do with PHP. It has everything to do with you don't know what the URL is to get to the page you want. Can you surf directly to the index.htm or readme.htm page? If so, copy/paste the URL, with the http:// and everything, into your HTML. That will work. You can then experiment with stripping out parts of the URL, to see what else *might* work. -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Apply the hyper link ( javascript functon ) with php
clive wrote: > >> Hello to you, >> >> php web page ( test.php ) : >> >> >> >> >> >> Test >> >> Result : "homepage error" >> >> Web Server error log : >> >> [Tue Oct 10 18:07:36 2006] [error] [client 202.108.22.70] File does not >> exist: /home/web/index.htm >> [Tue Oct 10 18:10:12 2006] [error] [client 61.135.145.217] File does not >> exist: /home/web/test2004.htm >> [Tue Oct 10 18:10:14 2006] [error] [client 61.135.145.217] File does not >> exist: /home/web/readme.htm >> >> Please help, thanks ! >> >> Edward. > > > does $dir have a value ? > > probably nothing to do with php, does your page work if there was no > php code in it and if you replaced > with a page url. > > and go through some tutorial on php !!! > I just modified the test.php again : function popup(page,title) { window.open(page,title, "height=700,width=780"); } Test No any php var, it can open another windows, but no any display ( info ) with the windows : Only Location : javascript:popup('index.htm') Any more help ? Thanks ! Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Apply the hyper link ( javascript functon ) with php
Hello to you, php web page ( test.php ) : Test Result : "homepage error" Web Server error log : [Tue Oct 10 18:07:36 2006] [error] [client 202.108.22.70] File does not exist: /home/web/index.htm [Tue Oct 10 18:10:12 2006] [error] [client 61.135.145.217] File does not exist: /home/web/test2004.htm [Tue Oct 10 18:10:14 2006] [error] [client 61.135.145.217] File does not exist: /home/web/readme.htm Please help, thanks ! Edward. does $dir have a value ? probably nothing to do with php, does your page work if there was no php code in it and if you replaced with a page url. and go through some tutorial on php !!! -- Regards, Clive -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Apply the hyper link ( javascript functon ) with php
Richard Lynch wrote: >On Sun, October 8, 2006 6:53 pm, [EMAIL PROTECTED] wrote: > > >>How to apply the following function with php ? >> Test >> >> > >If you're new to PHP, be a minimalist, and pull out PHP only when you >absolutely have to: > > Test > >Since $dir is the ONLY part you want to be changing, use PHP only for >that part. > >Switching in/out of PHP like this is very fast/cheap, and leaves you >with HTML that mostly looks just like you are used to. > >YMMV > > > Hello to you, php web page ( test.php ) : Test Result : "homepage error" Web Server error log : [Tue Oct 10 18:07:36 2006] [error] [client 202.108.22.70] File does not exist: /home/web/index.htm [Tue Oct 10 18:10:12 2006] [error] [client 61.135.145.217] File does not exist: /home/web/test2004.htm [Tue Oct 10 18:10:14 2006] [error] [client 61.135.145.217] File does not exist: /home/web/readme.htm Please help, thanks ! Edward.
Re: [PHP] Apply the hyper link ( javascript functon ) with php
On Sun, October 8, 2006 6:53 pm, [EMAIL PROTECTED] wrote: > How to apply the following function with php ? > Test If you're new to PHP, be a minimalist, and pull out PHP only when you absolutely have to: Test Since $dir is the ONLY part you want to be changing, use PHP only for that part. Switching in/out of PHP like this is very fast/cheap, and leaves you with HTML that mostly looks just like you are used to. YMMV -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: [BULK] Re: [PHP] Apply the hyper link ( javascript functon ) with php
Hello Clive, I just modified the php program code : echo ' Test '; But the page is error result (Display on the menu bar)! Edward. clive wrote: > [EMAIL PROTECTED] wrote: > >> Hello, >> >> Sorry... >> >> If the hyper link is : >> Test > > you want to use double quotes echo " "; instead of single quotes echo > ' '; > the double quotes will parse any variables it finds, where as the > single quotes will simply just echo what every you place between them. > > clive > >> So, how to apply the echo tag for it ? >> >> Remark: >> $dir is php variable... >> >> Edward. >> >> >> J R wrote: >> >>> echo ' Test '; >>> >>> On 10/9/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >>> Dear All, How to apply the following function with php ? Test Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php >> > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: [BULK] Re: [PHP] Apply the hyper link ( javascript functon ) with php
Hello Clive, Would you mind to help to modify the hyper link with php ( apply echo tag ) ? Sorry... I don't quite to know the php command Many thank for your help ! Edward. clive wrote: > [EMAIL PROTECTED] wrote: > >> Hello, >> >> Sorry... >> >> If the hyper link is : >> Test > > you want to use double quotes echo " "; instead of single quotes echo > ' '; > the double quotes will parse any variables it finds, where as the > single quotes will simply just echo what every you place between them. > > clive > >> So, how to apply the echo tag for it ? >> >> Remark: >> $dir is php variable... >> >> Edward. >> >> >> J R wrote: >> >>> echo ' Test '; >>> >>> On 10/9/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >>> Dear All, How to apply the following function with php ? Test Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php >> > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: [BULK] Re: [PHP] Apply the hyper link ( javascript functon ) with php
[EMAIL PROTECTED] wrote: Hello, Sorry... If the hyper link is : Test you want to use double quotes echo " "; instead of single quotes echo ' '; the double quotes will parse any variables it finds, where as the single quotes will simply just echo what every you place between them. clive So, how to apply the echo tag for it ? Remark: $dir is php variable... Edward. J R wrote: echo ' Test '; On 10/9/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Dear All, How to apply the following function with php ? Test Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Regards, Clive -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Apply the hyper link ( javascript functon ) with php
Hello, Sorry... If the hyper link is : Test So, how to apply the echo tag for it ? Remark: $dir is php variable... Edward. J R wrote: > echo ' Test '; > > On 10/9/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > >> >> Dear All, >> >> How to apply the following function with php ? >> Test >> >> Edward. >> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, visit: http://www.php.net/unsub.php >> >> > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Apply the hyper link ( javascript functon ) with php
echo ' Test '; On 10/9/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Dear All, How to apply the following function with php ? Test Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- GMail Rocks!!!
[PHP] Apply the hyper link ( javascript functon ) with php
Dear All, How to apply the following function with php ? Test Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php