All entries tagged php.
You can subscribe to an RSS feed of this list.
If you use a hidden frame, the content won’t be displayed (hence “hidden”), I think you just mean to use an iframe. But this doesn’t fit your description of “without refreshing”, since you have to refresh the frame.
When loading the PHP file inside the frame, your PHP file just needs to generate HTML the same way you would generate a normal page. It’s the same whether the PHP file is loaded inside a frame or not.
You have to use polling, but you can use a technique called Comet which involves long-polling, i.e. sending out an ajax request that will be held by the server until a chat request comes in.
$pee = preg_replace( '|<p>|', "$1<p>", $pee );
This regular expression is from the Wordpress source code (formatting.php, wpautop function); I’m not sure what it does, can anyone help?
Actually I’m trying to port this function to Python…if anyone knows of an existing port already, that would be much better as I’m really bad with regex.