Hi, I've upgraded to the latest version of php last week. Suddenly parts
of code that was working now displays error.
The errors I've found until now are related to Sybase (I use MSSQL 2k as
DB server)
Here is an example:
Warning: mssql_num_rows(): supplied argument is not a valid Sybase
Javier wrote:
Hi, I've upgraded to the latest version of php last week. Suddenly parts
of code that was working now displays error.
The errors I've found until now are related to Sybase (I use MSSQL 2k as
DB server)
Here is an example:
Warning: mssql_num_rows(): supplied argument is not a
on Wed, Jun 18, 2003, Matt Palermo wrote:
I have a forms page that a user will fill out. When it is submitted, it
checks to see if any of the field entries entries are empty, and if so,
it has a die() statement that has a link (javascript:history.back())
which sends the user back to the form
Hello,
I am trying to include a dll module in the file. In php.ini safe_mode is off
I am getting following warning/error
Warning: MyMod: Unable to initialize module Module compiled with debug=0,
thread-safety=1 module API=20020429 PHP compiled with debug=0, thread-safety=1 module
Can someone please tell me what I'm doing wrong with this DB.php code? I can't seem to
use it to connect to a database. I can connect to the database using the conventional
mysql_connect methods but when the following code executes it blanks out all output
and I have no way of telling if it's
Hi,
I'm testing an implementation of a browser / platform detection on my site.
I need a few page views from my non-windows friends, to see some of the
varieties of the user_agent_string I get. Please take a moment and surf a
page or two on
www.basementideas.com/index.php
Thanks.
Mike
--
Mike:
If it is possible, I would like to see the code you have to detect the
diferent browsers and platforms. I'm doing the same here! Maybe we can
share some code?
Cesar
-Original Message-
From: Mike Mannakee [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 18, 2003 1:56 PM
To: [EMAIL
Hi,
I have failed to find the information I am looking for on session management
by PHP do they use cookies? Is there a way to use URL rewriting? How do I
find the timeout time? is there a way to close a session manually?
It seem to me like all those questions got to have answers for them
Well, the PHP Manual said we should be using the quote (single or double)
inside the array no matter what, it also reduce the side-effect problem.
It's what I read at php.net in the past.
Lars Torben Wilson [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
On Wed, 2003-06-18 at 10:32,
Did you try taking a look at the manual?
Tyler
- Original Message -
From: Lee Elenbaas [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 18, 2003 1:06 PM
Subject: [PHP] Sessions?
Hi,
I have failed to find the information I am looking for on session
management
by PHP -
On Wed, 2003-06-18 at 11:06, Lee Elenbaas wrote:
Hi,
I have failed to find the information I am looking for on session management
by PHP do they use cookies? Is there a way to use URL rewriting? How do I
find the timeout time? is there a way to close a session manually?
It seem to me like
On Wed, 2003-06-18 at 11:11, Scott Fletcher wrote:
Well, the PHP Manual said we should be using the quote (single or double)
inside the array no matter what, it also reduce the side-effect problem.
It's what I read at php.net in the past.
That's referring to string literals, but that might not
Well, I don't remember exactly where was it mentioned. It involve the
array, $_SESSION, $_REQUEST, etc. where there is a double bracket is being
mentioned. :-)
Thanks,
Scott
P.S. still working on php script. sigh!
Lars Torben Wilson [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Bingo!! I did some PHP re-arrangement and I also do what you were saying
about taking out the quote. It doesn't work with the quote inside and it
work without the quote. What so interesting is that the year is actually a
string so I figured that putting it in a sting will work, but I guess
Anyone see anything wrong with this line of code?
$fine = mysql_query(INSERT INTO
tblPOItems(poID,poItemUPC,poItemNumber,poItemDescription,poItemInnerCasePkg,
poInnerQuantity,poItemEstQuantity,poItemCostEach,poItemSuggestedSellPrice)
values('$poID', '$place[0]', '$inmb', '$ides', '$iicp',
You are missing the closing ) around the values you are inserting.
Anyone see anything wrong with this line of code?
$fine = mysql_query(INSERT INTO
tblPOItems(poID,poItemUPC,poItemNumber,poItemDescription,poItemInn
erCasePkg,
On Wed, 2003-06-18 at 11:45, Scott Fletcher wrote:
Bingo!! I did some PHP re-arrangement and I also do what you were saying
about taking out the quote. It doesn't work with the quote inside and it
work without the quote. What so interesting is that the year is actually a
string so I figured
the error checking include file just handles php errors, the javascript
handles form validation. I believe the problem i am having is with the
session not the error handling, because i removed all validation and it did
the same thing.
~Logan
Steve Keller [EMAIL PROTECTED] wrote in message
At 6/18/2003 03:22 PM, Logan McKinley wrote:
the error checking include file just handles php errors, the javascript
handles form validation. I believe the problem i am having is with the
session not the error handling, because i removed all validation and it did
the same thing.
Yes, that's
- Original Message -
From: Logan McKinley [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Wednesday, June 18, 2003 12:51 PM
Subject: [PHP] Strange roblems with sessions
what it is meant to do:
take a querystring set it to a session variable (outputs error if neither
Also, you might have problems with the array reference $place[1] not
expanding from within the string - you might need to concatenate the
string around it:
...'$cases', '. $place[1] .', '$iice'...
..michael..
On Wed, 2003-06-18 at 12:05, Jennifer Goodie wrote:
You are missing the closing )
On Wed, 2003-06-18 at 12:56, Michael Sweeney wrote:
Also, you might have problems with the array reference $place[1] not
expanding from within the string - you might need to concatenate the
string around it:
...'$cases', '. $place[1] .', '$iice'...
..michael..
No, his syntax with that
On 17 Jun 2003 09:37:12 -0500, Tom Woody [EMAIL PROTECTED] wrote:
On Tue, 2003-06-17 at 09:09, nabil wrote:
A side question along with this ,,, how can I include $_POST['foo'] in
the
:
$sql =select * from db where apple = '$_POST['foo']' ;
without getting an error ??
should I append it as
Gah!!!
:)
Thanks!
Thanks to all! :)
-Mike
-Original Message-
From: Jennifer Goodie [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 18, 2003 3:05 PM
To: Mike At Spy; [EMAIL PROTECTED]
Subject: RE: [PHP] Agh! Driving me crazy!
You are missing the closing ) around the values
I what to be able to set a variable based on user's screen resolution.
Can anyone tell me who to do that?
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
The problem is happening when the header(Location:
http://localhost/PHP/registration_form.php;); line is executed to redirect
to the registration_form.php page. It occurs before you ever get to the
point where the form would be submitted. Its all in the php code at the
beginning of the page.
On Tue, 2003-06-17 at 07:47, Chris Hayes wrote:
At 16:37 17-6-03, you wrote:
On Tue, 2003-06-17 at 09:09, nabil wrote:
A side question along with this ,,, how can I include
$_POST['foo'] in the
:
$sql =select * from db where apple = '$_POST['foo']' ;
without getting an error
Hello all, I have this code that takes an image sent from a form and resizes
it for a thumbnail and for display, the problem is the pictures look nice
until this does the resizing, then the quality is horrible...can I fix it?
Thanks,
Eddie
?
if(!empty($myimage)){
$id=$HTTP_GET_VARS['id'];
This might help :
array img_resize(string 'path to source image', string 'path to
destination image', string mode, int size);
modes:
h - Height
w - Width
a - auto (resizes by the largest dimension)
http://examples.weberdev.com/get_example.php3?count=157
Sincerely
berber
Visit
You already have the information you need, call the previous page again
with this info + a message about what was wrong.
Sincerely
berber
Visit http://www.weberdev.com/ Today!!!
To see where PHP might take you tomorrow.
-Original Message-
From: Matt Palermo [mailto:[EMAIL PROTECTED]
i'm having a heck of a time getting snmpv2 to work with php. does anyone else
have it working yet?
i'm on rh 7.3 with apache v 1.3.23-14 and php v 4.1.2-7.3.6 on a test system
not on the internet.
what i'm trying to accomplish is a mib walk with php on a device that only
supports snmpv2.
setting up some pages to allow users to log in, and store their userID in a
session var.
for development purposes, i've installed AMP on my windows box.
-everything parses fine
-register globals is on.
problem: session vars do not seem to be carrying over pages, even when i set
the session_id
how about :
Start Using MySQL
http://articles.weberdev.com/ViewArticle.php3?ArticleID=247
Beginners guide to PHP/MySQL - Creating a simple guest book
http://articles.weberdev.com/ViewArticle.php3?ArticleID=26
Sincerely
berber
Visit http://www.weberdev.com/ Today!!!
To see where PHP might take
print $_POST['foo']; // generates a warning
The above is only true in PHP 4.3.0-1 as there was a
bug that caused the E_NOTICE there. In all other PHP
versions, the above will cause a parse error.
Regards,
Philip
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Use javascript to get the screen resolution and pass it back to your php script thru a
hidden form field or some other means.
On 18 Jun 2003 at 16:21, Vernon wrote:
I what to be able to set a variable based on user's screen resolution.
Can anyone tell me who to do that?
Thanks
--
On Thursday 19 June 2003 04:39, Edward Peloke wrote:
Hello all, I have this code that takes an image sent from a form and
resizes it for a thumbnail and for display, the problem is the pictures
look nice until this does the resizing, then the quality is horrible...can
I fix it?
On Wed, 2003-06-18 at 13:39, Edward Peloke wrote:
Hello all, I have this code that takes an image sent from a form and resizes
it for a thumbnail and for display, the problem is the pictures look nice
until this does the resizing, then the quality is horrible...can I fix it?
Thanks,
Eddie
On Wed, 18 Jun 2003, zavaboy wrote:
I know this is more of a mySQL question but, how do I delete and add rows
and columns?
Before you touch MySQL or attempt to access it through
PHP, you really should learn basic SQL:
http://www.sqlcourse.com/
http://www.w3schools.com/sql/
The point is I don't know how to do that. That's why I was asking. :)
Vern
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
thanks, I tried and it doesn't help. For some reason some of the pictures I
upload look fine and some look bad no matter if I use imagecopyresampled or
resized
-Original Message-
From: Lars Torben Wilson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 18, 2003 4:49 PM
To: Edward Peloke
I what to be able to set a variable based on user's screen resolution.
Can anyone tell me who to do that?
Use javascript to get the screen resolution and pass it back to your php script thru
a
hidden form field or some other means.
And awhile back someone used this as an example for
Thats' great!
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
What is the best way to validate a "money" input? For example, 3452.67 versus
3452..67.
Todd
--
What is the best way to validate a money input? For example, 3452.67
versus 3452..67.
if($value == (string)round((float)$value,2))
or
if(preg_match('/^[0-9]*\.?[0-9]+$/',$value))
appear to work. :) Assuming your value is a string to start with.
---John Holmes...
--
PHP General Mailing
On Thursday 19 June 2003 05:05, Edward Peloke wrote:
thanks, I tried and it doesn't help. For some reason some of the pictures
I upload look fine and some look bad no matter if I use imagecopyresampled
or resized
$newimg=imagecreate($nw,$nh);
Use imagecreatetruecolor() instead.
--
Vernon wrote:
The point is I don't know how to do that. That's why I was asking. :)
But it's a javascript question, not a PHP question.
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will be prosecuted to the full extent of the law.
--
I am new to PHP and am trying to get access to files that are uploaded.
I have RTFM ;-) and have noticed that PHP writes the file to disk in a
temporary location and provides a method/class with all of the
information needed to access it. I am loading (PDF's) into a binary
field in mySQL and
I am new to PHP and am trying to get access to files that are uploaded.
I have RTFM ;-) and have noticed that PHP writes the file to disk in a
temporary location and provides a method/class with all of the
information needed to access it. I am loading (PDF's) into a binary
field in mySQL and
Hey all,
I have one corrupted image in a list of thoughsand of images, and the program stop
with this message
Corrupt JPEG data: bad huffman code
Any idea to ignore this image and continue ? i cannot detect which image is corrupted
and imagecreatefromjpeg return true
thank you,
Hatem
what it is meant to do:
take a querystring set it to a session variable (outputs error if neither
querystring nor sesison exist) then reloads the page (to remove the
querystring)
what it (appears) to do:
it sets the querysting to the session, reloads the page and outputs an error
saying it doesn't
At 6/18/2003 02:51 PM, Logan McKinley wrote:
-- the code in question
I have attached the actual files if that would be of more help,
Thanks in advance for any help,
The first thing that I noticed is that you're doing error checking in
registration_form.php, but your form is
|- Original Message -
|From: Logan McKinley [EMAIL PROTECTED]
|To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
|Sent: Wednesday, June 18, 2003 12:51 PM
|Subject: [PHP] Strange roblems with sessions
|
|
| what it is meant to do:
| take a querystring set it to a session variable (outputs error if
Hello everyone,
Could someone point me in the direction of some info on .htaccess files?
Could someone send me one, tell me where to put it in my
server? I hope this is not a stupid question. I am running Apache on a Mac
with Jaguar OSX.
Thanks for your help,
-Steve Marquez
[EMAIL PROTECTED]
Mike At Spy wrote:
Anyone see anything wrong with this line of code?
$fine = mysql_query(INSERT INTO
tblPOItems(poID,poItemUPC,poItemNumber,poItemDescription,poItemInnerCasePkg,
poInnerQuantity,poItemEstQuantity,poItemCostEach,poItemSuggestedSellPrice)
values('$poID', '$place[0]',
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
This is the first release candidate of the upcoming maintenance
release of PHP 4.3.3.
Please download and test it as much as possible on real-life
applications to uncover any remaining issues.
Sources:
Steve Marquez wrote:
Hello everyone,
Could someone point me in the direction of some info on .htaccess files?
Could someone send me one, tell me where to put it in my
server? I hope this is not a stupid question. I am running Apache on a Mac
with Jaguar OSX.
This has nothing to do with PHP.
--
On Wed, 2003-06-18 at 18:34, Steve Marquez wrote:
Hello everyone,
Could someone point me in the direction of some info on .htaccess files?
Could someone send me one, tell me where to put it in my
server? I hope this is not a stupid question. I am running Apache on a Mac
with Jaguar OSX.
Hi everyone!
I would like to know if I need to empty from time to time the directory
where the session files are stored. I'm running windows nt4.0 and Apache.
Thanks in advance.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Nothing to do with php but:
http://search.apache.org/index.cgi?query=.htaccesssubmit=Search%21metaname
=swishdefaultsort=swishranksbm=httpd
On 6/18/03 6:34 PM, Steve Marquez [EMAIL PROTECTED] wrote:
Hello everyone,
Could someone point me in the direction of some info on .htaccess files?
On Wed, 2003-06-18 at 15:34, Steve Marquez wrote:
Hello everyone,
Could someone point me in the direction of some info on .htaccess files?
Could someone send me one, tell me where to put it in my
server? I hope this is not a stupid question. I am running Apache on a Mac
with Jaguar OSX.
I know that this subject has been beaten to death, but I going through old
lists, I see a lot of hosting companies for site hosting, but I am
interested specifically in dedicated server hosting.
It is tough to find a hosting facility that is state of the art, with big
pipes and redundancy, but is
I only heard good things about rackshack. It should be worth a look,
plus the price are more than decent.
http://www.rackshack.net/english/index.asp
Mike Morton wrote:
I know that this subject has been beaten to death, but I going through old
lists, I see a lot of hosting companies for site
I highly recommend http://www.tierranet.com They can deliver what
you need. I've used them for several years and have found their
response and service quality to be excellent. They have custom
configured dedicated hosting.
Mike
At 7:52 PM -0400 6/18/03, Mike Morton wrote:
I know that this
This is soo OT, but you've got a JS error under IE5.1 Mac OS 8.6:
Line 384
Char 2
'undefined' is undefined
Now, what exactly are we supposed to be testing??? Shouldn't your
browser/platform detection be echoing something to the screen, so we can
tell you if it worked/was acurate or not?
on 19/06/03 6:54 AM, Vernon ([EMAIL PROTECTED]) wrote:
The point is I don't know how to do that. That's why I was asking. :)
This is not a JavaScript list -- find out the value in JS (do some googling,
join a JS newsgroup, etc etc), THEN ask us how to work it within your PHP
app.
Justin
--
Not for nothing, but every time I post to this group I get treated poorly.
It has to do with php and I've already gotten an answer from this group, off
the PHP web site no less!
http://www.php.net/manual/en/faq.html.php#faq.html.javascript-variable
Doesn't take much to spread a little kindness.
Hello,
On 06/16/2003 07:20 AM, Zeev Suraski wrote:
I guess they can't compare with what they can't afford to buy.
It's therefore nice that it's available for free 21-day evaluation on
zend.com, isn't it? :)
I suppose that was not available when they started making those
benchmarks.
It
How do I force IE to update the location bar when I do a forced redirect??
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Vernon wrote:
Not for nothing, but every time I post to this group I get treated poorly.
It has to do with php and I've already gotten an answer from this group, off
the PHP web site no less!
http://www.php.net/manual/en/faq.html.php#faq.html.javascript-variable
Doesn't take much to spread a
Vernon,
If you ONLY wanted to know how to deal with JavaScript variables in PHP,
then perhaps you should have limited your question to just that. Your
question asked about screen resolutions, which is totally a discussion based
around JavaScript.
If you wanted to know about JavaScript and PHP,
John W. Holmes wrote:
Vernon wrote:
Not for nothing, but every time I post to this group I get treated
poorly.
It has to do with php and I've already gotten an answer from this
group, off
the PHP web site no less!
http://www.php.net/manual/en/faq.html.php#faq.html.javascript-variable
Doesn't
Justin French wrote:
Vernon,
If you ONLY wanted to know how to deal with JavaScript variables in PHP,
then perhaps you should have limited your question to just that. Your
question asked about screen resolutions, which is totally a discussion based
around JavaScript.
If you wanted to know about
Missing the point all tighter.
The point now is merely that courtesy goes a long way. Why some one needs to
respond in such a fashion is beyond me.
I think it's pretty simple, if I'm posting to a php group, then obviously
I'm using php. Also very simple, yet again, is if you don't want to waste
Hello,
Thanks it works now
Regards
Moses
Hello, This seems not to be working, I am using win2000 and a newbie. please
simplify this process.
ERROR 1045: Access denied for user: '@127.0.0.1' (Using password: NO)
mysql GRANT ALL PRIVILEGES ON *.* TO [EMAIL PROTECTED]
- IDENTIFIED BY
Have you tried...
?php
header(Location: https://www.google.com;) ;
?
Regards,
Jake Johnson
[EMAIL PROTECTED]
--
Plutoid - http://www.plutoid.com
Shop Plutoid for the best prices on Rims and Car Audio Products
On Tue, 17 Jun 2003,
Vernon wrote:
Missing the point all tighter.
The point now is merely that courtesy goes a long way. Why some one needs to
respond in such a fashion is beyond me.
I think it's pretty simple, if I'm posting to a php group, then obviously
I'm using php. Also very simple, yet again, is if you don't
On Wed, 2003-06-18 at 21:13, Leif K-Brooks wrote:
You're using PHP, but not everything you do has to do with PHP! You may
use PHP, but that doesn't mean you post to the PHP list about home
decorating!
I have no idea where you folks have gotten the idea that asking how to
get Javascript to
Lars Torben Wilson wrote:
I have no idea where you folks have gotten the idea that asking how to
get Javascript to interact with PHP would be particularly off-topic
here. Were it the vile transgression this thread has made it out to be,
we probably wouldn't have included the answer in the FAQ.
On Wed, 2003-06-18 at 21:42, Leif K-Brooks wrote:
Lars Torben Wilson wrote:
I have no idea where you folks have gotten the idea that asking how to
get Javascript to interact with PHP would be particularly off-topic
here. Were it the vile transgression this thread has made it out to be,
we
On Thursday 19 June 2003 09:47, Vernon wrote:
Not for nothing, but every time I post to this group I get treated poorly.
It has to do with php and I've already gotten an answer from this group,
off the PHP web site no less!
On Thursday 19 June 2003 07:52, Mike Morton wrote:
I know that this subject has been beaten to death, but I going through old
lists, I see a lot of hosting companies for site hosting, but I am
interested specifically in dedicated server hosting.
It is tough to find a hosting facility that is
[EMAIL PROTECTED] (John W. Holmes) wrote in
news:[EMAIL PROTECTED]:
Your query failed. Add some error reporting around mssql_query() to
find out why.
Thanks I'll check that.
--
*** s2r - public key: (http://leeloo.mine.nu/s2r-gmx.sig)
--
PHP General Mailing List (http://www.php.net/)
On 19-Jun-2003 John W. Holmes wrote:
snip
Are you crying? ARE YOU CRYING? There's no crying, there's no crying in
PHP!! Rasmus Lerdorf was my manager, and he called me a talking pile of
pigs***!
snipagain
---John Holmes...
PS: #7 at
101 - 183 of 183 matches
Mail list logo