Jump to content

SomeGuy1337

Members
  • Posts

    14
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

SomeGuy1337's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. ive uesd a streaming inline frame to dynamily update content in real time for example a chat script. im doing something that all the current browsers are comfortable with, keeping alive connection and rendering content as it comes in its an issue with just 1 aspect of firefox's procedure taht is handling an operating that doesnt have nor require any W3C standered etc. normaly i woulndt want a single client to be runnin multiple instances of the same script simaltaniously, and if i did for some reason then i could get around it by altering the query i was merely curious if anyone new how to get around this.
  2. hey your missing the closing ) braket for you array public $buttons = array( 'Home' => 'home.php', 'Forum' => 'forum.php', 'Index' => 'index.php', 'Menu' => 'menu.php', 'Contact' => 'contact.php', to public $buttons = array( 'Home' => 'home.php', 'Forum' => 'forum.php', 'Index' => 'index.php', 'Menu' => 'menu.php', 'Contact' => 'contact.php');
  3. all u need to do is get a system that handles this all for you. every file that uses this system will have require "mysystem.php" oro something like that this script can get the PHP_SELF variable for calling page, and it can then assess which extra files it needs to include, such as teh atuhmodule.php as standered. this is also far more pratical, than using auto_prepend
  4. i would [b]strongly[/b] advise you to conquer html+css before you move onto php javascript is interpreted by the browser just as css and html is, php is processed by the server. any php code is only see by teh server and not the browser, which means its also secure. javascript it used to dynamicly control the the page after its already been loaded. dreamweaver shud be able to make you all teh rollover code and allow you just to specifiy which images to use.
  5. if you preappend auto file then it will contain football.html alternativly if you authmodule fetches football.html then shouldnt u have that value? like authmodule.php?get=football.html
  6. ok if you preappend Auth.php (or the filename doenst matter.) browser requests [a href=\"http://site.com/mypage.html?var=value\" target=\"_blank\"]http://site.com/mypage.html?var=value[/a] you site will run auth.php from auth.php: basename($_SERVER["PHP_SELF"]) = mypage.html $_GET['var'] = 'value' at this point i hvae to say i have not peronsaly used the preappend and append php.ini settings. but to my knwoladge they shud perform just as if you had used include "preappend.php" inside mypage.html setup your authmodule to echo those variables and set it as the preappend file if all goes well when you access football.html?var=value it should show you those values try setting this up it shud solve your problem.
  7. your oviously very inexpiraneced with progrmaing, which is fine, thats why your hear asking questoins. i am not sure what you are trying to do, you need to be more clear. i think you want it that when you press the roll over button to goto a section on your site you want php and mysql to show that content when you press the button? you will have to be more sepcific before anyone can offer any usefull advice.
  8. be sure to use the CSS very important to move away from that horrible html sytles, u will learn that the hard way if you dont learn it now.
  9. the php.ini is static, its jsut to setup php variables u cant exciute php code in it im not sure entirely wat u want to do? as teh afore mentoined by honzoo: AddType application/x-httpd-php .htm .html this will make any html page be sent thru the php interpreter auto_prepend and append file will mean any file sent thru the php interprter will have those files added in before and afterwards as if you had include "somefile.php" at the top and bottom of every php file basename($_SERVER["PHP_SELF"]) will tell you the current filename in use for example if you had [a href=\"http://localhost/dir/myfile.php\" target=\"_blank\"]http://localhost/dir/myfile.php[/a] it would be "myfile.php" as the variable but i am unsure ezactly wat you are tyring to do could you be more specific about ezactly what you want to achive
  10. <form method="post" action="<?=$_SERVER['PHP_SELF'];?>"> wat ezactly is the action value on teh form? unless it has the page.php?orderid=5 then it cant submit that to the script when it posts when u post hte form it makes a brand new request to the server so any $GET information is lost unelss u pass it along again php_self will contain teh direcotyr structure and the filename, not the request uri (which contain the $_GET arguemnts)
  11. auto_prepend_file auto_append_file these are in the php.ini config file and you can use basename($_SERVER["PHP_SELF"]) to get just the filename and strip the direcotry
  12. ok further testing i have conclued that firefox will not make the ezact same request simaltaniously in multiple windows ie GET /somepage.php if you had this request in 2 windows on firefox it would que each window to load in a linear fasion firefox will handle GET /somepage.php?hmm and GET /somepage.php at the same time. download scripts take post/get data so firefox makes a seperate request and thus a downoad scirpt would be uneffected by this behavor now i am not sure if it is possible at all to get firefox to do this
  13. Hi, im having some trouble with firefox and streaming php script for example: <code> echo str_pad("\n", 1024); while (true) { echo "hihi<br />"; flush(); usleep(100000); } </code> opera and IE6 will be able to run 2 windows where the script will run simaltaniously on both windows firefox how ever will only load 1 script, and que teh 2nd window to load after the first window has finihsed loading... which of course will not happen. i figure there is probably a way around this with headers similer to a download script
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.