[PHP] first time user
hi folks, i am somewhat like a new newbie, just read my first php tutorial, installed an apache server on my windows and php on top for testing , first question is : is this the right place for me here to ask questions or is this newsgroup rather for advanced users? second question is my task i want to complete in PHP : i have an array for a dhtml navigation menu for my site. all the links are "hard coded" inside the array and are , of course , the same for the whole site EXCEPT for the language selection. now, for example, i am on a page called about.php, i am clicking on the link for the german version and a page called german/about.php should be retrieved. same for spanish. now, what do i do? i have found a php snippet that reads the current url but can i use this somehow and how do i do that? i would be happy for any kind of advice . thankyou cookie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] first time user
Thank's Oliver, now i have come up to this: link german"); ?> and this seems to work as long as i add these php tags inside html, but how do i insert this inside my array which is in the .js format (javascript) ? any ideas that could help me? or would you need to look at the array? thank you. regards coo Btw. excuse the question but what means HTH in the end of our reply? <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... At 13.04.2002 12:04, you wrote: >hi folks, >i am somewhat like a new newbie, just read my first php tutorial, installed >an apache server on my windows and php on top for testing , first question >is : is this the right place for me here to ask questions or is this >newsgroup rather for advanced users? You´re welcome here, if your questions related to php. If there are specific php-windows questions, you should ask them on the windowsPHP list. >second question is my task i want to complete in PHP : > >i have an array for a dhtml navigation menu for my site. all the links are >"hard coded" inside the array and are , of course , the same for the whole >site EXCEPT for the language selection. > >now, for example, i am on a page called about.php, i am clicking on the link >for the german version and a page called german/about.php should be >retrieved. same for spanish. > >now, what do i do? >i have found a php snippet that reads the current url >$filelocation=$HTTP_HOST.$PHP_SELF; >echo($filelocation);?> > >but can i use this somehow and how do i do that? You can shorten this : echo "German'; echo "Espanol'; but it should be enough if you use echo "German'; assuming that this dir/page is locatet in the root of your vserver. HTH Oliver -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] first time user
thank's again , seems i'm too far still a newbie that the hints you gave me give me a headache and don't let me succeed, if you have the spare time, have a look yourself, i have everything attached, an online copy can be seen at www.janusfoundation.org/test/navigations-testpage.htm. the relevant lines for the links are inside the file stars_array.js on line 162 and 163. maybe you could also recommend a good book for me that explains php for dummies (if you know one in german, even better). thanks coo p.s : i have 3 files attached , 2 here and the 3rd in the follow up because the mailserver doesn't take more than 40kb. begin 666 stars_array.js M+R\@36EL;VYI8R!$2%1-3"!-96YU#0HO+R!P;&5A6]U6]U('1O(')E;6]V92!M96YU7-T96TN#0HO+R!4:&4@2P@861D("8@'0@0T%.(&)E(&5R87-E9"!I9B!Y;W4@=VES:"X-"@T*#0H- M"@T*+R\@5&AE(&9O;&QO=VEN9R!L:6YE(&ES(&-R:71I8V%L(&9OVUT/2(\2!F;W(@;65N=7,@=&\@6QE#0HB;F]R;6%L(BP)"0D)"2\O($9O;G0@5V5I9VAT M#0HB07)I86PL2&5L=F5T:6-A(BP)"0DO+R!&;VYT#0HS+ D)"0D)"0DO+R!0 M861D:6YG#0HB1W)A<&AI8W,O87)R;W6]U6]U(&-A M;B!U7,@5FES M:6)L92 M(&%L;&]W'0B+" B55),(BP@(D%L=&5R;F%T92!54DPB+" B4W1A='5S(BP@ M(E-E<&%R871O"YH=&UL(BPL+# -"ETI#0H-"@T*#0H-"F%D9&UE;G4H;65N=3U; M(F%B;W5T(BPL+#$R,"PQ+"(B+'-T>6QE,BPL(FQE9G0B+")F861E*&1U6QE,BPL(FQE9G0B+")F861E*&1U6QE,BPL(FQE M9G0B+")F861E*&1U2(L+"PQ-3 L,2PB(BQS='EL93(L+")L969T(BPB9F%D92AD=7)A=&EO M;CTP+C4I(BPL+"PL+"PL+"PL+ T*+"(\:6UG(&)O6QE,BPL(FQE9G0B+")F861E*&1U2!!;F1Y(%=O;VQL M97DN($-O<'ER:6=H=" R,# Q($%N9'D@5V]O;&QE>2X@06QL(%)I9VAT2!B9V-O;&]R/2(C,# P,# P M(B!T97AT/2(C.3DY.3DY(B!L969T;6%R9VEN/2(P(B!T;W!M87)G:6X](C B M/@T*/' ^( T*#0H@(#Q30U))4%0@;&%N9W5A9V4]2F%V85-C&ES=&5N=" -"B @(" @(" @(" @ M(" @:&%B:71A="!F;W(@;F%T:79E(&%N:6UA;"!S<&5C:65S+CQBF4L($-E;G1R86P@06UE MF5D M('-O('1H870@=&AE>2!C86X@8F4@=')A;G-F97)R960@#0H@(" @(" @(" @ M(" @('1O(&]T:&5R(&-O=6YT"]S<&5E8V@N9VEF(B!W:61T M:#TQ,#8@:&5I9VAT/3(R(&)O2!B>2!D M87D\8G(^#0H@(" @(" @(" @("!W92!S96QD;VT@2!A3QB71H:6YG($D@ M9&\\8G(^#0H@(" @(" @(" @("!W:&5R92!E=F5R($D@86TN/&)R/@T*(" @ M(" @(" @(" @/&)R/@T*(" @(" @(" @(" @5&AE($5AF4](C$B/B!-"]E"]E"]T;W N9VEF(B!W:61T:#TU M-2!H96EG:'0],C4@8F]R9&5R/3 @86QT/2)T;W B/CPO83X\+W1D/@T*(" \ M+W1R/@T*(" \='(^( T*(" @(#QT9"!C;VQS<&%N/2(R(B!A;&EG;CTBF4](BTR(CY(;VUE/"]F;VYT/CPO83X@#0H@(" @(" \9F]N="!F86-E/2)! M3PO83X@#0H@(" @(" F;F)S M<#L\82!H"]L;V=O+F=I9B(@=VED=&@],3@S(&AE M:6=H=#TW-2!B;W)D97(],"!A;'0](DIA;G5S($9O=6YD871I;VXB/CQBhttp://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] first time user
thank's again , seems i'm too much of a newbie that the hints you gave me give me a headache and don't let me succeed, if you have the spare time, have a look yourself, i have everything attached, an online copy can be seen at www.janusfoundation.org/test/navigations-testpage.htm. the relevant lines for the links are inside the file stars_array.js on line 162 and 163. maybe you could also recommend a good book for me that explains php for dummies (if you know one in german, even better). thanks coo p.s : i have 3 files attached , 2 here and the 3rd in the follow up because the mailserver doesn't take more than 40kb. begin 666 navigations-testpage.htm M/&AT;6P^#0H\:&5A9#X-"CQT:71L93YN879I9V%T:6]N('1E2!!;F1Y(%=O;VQL M97DN($-O<'ER:6=H=" R,# Q($%N9'D@5V]O;&QE>2X@06QL(%)I9VAT2!B9V-O;&]R/2(C,# P,# P M(B!T97AT/2(C.3DY.3DY(B!L969T;6%R9VEN/2(P(B!T;W!M87)G:6X](C B M/@T*/' ^( T*#0H@(#Q30U))4%0@;&%N9W5A9V4]2F%V85-C&ES=&5N=" -"B @(" @(" @(" @ M(" @:&%B:71A="!F;W(@;F%T:79E(&%N:6UA;"!S<&5C:65S+CQBF4L($-E;G1R86P@06UE MF5D M('-O('1H870@=&AE>2!C86X@8F4@=')A;G-F97)R960@#0H@(" @(" @(" @ M(" @('1O(&]T:&5R(&-O=6YT"]S<&5E8V@N9VEF(B!W:61T M:#TQ,#8@:&5I9VAT/3(R(&)O2!B>2!D M87D\8G(^#0H@(" @(" @(" @("!W92!S96QD;VT@2!A3QB71H:6YG($D@ M9&\\8G(^#0H@(" @(" @(" @("!W:&5R92!E=F5R($D@86TN/&)R/@T*(" @ M(" @(" @(" @/&)R/@T*(" @(" @(" @(" @5&AE($5AF4](C$B/B!-"]E"]E"]T;W N9VEF(B!W:61T:#TU M-2!H96EG:'0],C4@8F]R9&5R/3 @86QT/2)T;W B/CPO83X\+W1D/@T*(" \ M+W1R/@T*(" \='(^( T*(" @(#QT9"!C;VQS<&%N/2(R(B!A;&EG;CTBF4](BTR(CY(;VUE/"]F;VYT/CPO83X@#0H@(" @(" \9F]N="!F86-E/2)! M3PO83X@#0H@(" @(" F;F)S M<#L\82!H"]L;V=O+F=I9B(@=VED=&@],3@S(&AE M:6=H=#TW-2!B;W)D97(],"!A;'0](DIA;G5S($9O=6YD871I;VXB/CQB6]U6]U('1O(')E;6]V92!M96YU7-T96TN#0HO+R!4:&4@2P@861D("8@'0@0T%.(&)E(&5R87-E9"!I9B!Y;W4@=VES:"X-"@T*#0H- M"@T*+R\@5&AE(&9O;&QO=VEN9R!L:6YE(&ES(&-R:71I8V%L(&9OVUT/2(\2!F;W(@;65N=7,@=&\@6QE#0HB;F]R;6%L(BP)"0D)"2\O($9O;G0@5V5I9VAT M#0HB07)I86PL2&5L=F5T:6-A(BP)"0DO+R!&;VYT#0HS+ D)"0D)"0DO+R!0 M861D:6YG#0HB1W)A<&AI8W,O87)R;W6]U6]U(&-A M;B!U7,@5FES M:6)L92 M(&%L;&]W'0B+" B55),(BP@(D%L=&5R;F%T92!54DPB+" B4W1A='5S(BP@ M(E-E<&%R871O"YH=&UL(BPL+# -"ETI#0H-"@T*#0H-"F%D9&UE;G4H;65N=3U; M(F%B;W5T(BPL+#$R,"PQ+"(B+'-T>6QE,BPL(FQE9G0B+")F861E*&1U6QE,BPL(FQE9G0B+")F861E*&1U6QE,BPL(FQE M9G0B+")F861E*&1U2(L+"PQ-3 L,2PB(BQS='EL93(L+")L969T(BPB9F%D92AD=7)A=&EO M;CTP+C4I(BPL+"PL+"PL+"PL+ T*+"(\:6UG(&)O6QE,BPL(FQE9G0B+")F861E*&1U
Re: [PHP] first time user
here just the other file that makes up the menu begin 666 mmenu.js M+RH-"B!$2%1-3"!-96YU('9E2!! M;F1Y(%=O;VQL97D-"B!#;W!Y6]U(&EN9F]R;2!U6]U$]F*")/<&5R82(I(3TM,2D_=')U93IF86QS90T*;G,V,3TH<&%R[EMAIL PROTECTED]*=&EM;STP.V5L/3 [;G-H M;#TP.W9A2@I M.VUR/2(L(CL-"G=H:6QE*&5V86PH(G=I;F1O=RYM96YU(BMM*2E[;7(K/2)M M96YU(BMM*R(L(CMT;65N=3UE=F%L*")M96YU(BMM*3M-;F%M95MM73UT;65N M=5LP72YT;[EMAIL PROTECTED]*WT-"FUR/6UR*R(@(CMM'0I>VEF M*%]D+F=E=$5L96UE;G1">4ED*7MM/5]D+F=E=$5L96UE;G1">4ED*&UT>'0I M?65L65R'0I.VEF*"%NVEF*&TI;3UM M+G-T>6QE.WUR971U#TB<'@B.VEF*&YS-"E[<'@](B([9VUS/6=M.VEF*'=?(3UN=6QL M*6=M6QE.VEF*'=? M(3UN=6QL*6=MV=M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%LQ73MI9B@A7V0N86QL*6
Re: [PHP] first time user
well, i didn't mean to offend anyone, it's just that me as a non-programmer have quite some difficulties, so I appreceate you telling me this and also having had a look at what i sent. thank's for your advice best regards coo <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... That´s not the way to make friends, I think nobody will read your attachments, because it´s not a php-script and this is a PHP-LIST also I had a quick -look on it and found this: If you are having difficulty with the menu please read the FAQ at http://www.milonic.co.uk/menu/faq.php before contacting us. As I mentioned earlier, you can do a "better" menu without javascript, compatible and functional to all browsers using PHP. This also will load faster, (your testlink took 72sec to load in Opera). I think you should start from scratch. What happens If one disables JavaScript/ Java on his/her machine? -> Nothing works At 14.04.2002 20:35, you wrote: > thank's again , > seems i'm too far still a newbie that the hints you gave me give me a > headache and don't let me succeed, > if you have the spare time, have a look yourself, i have everything > attached, an online copy can be seen at > www.janusfoundation.org/test/navigations-testpage.htm. > the relevant lines for the links are inside the file stars_array.js on line > 162 and 163. > maybe you could also recommend a good book for me that explains php for > dummies (if you know one in german, even better). Look on php.net books or ask google. > thanks > coo > >p.s : i have 3 files attached , 2 here and the 3rd in the follow up because >the mailserver doesn't take more than 40kb. Because they limit traffic, I wonder that your attachments found the way to the list, as I think they won´t allow it. TA Oliver -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php