hi,
i'm not a regex guru myself, but the following regex should work - tabke
a look at my regex test setup ...
\n";
}
?>
i don't think there's a difference between \d and [0-9], but again, i am
no expert ...
regards,
phillip
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, v
ah!
remove the whitespace between the COUNT and () : COUNT(login) instead of
COUNT () ...
> Hi,
>
>> Make this line instead
>> $result = mysql_query($query) or die(mysql_error() . " with the query
>> $query";
>> and you'll likely see the error.
>
>
> Here it goes:
>
> "You have an error in y
hi mario,
first of all, make sure that your query works from the mysql console or
phpmyadmin or some other tool (copy-paste the query from the code and
replace $loging with something reasonable).
then try the following:
$query = "SELECT COUNT (login) FROM formacao WHERE login = '$login'";
// ch
eb:
> PHP5 has yet to see the maturity and stability PHP4 offers which is why
> most applications use it.
>
> Worst thing you can do is design a website in entirely flash :)
>
>
>
>
>
>
> Phillip Oertel wrote:
>
>> hi,
>>
>>
hi,
"rails" is written in the ruby programming language. which has nothing
to do with php. ruby and php are different programming languages that
are used on the server-side of the web. normally you decide on one of them!
ajax in contrast is a way of updating the web browser content without
reload
hi,
"rails" is written in the ruby programming language. which has nothing
to do with php. ruby and php are different programming languages, that
are used on the server-side of the web. normally you decide on one of them!
ajax in contrast is a way of updating the web browser content without
reloa
hi,
i want to create a "shop server" application. the shop client interface
will be in flash (communication with php over xml, soap or amfphp), the
administration interface will be html. most likely it will probably be a
long-running application that will be extended in several steps, so we
need a
> curl_setopt($ch, CURLOPT_URL, "http://foo.bar.com/page1.html";);
> curl_setopt($ch, CURLOPT_FILE, $fh1);
> curl_exec($ch); //exec1
> curl_setopt($ch, CURLOPT_URL, "http://foo.bar.com/page2.html";);
> curl_setopt($ch, CURLOPT_FILE, $fh2);
> curl_exec($ch); //exec2
> curl_setopt($ch, CURLOP
Erwien Samantha Y wrote:
does you webserver (apache?) and/or php have the rights needed to write to
the /tmp directory? if not you have to chmod the permissions for the /tmp dir.
an maybe better idea would be to make directory /tmp/php directory and
chown that to wwwrun. but you should double-
Hei wrote:
> Can I use PHP to check server software???
you can use curl, see the func below. needs the php-curl libary enabled.
phil.
showHeader - lese HTTP Header Antwort des entfernten Servers
... waiting for url";
exit;
}
else
{
echo "$urlreturned the following header:"
Yoep wrote:
> I use this one too... its just 20$ or so though, and is a very great and
> convient editor. I do all my PHP coding in it.
ACK. phil
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To
Phillip Oertel wrote:
> line 29: mysql_query('$SQL')
> will send the following query to your db:
>
> $SQL
--> it sends exactly this string instead of the content of
your variable $SQL, which contains the real query.
--
PHP General Mailing List (http://www.php.net
line 29: mysql_query('$SQL')
will send the following query to your db:
$SQL
i know of no db that understands that ;-)
everything in single quotes is NOT parsed by php. here, use
double quotes, or better, none at all.
hope it works now,
phil.
--
PHP General Mailing List (http://www.php.net/
hi nelson,
i'm not sure if i get you right, but you could store the
'base' of your generated SQL query in a session variable,
that way you don't have to drag the $kw array along.
// before any html output (sends http headers)
session_start();
// build query from keywords
--> results in string
Alawi wrote:
> use $PHPSELF not $PHP_SELF in windows
BAD IDEA.
what happens if one day you (or even worse: someone else) wants to run
your scripts on a different server?
one of the nicest things about PHP that you can run it on many different
any OS's.
phil.
--
PHP General Mailing List
> Now for some strange reasons it tries to access my web direcorty that
> does not contain any file, and i get the 404 page not found error.
>
check the source code of the html page. most likely you will see:
. if not, it will still give you a hint about what's
going wrong.
are you constructin
Gregor Jaksa wrote:
> Hello,
>
> is it possible to register array in session .. something like that:
> session_register("ex_array[field1]");
> session_register("ex_array[field2]");
session_register("ex_array")
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [E
Phantom wrote:
> I solicit information from a text field and save the data in mysql to be
> pulled out later and displayed as text on a webpage.
>
> However, Carrage Returns in the text field do not appear in the webpage
> text.
they're not supposed to show up in HTML !
you need to replace
see my message Re: URL checking.
i just posted a few curl functions that do exactly what you want to.
phil.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail:
Phillip B. Bruce wrote:
> 1. Is there any documentation that explains the differences between
> the versions of PHP?
php4 : much more fun ! go use it !
the documentation will tell you on each function page in which php
version the fuction was first available.
> 2. Does it matter when writing
Trx wrote:
> Hi, I'm very much a newbie!
> I'm trying to set up a site which will automatically test links in a large
> link directory and show date and time of last check and whether or not a
> link to the external URL was dead or alive at the time.
the curl library will let you do this. query
Tommy Straetemans wrote:
> Is there a way to check the height and width from a picture that I upload?
yes, easy.
but you need gdlib installed.
will tell you.
from the documentation:
" The GetImageSize() function will determine the size of any GIF, JPG,
PNG, SWF, PSD or BMP image file a
John Lim wrote:
> This is a known bug with persistent database connections. Switching to
> non-persistent connections or ISAPI avoids this problem.
thanks !
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTE
does anyone know what
Warning: Unknown persistent list entry type in module shutdown (11) in
Unknown
means? what do i have to do to solve the problem php seems to have?
environment:
Win2k, IIS5.0, MySQL
just upgraded from PHP 4.0.6 to 4.1.0
now i get the warning msg.
any help would be apprecia
Yoed Anis wrote:
> hey guys,
>
> quick question I'm having trouble finding an answer too.
> In a mysql database, how can I select that last row entry. This might be
> done mins after i put that entry there and i tried to use:
> $lastid=mysql_insert_id(); to get the last id but to no avail.
>
>
why would you want you quote the variable?
eval ("\$str = $str;");
should work.
at least no more parse error.
phil.
[EMAIL PROTECTED] wrote:
> I keep getting this error when I use eval what am I missing
>
> Parse error: parse error in c:\httpd\doc\install.php(6) : eval()'d code on line 1
does anyone know what
Warning: Unknown persistent list entry type in module shutdown (11) in
Unknown
means? what do i have to do to solve the problem php seems to have?
environment:
Win2k, IIS5.0, MySQL
just upgraded from PHP 4.0.6 to 4.1.0
now i get the warning msg.
any help would be apprecia
27 matches
Mail list logo