Re: [PHP] PHP within Frames
Kevin -- ...and then KB said... % % David, % % Thanks for the response. Sure thing! I see that you sent this back only to me. You should generally reply to the whole list because 1) I certainly don't know everything and 2) others will almost certainly answer before I will. I've taken the liberty of sending this back to the list. % % OK...in my simple terms % % Anything I put between doesn't work when called in a frame. % The file.php works fine if called on its own but if it is called into a % frame it just doesn't work...not even an error. OK. Paste your frameset (index.php or whatever) into an email so we can see how it looks. % % To keep it as simple as I could I put an echo "fred" line in. Sure enough % fred was displayed unless called into a Frame. OK. But that still doesn't tell us anything. Did you try my example with the code I provided? % % On the subject of my choice of OSI'd prefer to be running Linuxits % just a convinience as I have the development environment on a laptop. If Doesn't stand in my way :-) % you can suggest where I can get Linux and Apache (If that is what you would % suggest) then I'd be keen to switch to that. All pointers are welcome. I happen to very much like SuSE, but I've heard some good things about Mandrake in the past year, and there's always Debian. SuSE runs pretty much out of the box on any laptop I've seen, including finding the right display and card info, although APM/ACPI may require a kernel recompile (so I have no ACPI on my Toshiba Satellite at the moment; whoop-de-doo). Check out linux-laptop.net (before this thread goes any more off-topic! :-) for oodles of info. % % Thanks again Sure thing! % % Kevin HTH & HAND :-D -- David T-G * There is too much animal courage in (play) [EMAIL PROTECTED] * society and not sufficient moral courage. (work) [EMAIL PROTECTED] -- Mary Baker Eddy, "Science and Health" http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg! pgp0.pgp Description: PGP signature
RE: [PHP] PHP within Frames
Ok, this is just a guess but, it is based on experience. Lets say you have the frames page (frames.php), it has two frames show_a.php and show_b.php, the code for each is simple print "$a" and print "$b" respectively. If frames.php?a=hello&b=world is called and the frame sources are set to show_a.php and show_b.php they will print nothing because they do not know what the variables $a and $b are. If you change the frame src values to show_a.php?a=$a and show_b.php?b=$b they will work. So, my question to you is do your framed pages know the values of all necessary variables? Daryl Meese, Jr. Magia Software magiasoftware.com -Original Message- From: KB [mailto:[EMAIL PROTECTED] Sent: Sunday, October 19, 2003 4:46 PM To: [EMAIL PROTECTED] Subject: [PHP] PHP within Frames Hi, Does anyone know why my PHP pages won't work in Frames? I have 5 frames, each of which are displaying PHP pages.and none of the PHP code works. If I run the code outside of Frames it works fine! I've can't find any decent references for PHP in Frames. Your help would be appreciated. Thanks Kevin -- 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] PHP within Frames
Kevin -- ...and then KB said... % % OK...more specific... % % I'm running Windows XP Professional with PHP and MySQL and IE6 OK. Two out of four ain't bad :-) % % What doesn't work: Anything inside the PHP parameters when running in a % Frames environment. Hmmm... I appreciate your effort, and I bet that you're pulling your hair out trying to figure out how to give so you can get, but I still don't really know what you mean. What is a "PHP parameter"? % % Someone mentioned that I might not have the testing server set up correctly % and it may be running locally. Bit of a novice so not too sure about this. If you can point to your php code and have it execute then you are probably fine; php that has not been run by the server just looks like code in your browser. Your frameset could be pointing to file:///... instead of http://... though (but you should still get a code dump). % I have checked the settings for Testing Server in Dreamweaver and it seems % OK. (Should I try a Dreamweaver NewsGroup?) Since frames have no effect on PHP and you're swimming in deep water, that might not be a bad idea. You have, however, still not given us much detail (the only thing I've seen so far is a pair of uuencoded files and, frankly, I'm too lazy to rip 'em open just because Outhouse doesn't know how to attach files). Try saving these two snippets to a directory where your web server can serve them: index.php: \n" ; print "\n" ; print "\n" ; print "\n" ; print "This is not in the frameset\n" ; ?> frame.php: \n" ; switch($_GET['f']) { case 'top' : print "This is the top frame!\n" ; print "Pick a number:\n" ; foreach (array('one','two','three') as $n) { print "$n \n" ; } print "(Your last pick was {$_GET['n']}.)\n" ; break ; case 'bot' : print "This is the bottom frame *yawn*\n" ; print "Pick a color:\n" ; foreach (array('red','green','blue') as $c) { print "$c \n" ; } print "(Your last pick was {$_GET['c']}.)\n" ; break ;; } ?> The should look like http://justpickone.org/davidtg/private/frames/index.phps http://justpickone.org/davidtg/private/frames/frame.phps respectively. Now point your web browser to the right place on your server and see if you see the frameset like you do at http://justpickone.org/davidtg/private/frames/ from the examples above. If you do, then your web server is serving files and your php is being executed. You can also probably kick Dreamweaver in the head for making life hard. Go and pick up a copy of vim (it runs on just about any platform) and edit your code the Manly (and OneTrue ;-) Way! This could, in fact, be done entirely in one file with no problem... Just add a default for the switch and print the frameset there. % % Thanks to all for their interest/help so far. That's why we're here :-) % % Kevin HTH & HAND :-D -- David T-G * There is too much animal courage in (play) [EMAIL PROTECTED] * society and not sufficient moral courage. (work) [EMAIL PROTECTED] -- Mary Baker Eddy, "Science and Health" http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg! pgp0.pgp Description: PGP signature
Re: [PHP] PHP within Frames
OK...more specific... I'm running Windows XP Professional with PHP and MySQL and IE6 What doesn't work: Anything inside the PHP parameters when running in a Frames environment. Someone mentioned that I might not have the testing server set up correctly and it may be running locally. Bit of a novice so not too sure about this. I have checked the settings for Testing Server in Dreamweaver and it seems OK. (Should I try a Dreamweaver NewsGroup?) Thanks to all for their interest/help so far. Kevin "Adam" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > This is really an browser interpretation of HTML issue than a straight > PHP issue. A little more information would be helpful - such as > browser, page content, etc. > > Regards, > Adam > > On Sunday, October 19, 2003, at 05:45 PM, KB wrote: > > > Hi, > > > > Does anyone know why my PHP pages won't work in Frames? I have 5 > > frames, > > each of which are displaying PHP pages.and none of the PHP code > > works. > > > > If I run the code outside of Frames it works fine! > > > > I've can't find any decent references for PHP in Frames. > > > > Your help would be appreciated. > > > > Thanks > > > > Kevin > > > > -- > > 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] PHP within Frames
This is really an browser interpretation of HTML issue than a straight PHP issue. A little more information would be helpful - such as browser, page content, etc. Regards, Adam On Sunday, October 19, 2003, at 05:45 PM, KB wrote: Hi, Does anyone know why my PHP pages won't work in Frames? I have 5 frames, each of which are displaying PHP pages.and none of the PHP code works. If I run the code outside of Frames it works fine! I've can't find any decent references for PHP in Frames. Your help would be appreciated. Thanks Kevin -- 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] PHP within Frames
KB wrote: The Main_User_Interface is the Frames definition and the Catagory_Choice is a page I'm trying to load into the left page. I mention the Dreamweaver piece as I'm a novice and can't pass comment on the bits that dreamweaver automatically generates. I'm also not sure that I know everything I need to about Session variables so it may be related to that. What exactly isn't working? "John Nichel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] KB wrote: Hi, Does anyone know why my PHP pages won't work in Frames? I have 5 frames, each of which are displaying PHP pages.and none of the PHP code works. If I run the code outside of Frames it works fine! I've can't find any decent references for PHP in Frames. Your help would be appreciated. Thanks Kevin You'll need to be a bit more specific than 'none of the PHP code works'. Frames have no effect on the parsing of php code, as frames are client side (just pulling another page off the server), and php is server side (parsed by the server before it even gets to the frameset). -- By-Tor.com It's all about the Rush http://www.by-tor.com -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP within Frames
--- KB <[EMAIL PROTECTED]> wrote: > Does anyone know why my PHP pages won't work in Frames? I do. Just kidding. :-) > I have 5 frames, each of which are displaying PHP pages.and > none of the PHP code works. Please be more specific. I assume you mean that your code is being interpreted but that you have a flaw in your code. In this case, you need to provide a lot more information for anyone to have a chance at guessing your error. > I've can't find any decent references for PHP in Frames. Probably because frames are completely irrelevant. 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] PHP within Frames
John, Thanks for the response. Below is my response to Larry...if you can shed any light on this then I would be gratefull. Thanks for the swift response. I didn't post the code as I thought there may be an obvious answer.sorry.. Attached are two pieces of simple code (produced originally under Dreamweaver then edited to add the simple PHP lines). Having had little success I decided to cut them down to the minimum to see if it was something in the code. The Main_User_Interface is the Frames definition and the Catagory_Choice is a page I'm trying to load into the left page. I mention the Dreamweaver piece as I'm a novice and can't pass comment on the bits that dreamweaver automatically generates. I'm also not sure that I know everything I need to about Session variables so it may be related to that. Any thoughts would be greatly appreciated. With Kind Regards Kevin "John Nichel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > KB wrote: > > Hi, > > > > Does anyone know why my PHP pages won't work in Frames? I have 5 frames, > > each of which are displaying PHP pages.and none of the PHP code works. > > > > If I run the code outside of Frames it works fine! > > > > I've can't find any decent references for PHP in Frames. > > > > Your help would be appreciated. > > > > Thanks > > > > Kevin > > You'll need to be a bit more specific than 'none of the PHP code works'. > > Frames have no effect on the parsing of php code, as frames are client > side (just pulling another page off the server), and php is server side > (parsed by the server before it even gets to the frameset). > > -- > By-Tor.com > It's all about the Rush > http://www.by-tor.com begin 666 Main_User_Interface.php M/"%$3T-465!%([EMAIL PROTECTED]"3$E#("(M+R]7,T,O+T141"!(5$U,(#0N,#$@ M1G)A;65S970O+T5.(B B:'1T<#HO+W=W=RYW,RYO7!E(B!C;VYT96YT/2)T97AT+VAT;6P[(&-H87)S970]:[EMAIL PROTECTED],2(^ M#0H\+VAE860^#0H-"CQF65S(B!B;W)D97(](C$B M(&)O5]#:&]I8V4N<&AP(B!N86UE/2)L M969T1G)A;64B('-C65S(B!B;W)D97(](C$B(&)OF4^#0H@(" @(" \+V9R86UE3X-"CPO8F]D>3X\+VYO 29G)A;65S/@T*/"]H=&UL/@T* ` end begin 666 Catagory_Choice.php M/"%$3T-465!%([EMAIL PROTECTED]"3$E#("(M+R]7,T,O+T141"!(5$U,(#0N,#$@ M5')A;G-I=&EO;F%L+R]%3B(@(FAT=' Z+R]W=W3X-"CP_<&AP("1?4T534TE/3ELG5&5S="== M(#T@(D9R960B.R _/@T*/#]P:' @96-H;R D7U-%4U-)3TY;)U1E#$B/B -"D%N:6UA;',\+W ^#0H@(#QI;G!U M="!T>7!E/2)C:&5C:V)O>"(@;F%M93TB2&ES=&]R:6-A;"(@=F%L=64](F-H M96-K8F]X([EMAIL PROTECTED](:7-T;W)I8V%L/"]P/@T*/' ^#0H@(#QI;G!U="!T>7!E M/2)C:&5C:V)O>"(@;F%M93TB1V%R9&5N2(@=F%L M=64](F-H96-K8F]X([EMAIL PROTECTED]/"]P/@T*/' ^#0H@(#QI;G!U="!T M>7!E/2)C:&5C:V)O>"(@;F%M93TB5FEN97EA"(^( T*5FEN97EA"(^#0I3:&]W/"]P/@T*/' ^#0H@(#QI;G!U M="!T>7!E/2)C:&5C:V)O>"(@;F%M93TB5&AE;[EMAIL PROTECTED]&%R:R(@=F%L=64](F-H M96-K8F]X([EMAIL PROTECTED]:&5M92!087)K"(^#0I&87)M/"]P/@T*/' ^#0H@(#QI;G!U="!T>7!E/2)C M:&5C:V)O>"(@;F%M93TB375S975M(B!V86QU93TB8VAE8VMB;[EMAIL PROTECTED]/@T*375S M975M/"]P/@T*/' ^#0H@(#QI;G!U="!T>7!E/2)C:&5C:V)O>"(@;F%M93TB M161U8V%T:6]N86PB('9A;'5E/2)C:&5C:V)O>"(^#0I%9'5C871I;VYA;#PO M<#X-"CQP/@T*(" \:[EMAIL PROTECTED]'EP93TB8VAE8VMB;[EMAIL PROTECTED](&YA;64](E-A9F%R M:2]:;V\B('9A;'5E/2)C:&5C:V)O>"(^#0H@(%-A9F%R:2]:;V\-"CPO<#X- M"CQP/@T*(" \:[EMAIL PROTECTED]'EP93TB8VAE8VMB;[EMAIL PROTECTED](&YA;64](D-A2(@ M=F%L=64](F-H96-K8F]X(CX-"D%V:6%R>2 \+W ^#0H\<#X-"CQF;W)M(&YA M;64](E-E;&5C=&5D7T-A=&%G;W)I97,B(&UE=&AO9#TB<&]S="(@=&%R9V5T M/2)M86EN1G)A;64B(&%C=&EO;CTB36%P7T9R86UE+G!H<#]396QE8W1E9%]# M871A9V]R:65S/3P_<&AP(&5C:&\@)%]315-324].6R=497-T)UT[(#\^(CX- M"B @/&EN<'5T('1Y<&4](G-U8FUI="(@;F%M93TB4W5B;6ET(B!V86QU93TB L4W5B;6ET([EMAIL PROTECTED]http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP within Frames
Does anyone know why my PHP pages won't work in Frames? I have 5 frames, each of which are displaying PHP pages.and none of the PHP code works. PHP works just fine within frames because the two issues are completely unrelated. That being said, I can't tell why you're having problems as you've: - Posted no code - Posted no links to the working (or not working) example - Not explained what you mean by "none of the PHP code works" One good reason why none of your code would work would be if your frame document was referencing your PHP files as filename.html as opposed to filename.php. But, considering the information provided, that's just a guess. Larry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP within Frames
KB wrote: Hi, Does anyone know why my PHP pages won't work in Frames? I have 5 frames, each of which are displaying PHP pages.and none of the PHP code works. If I run the code outside of Frames it works fine! I've can't find any decent references for PHP in Frames. Your help would be appreciated. Thanks Kevin You'll need to be a bit more specific than 'none of the PHP code works'. Frames have no effect on the parsing of php code, as frames are client side (just pulling another page off the server), and php is server side (parsed by the server before it even gets to the frameset). -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php