Everything is possible :)
And in this case, it seems, that lines are delimited by br ... i'm not quite
sure, whether br can be used in explode as a delimiter, if so, you have no
problem and you just read all the file into variable, $lines = explode('br',
$variable) and you have lines in
I think, the point, Curt wanted to point out was, that URI CAN NOT contain SPACE
character and all SPACE characters (ord 32) are converted to %20 ... thus, space
character in rewrite rule will lead to bogus URI... thus, browser will send %20
instead and... dunno if apache will convert it to
?php
for ($x = 0; $x 10; $x += 2)
echo $x.',';
?
m.
Henri Marc wrote:
Hello,
I woudlike to use a loop:
for ($i=1;$i11;$i++)
But instead of incrementing with 1, I would like to
increment by 2. So $i would be 1,3,5,7,9. I tried to
find the answer may be with step but couldn't find
Vi or ViM :)
m.
Peter Risdon wrote:
I have been using emacs/tramp for editing files on remote machines, but
I find it can be flaky - no doubt I am doing something wrong. Can anyone
suggest a good programmers' text editor that at least has syntax
highlighting and can use ssh for accessing files
I have a certain difficulties in case of processing large images thru GD2
library. GD2 has some problems with image processing and it results in some
exception and GD just crashes. I have to mention, that the crash causes whole
php interpreter to crash and execution of the script is terminated
Have you added the line with the hash mark (#) ??? if so, then it's
commented out... that's the first point.
The second one is, that when using Apache 2.0.50, you should use
php4apache2 module instead (I'm not ABSOLUTELLY sure of it, while for a
longer time using PHP5, but I hope, that
This could happpen when the file is open by another process,... then
file is deleted, but filename is still there until the file is not free
of any open filedescriptors... I don't know exactly what processes
happens in kernel when deleting the file, but it's something like
that... and it could
I would do it this way:
- open the page and create hidden iframe (or frame with 0% width/height)
which will be refreshing itself every ... let's say ... 2 minutes...
then you'll get up to 2 minutes accurate numbers... the refreshed page
would write timestamp to database every refresh... when
Hi!
This is what you need :)
You have hidden frame (FRAME not layer!!!) (it means FRAME
src=check.php height=0 [noborders etc])...
then in check.php would be something like this:
$id = $myid; //myid will be stored in session after user logs in
Connect to database, pair ID with a row in table and
hello!
use output buffering...
?php
ob_start();
//... your code here
$_contents = ob_get_contents();
ob_end_clean();
?
regards,
m.
Maris wrote:
Hi!
Let's say my index.php consists of the following:
? include(header.inc); echo pPHP says Hello World/p; ?
pHTML says Hello World/p
? //..
this all seems just fine to me, aren't you sending some Header:
Content-type -s?
could you post that init.php script source? and is that apache server
working well for other scripts that are called from the forms?
AND ... just to be sure,... are you calling that html which contains the
form
Dunno the original question, but this obviously should be escaped...
So the correct code follows...
usort($authors, create_function('$a,$b','
$a = str_replace(array(\'é\', \'a\'), array(\'e\', \'a\'), $a);
$b = str_replace(array(\'é\', \'a\'), array(\'e\', \'a\'), $b);
return
this is slightly changed function of yours, written for better
readability...
?php
$authors = array('élen', 'Élen', 'Elison', 'ámadeus', 'albert',
'alfred', 'amadeus', 'elen');
function usort_callback($a, $b) {
$a = strtolower($a); $b = strtolower($b);
$a = str_replace(array('á', 'é'),
Pardon me for the strtolower line, i've just forgot there... it's 4:30AM
here in Slovakia... :/
correct listing follows...
?php
$authors = array('élen', 'Élen', 'Elison', 'ámadeus', 'albert',
'alfred', 'amadeus', 'elen');
function usort_callback($a, $b) {
$a = str_replace(array('á', 'é'),
14 matches
Mail list logo