On Thu, 25 Mar 2004 02:58:39 -0500
Andy B [EMAIL PROTECTED] wrote:
What do mean by keeps getting stuck? Where? What? Any error
messages?
0 errors and 0 messages of any kind and what i meant by getting
stuck was every time the login.html is filled out and submitted
i either get the
What happens if you give a the correct ones?
doesnt make any difference... will take the display_errors thing and turn it
on...
do i have to pay any attention to something of this sort:
[notice] undefined variable in ../login.php: $_SESSION[username] is
undefined
but i defined it
On Thu, 25 Mar 2004 03:21:54 -0500
Andy B [EMAIL PROTECTED] wrote:
What happens if you give a the correct ones?
doesnt make any difference...
Then there's a problem with your code. Check $username first
before you use it. Also, if you're using $_POST then you should
use $_POST['username']
ok now this is really messed up something strange (maybe my server is
haunted with a ghost or something??). I changed the variables to have the ''
in the indexes and stuff (got rid of the notices problem) but when i totally
removed the header(); lines and put echo test login worked and echo
test
Hello Andy,
Thursday, March 25, 2004, 8:44:46 AM, you wrote:
AB whats the deal with that... (and i dont get any php/sql errors at all)
Post your code, we can't debug user experiences :)
--
Best regards,
Richard Davey
http://www.phpcommunity.org/wiki/296.html
--
PHP General Mailing List
Hello Andy,
Thursday, March 25, 2004, 8:21:54 AM, you wrote:
What happens if you give a the correct ones?
AB doesnt make any difference... will take the display_errors thing and turn it
AB on...
AB do i have to pay any attention to something of this sort:
AB [notice] undefined variable in
Jason Giangrande wrote:
[ snipped ]
Also, is it possible to download a package marked beta with PEAR, or
does it need to be downloaded manually?
Yes, you can do this, by running the following command:
$ pear config-set preferred_state beta
Then you can download beta packages.
--
PHP General
hi!!
tnx for the help with that huge problem... got it running and this is how...
the query ...username='...' and pwd=md5(...) was in and i guess when you have
something like that putting '' in an index name is illegal?? can somebody explain why?
and on the line: if(.) {...
num_of_rows()
Hello Andy,
Thursday, March 25, 2004, 9:32:12 AM, you wrote:
AB but of course it could always be turned around to:
AB if($result==true) {...} but dont know what way is better or if it
AB is a personal choice...
A better solution might be to check if a MySQL error has been raised -
please note
[snip]
please note this will only catch invalid queries. To catch the event
of the query being perfectly fine, but nothing coming back, just check
the values of num_rows or affected_rows (depending on the query).
[/snip]
um?? this way doesnt work for some strange reason... testing
On 25 March 2004 09:32, Andy B wrote:
the final line then is: if($result==false) {//test the query
itself..if false then
print whatever
} else {//if it did work then do this...}
but of course it could always be turned around to:
if($result==true) {...} but dont know what way is better or
Hello Andy,
Thursday, March 25, 2004, 9:53:05 AM, you wrote:
AB um?? this way doesnt work for some strange reason... testing
AB affected_rows returns always with 0 so:
AB if(mysql_affected_rows()==0){...}
It depends on your query. If you are doing a SELECT query then you
cannot use
Just testing to see if this works. Sorry =)
Mike Ford [EMAIL PROTECTED] skrev i meddelandet
news:[EMAIL PROTECTED]
On 25 March 2004 09:32, Andy B wrote:
the final line then is: if($result==false) {//test the query
itself..if false then
print whatever
} else {//if it did work then do
So, just for the sake of me getting this right, it would be better code if i
had the code like this:
?
$UserExists=mysql_query(select * from users where
username='$_POST[username]' and pwd=md5($_POST[password]));
//since query is done see if the user exists
if($UserExists) {
Hello Andy,
Thursday, March 25, 2004, 10:43:54 AM, you wrote:
AB So, just for the sake of me getting this right, it would be better code if i
AB had the code like this:
AB ?
AB $UserExists=mysql_query(select * from users where
AB username='$_POST[username]' and pwd=md5($_POST[password]));
AB
Hi,
I have a TIME field type in mysql database I want to do a select and add all the times
together to return a total time, can I do this using the select statement?
cheers
matt
Matthew Oatham wrote:
Hi,
I have a TIME field type in mysql database I want to do a select and add all the times together to return a total time, can I do this using the select statement?
cheers
This is a PHP list, not MySQL.
http://www.mysql.com/doc/en/DATETIME.html
--
PHP General Mailing
Hi David,
same thing i reported to the PHP-DEV List some time ago ( before RC1
was released ). The problem is the Win32/Apache2 Combination you
are using.
I am not completely sure, but it looks like debug_backtrace(); causes
this crash. Maybe look at my little script for details:
Do you actually need to bring back the user data? What I mean is,
you're selecting * from the users table and doing nothing with it other than
worrying if the query was successful or not.
ops!! I forgot to mention that the username is used elsewhere in a different
file somewhere (to verify the
select sum(mytime) from table...
not sure if it will work but try it!
angelo
-Original Message-
From: Matthew Oatham [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 25, 2004 1:31 PM
To: [EMAIL PROTECTED]
Subject: [PHP] time function
Hi,
I have a TIME field type in mysql database I
I am using these to get the code of a page that is listed in the code
below. I am using the example code of fsockopen on php.net as reference.
I can get the response header but i have a problem with the CHUNKs.
the Code :
$header = ;
$response = ;
if (!($fp = fsockopen
Hello Andy,
Thursday, March 25, 2004, 11:57:09 AM, you wrote:
AB SELECT COUNT(username) AS hits FROM users WHERE ...
AB dont know because then how would i verify that the valid user was logged in
AB or if they typed the wrong stuff in??
Because it works like this:
SELECT COUNT(username) AS
Hello Mooki,
Thursday, March 25, 2004, 12:26:27 PM, you wrote:
M I am using these to get the code of a page that is listed in the code
M below. I am using the example code of fsockopen on php.net as reference.
M I can get the response header but i have a problem with the CHUNKs.
You could save
if ($result)
{
echo Valid user;
} else {
echo Error?;
}
?
/body
/html
-- End here --
Now if what you're saying is correct, the final if result() block
should only print valid user if the user exists in the database,
right?
yup and
Hello Andy,
Thursday, March 25, 2004, 1:17:54 PM, you wrote:
AB yup and believe it or not if($result) only returns true if a valid
AB username/password row can be found otherwise it returns a non existing
AB resource
Absolutely fascinating, I have never seen a MySQL server behave like
this.
Dear All,
How can we control php convert the unicode from MS-SQL 2000 ?
Many thank for your help !
Edward.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hey, there.
I'm a new php student from Brazil, and sorry about my ignorance writing
in English.
I'd like to know if exists any function in php that identifies a string
as a-z, like is_num() to the numbers.
Thanks,
Lourenzo
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
is_string()
Le jeu 25/03/2004 à 15:08, Lourenzo Dias a écrit :
Hey, there.
I'm a new php student from Brazil, and sorry about my ignorance writing
in English.
I'd like to know if exists any function in php that identifies a string
as a-z, like is_num() to the numbers.
Thanks,
Does anybody know of a good COM object tutorial, that explains how to format
a
microsoft word document via PHP?
Thanks in advance.
Jakes
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Actually this is not true. For example:
$test = 22;
if(is_string($test))
echo IS A STRING;
Will print IS A STRING.
On Thu, 2004-03-25 at 09:18, Guillouet Nicolas wrote:
is_string()
Le jeu 25/03/2004 à 15:08, Lourenzo Dias a écrit :
Hey, there.
I'm a new php student from
no.
use: preg_match(^[a-zA-Z]*$,$string);
Lourenzo Dias wrote:
Hey, there.
I'm a new php student from Brazil, and sorry about my ignorance
writing in English.
I'd like to know if exists any function in php that identifies a
string as a-z, like is_num() to the numbers.
Thanks,
Lourenzo
ups ... you have right. ... is_string ... I forget that
sorry
Ryszard Hapka wrote:
no.
use: preg_match(^[a-zA-Z]*$,$string);
Lourenzo Dias wrote:
Hey, there.
I'm a new php student from Brazil, and sorry about my ignorance
writing in English.
I'd like to know if exists any function in php
Adam Voigt wrote:
Actually this is not true. For example:
$test = 22;
if(is_string($test))
echo IS A STRING;
Will print IS A STRING.
Try
$test = 22;
The denotes a string and without quotes it denotes a value
HTH,
Roger
--
PHP General Mailing List (http://www.php.net/)
To
* Thus wrote Lourenzo Dias ([EMAIL PROTECTED]):
Hey, there.
I'm a new php student from Brazil, and sorry about my ignorance writing
in English.
I'd like to know if exists any function in php that identifies a string
as a-z, like is_num() to the numbers.
You're looking for ctype_alpha().
Hello,
I'm just wondering about this setting for the Session management
functionality. To wit, will the session timer keep getting 'reset', so
that as long as a user is still accessing my site, the session doesn't
expire? Or will the session 'die' after the amount of time specified by
this
Thats what I was pointing out, the fact that the is_string function
won't work if he selects ab9cd out of a DB, because as I understand
it, he's looking to check a string to see if it contains all letters a
to z.
On Thu, 2004-03-25 at 09:31, Roger Spears wrote:
Try
$test = 22;
The
Hello Jeff,
Thursday, March 25, 2004, 2:40:04 PM, you wrote:
JS I'm just wondering about this setting for the Session management
JS functionality. To wit, will the session timer keep getting 'reset', so
JS that as long as a user is still accessing my site, the session doesn't
JS expire? Or
On Wed, 24 Mar 2004 20:46:33 -0500, [EMAIL PROTECTED] (Andy B) wrote:
hi...
trying to figure out what is wrong here... the code is supposed to check an md5'd
password from a form and compare it against an md5'd password in a mysql table... for
some strange reason when i run the code below on
I have this little code.
I want all arrays sorted case insensitive key order, but only the first
dimension gets key sorted properly
Thanks
--
Richard A. DeVenezia
?
$A = array (
C = array ( x = 1, Z = 2, y = 3)
, b = array ( z = 1, Y = 2, x = 3)
, A = array ( z = 1, X = 2)
);
print_r ($A);
Hello...
I reclently upgraded the OpenSSL to stay ahead of some new
vulnerabilities dicovered in 0.9.7c, the new installation (0.9.7d)
replaced the libssl.so and libcrypto.so files.
Aftes the upgrade I restarted Apahce (and PHP) but the phpinfo function
still shows the old versión of openssl in
while (list($key,$dim2) = each ($A)) {
uksort ( $A[ $key ] , strcasecmp);
}
print_r ($A);
$dim2 will not change $A[ $key ], so you will have to change your
script to alter them directly.
-- red
[]
I have this little code.
I want all arrays sorted case insensitive key order, but only the
http://www.php.net/manual/en/function.setlocale.php
That is the problem. I have tried that, but it needs to be installed. I'm not in a
position to ask on this particular server. I have PHP Version 4.3.4 all the same.
http://www.glquebec.org/English/test.php
The code echoes
Friday 22 December
Hi all!
I need some recommendations from someone who is using
php with ms sql.
Is it stable? Is it run without any kind of problems?
Do you recommend to use php and ms sql server?
I have a linux Red Hat 7.3 and PHP 4, and a SQL Server
2000.
Thanks a lot and Regards,
Ivone
--- Mooki [EMAIL PROTECTED] wrote:
I am using these to get the code of a page that is listed in the code
below. I am using the example code of fsockopen on php.net as
reference.
I can get the response header but i have a problem with the CHUNKs.
I can show you how to deal with chunked
Absolutely fascinating, I have never seen a MySQL server behave like
this. Could you post which version of MySQL you're using and perhaps
the MySQL part of phpinfo()? There must be something *somewhere* that
controls this behaviour.
PHP Version 4.0.4pl1
Linux noir.propagation.net 2.0.36 #5 Wed
Hello...
I reclently upgraded the OpenSSL to stay ahead of some new
vulnerabilities dicovered in 0.9.7c, the new installation (0.9.7d)
replaced the libssl.so and libcrypto.so files.
Aftes the upgrade I restarted Apahce (and PHP) but the phpinfo function
still shows the old versión of openssl in
Does anyone know what --enable-debug gives you when building php? Does this
hinder normal operation of php or just take a small hit in performance to be
able to render more debug information when needed?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Hello Andy,
Thursday, March 25, 2004, 5:45:52 PM, you wrote:
AB PHP Version 4.0.4pl1
Wow, that's an old version of PHP! It could be the cause of this,
there's nothing in you phpinfo to give anything else away (i.e. it's
identical to mine).
--
Best regards,
Richard Davey
Red Wingate wrote:
while (list($key,$dim2) = each ($A)) {
uksort ( $A[ $key ] , strcasecmp);
}
print_r ($A);
$dim2 will not change $A[ $key ], so you will have to change your
script to alter them directly.
-- red
Like thus:
uksort ($myArray, strcasecmp);
foreach
I am not sure if this was designed like this, or if its just something im
doing wrong.
Im posting some data to a processing page, where i handle it then use
Header('Location: other.php') to direct me to another page.
The problem that im running into is that the posted data is available in
Chris Thomas wrote:
I am not sure if this was designed like this, or if its just something im
doing wrong.
Im posting some data to a processing page, where i handle it then use
Header('Location: other.php') to direct me to another page.
The problem that im running into is that the posted data is
php / mysql/ apache
I tried the following using the call to htmlspecialchars()
not sure why it is insn't working.
I get the output:
a href='test'Test/a
Thank you.
TR
..
//script
?
$new = htmlspecialchars(a href='test'Test/a, ENT_QUOTES);
echo $new;
?
// this is what is
Is there an easy way to loop through the $_Post vars and create a table with
all the names and values? I need a class that I can attach to any form to
output the names and values then e-mail them.
Thanks,
Eddie
WARNING: The information contained in this message and any attachments is
intended
Anthony Ritter mailto:[EMAIL PROTECTED]
on Thursday, March 25, 2004 12:41 PM said:
ok first of all your email was pretty confusing until i read the
entire thing! not that it's long, but that you sign off before you're
even done with it.
but i digress...
$new = htmlspecialchars(a
--- Chris Thomas [EMAIL PROTECTED] wrote:
Im posting some data to a processing page, where i handle it then use
Header('Location: other.php') to direct me to another page.
The Location header requires an absolute URL.
The problem that im running into is that the posted data is available
in
--- Anthony Ritter [EMAIL PROTECTED] wrote:
I tried the following using the call to htmlspecialchars()
not sure why it is insn't working.
I get the output:
a href='test'Test/a
Thank you.
TR
..
//script
?
$new = htmlspecialchars(a href='test'Test/a, ENT_QUOTES);
Chris Shiflett mailto:[EMAIL PROTECTED]
on Thursday, March 25, 2004 1:01 PM said:
I think you made a typo or you're misinterpreting something. The URL
referenced in a Location header will be requested with a GET request,
so it is impossible that any POST data exists.
alright cool. now
Edward Peloke mailto:[EMAIL PROTECTED]
on Thursday, March 25, 2004 12:50 PM said:
Is there an easy way to loop through the $_Post vars and create a
table with all the names and values? I need a class that I can
attach to any form to output the names and values then e-mail them.
yes. look
?php
$rootPath = ;
$cacheTime= 0;
$Diff = (time() - filemtime($rootPath.stuff.dat))/60;
$cntrp=0;
$cntrb=0;
$cntrt=0;
$cntrd=0;
$cntrc=0;
if ($Diff $cacheTime) {
$file = fopen (local file, r);
if (!$file) {
?php
$rootPath = ;
$cacheTime= 0;
$Diff = (time() - filemtime($rootPath.stuff.dat))/60;
$cntrp=0;
$cntrb=0;
$cntrt=0;
$cntrd=0;
$cntrc=0;
if ($Diff $cacheTime) {
$file = fopen (local file, r);
if (!$file) {
Here is a url with the problem that i was describing
http://xiot.darktech.org
I fiddled and I found what the problem.
Header('Location: $calling) the first char in $calling can not be a
/
I was setting $calling with $_SERVER['PHP_SELF'] which adds the / in front
of the path.
I changed
From: PHPDiscuss - PHP Newsgroups and mailing lists [EMAIL PROTECTED]
if (eregi ('trtd valign = topspan class = gray' . '[.+]'
'/span/td/tr/table', $line, $cont))
[.+] is going to match a literal period or plus sign and only one of them.
You either want just .+ to match one or more
From: Edward Peloke [EMAIL PROTECTED]
Is there an easy way to loop through the $_Post vars and create a table
with
all the names and values? I need a class that I can attach to any form to
output the names and values then e-mail them.
foreach($_POST as $name = $value)
{ echo $name:
Why not use Smarty or another template engine? (http://smarty.php.net/)
Good Luck,
Erich Kolb
http://www.providenames.com
Jason Giangrande [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I'm looking for an easy way to write all my HTML using PHP. I could do
this with a bunch of
I'd do this I think:
uksort($A,'strcasecmp');
reset($A);
while(list($key,$val)=each($A))
{
uksort($A[$key],'strcasecmp');
}
--
// DvDmanDT
MSN: dvdmandt¤hotmail.com
Mail: dvdmandt¤telia.com
Richard A. Devenezia [EMAIL PROTECTED] skrev i meddelandet
news:[EMAIL PROTECTED]
I have this little
Having some problems with ereg()
[begin code]
$string=Credit adjusted: $-1.32 to $48.68
ereg(([\\$(\\$-)][0-9]+\.[0-9]+),$data[2],$found);
While(list($index,$hits)=each($found))
{
echo $index , $hitsbr;
}
[end code]
Returns
0 ,
On Thu, 25 Mar 2004 18:31:02 -0500, Jeff McKeon [EMAIL PROTECTED]
wrote:
Having some problems with ereg()
[begin code]
$string=Credit adjusted: $-1.32 to $48.68
ereg(([\\$(\\$-)][0-9]+\.[0-9]+),$data[2],$found);
While(list($index,$hits)=each($found))
{
Just wondering, what is faster / more effecient, storing a value in the
session variable which gets stored on the filesystem (from what i
understand) or database calls to re-get the information?
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
The difference between the two probably works out to less than 10
milliseconds on most servers, from a quick study that I ran on some HP
servers that were brand new last summer, with the faster times using the
filesystem. Course, the flexibility gained in managing the database version
caused us
Vail, Warren mailto:[EMAIL PROTECTED]
on Thursday, March 25, 2004 4:40 PM said:
Answer was; only the paranoid
would notice the difference ;-). Course our user population was
relatively small (100 - 500 concurrently signed on).
i don't even think rainman would notice 10 milliseconds.
Probably depends on how efficient your database server is setup as well as
what harddisks you use and so on.. Also depends on how much data it's about
I think..
I'd use sessions if I was you..
--
// DvDmanDT
MSN: dvdmandt¤hotmail.com
Mail: dvdmandt¤telia.com
Chris Thomas [EMAIL PROTECTED] skrev
Guess I didn't mention that in my test I was using sessions in both cases
(the default stored as files on a files system) and with database routines
to store the same session data in a MySQL database.
http://www.php.net/manual/en/function.session-set-save-handler.php
the session data component
Hi Red,
I don't think my problem is caused by debug_backtrace()
Perhaps I'll try apache1.3... I guess for now I'll just lie low so that a
PHP5 debugger will be released, and then I can use that to find out what's
going on. Kind of ridiculous to release something that still crashes, but oh
Hello,
I'm creating registration service with this great form script for
creating forms within Smarty.
Question is how can I validate 'username' against allready registered
users in MySQL so that someone cannot register him self if there is
another user with that username.
TNX!
--
PHP
Hi,
Friday, March 26, 2004, 11:19:51 AM, you wrote:
dz Hello,
dz I'm creating registration service with this great form script for
dz creating forms within Smarty.
dz Question is how can I validate 'username' against allready registered
dz users in MySQL so that someone cannot register him
hi...
just wondering if anybody had problems with messages to the list timing out and
getting sent back to them?? i seem to be getting this problem lately (last 2-3 days)
and have about 20 copies of the same message being sent back to me by postmaster...
permenant failure: message timed
I get the same problem on windows, with php5/apache2, and php5/apache1.3.
Refreshing any complex script a number of times seems to do it?
David Chen [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi Red,
I don't think my problem is caused by debug_backtrace()
Perhaps I'll try
hi friends ,
Ihave a log file that is creating while
running a perl script.That log can i read ( using, tail -f log.file ) in to a
web interface from php ?
Is there any possibility , plz help
...,
Thanx in advance,
curlys
--
PHP General Mailing List (http://www.php.net/)
To
--
jdavis [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
try;
echo htmlspecialchars(exec(tail -f log.file));
this, of course, assumes your php web server is on the same machine as the
log file.
Warren Vail
-Original Message-
From: CurlyBraces Technologies ( Pvt ) Ltd [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 25, 2004 6:24 PM
To: PHP
hello, I have a
php script that i have ran on a linux and bsd box, on both boxes the script will work
and sendmail for a while, then it just seems to stop working. Does anyone have a idea
why this is.
thanks,
--
jdavis
Hello,
On 03/25/2004 10:19 PM, Dr. Zoidberg wrote:
I'm creating registration service with this great form script for
creating forms within Smarty.
Question is how can I validate 'username' against allready registered
users in MySQL so that someone cannot register him self if there is
another
* Thus wrote CurlyBraces Technologies ( Pvt ) Ltd ([EMAIL PROTECTED]):
hi friends ,
I have a log file that is creating while running a perl script.That log can i read (
using, tail -f log.file ) in to a web interface from php ?
Is there any possibility , plz help ..,
You can
On Friday, March 26, 2004, at 04:47 AM, Resell Domain Names wrote:
Why not use Smarty or another template engine? (http://smarty.php.net/)
Smarty has a lot of overhead. PHP is a perfectly good templating
engine all by itself.
What the OP may or may not have understood is that PHP and HTML can
Justin French wrote:
On Friday, March 26, 2004, at 04:47 AM, Resell Domain Names wrote:
Why not use Smarty or another template engine? (http://smarty.php.net/)
Smarty has a lot of overhead. PHP is a perfectly good templating engine
all by itself.
What the OP may or may not have understood
Hi,
Friday, March 26, 2004, 2:36:18 PM, you wrote:
pen On 25 Mar 2004 at 14:10, Tom Rogers wrote:
Any whitespace in any file before the ?php will cause data to be sent
to the browser forcing the headers to be sent. So make sure the first
line of your page has ?php and it is a good idea to
I'm using this one with no problems, its actually quite fast
http://pukomuko.esu.lt/phemplate/
there is a benchmark against smarty aswell, i was actually thinking of going
the smarty path as so many php apps use it, what is the better of them ,
anyone using this class ?
-Original
87 matches
Mail list logo