RE: [PHP] Stored Procedures

2002-07-05 Thread Lazor, Ed
I have no idea of how to create postgres stored procedures, but a search on Google brought up a lot of information that you might find helpful: http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=postgre+stored+proced ure You can also visit their web site at http://www.postgresql.org -O

Re: [PHP] Stored Procedures

2002-07-05 Thread B i g D o g
Try http://techdocs.postgresql.org or techdoc.postgresql.org B i g D o g - Original Message - From: "David Busby" <[EMAIL PROTECTED]> To: "php-general" <[EMAIL PROTECTED]> Sent: Friday, July 05, 2002 1:30 PM Subject: [PHP] Stored Procedures > List, > I'm using a postgres datbase for

[PHP] Re: Stored Procedures

2002-07-05 Thread Mark McCulligh
I think postgres doesn't support store procedure / triggers. Just like MySQL doesn't. Mark. -- _ Mark McCulligh, Application Developer / Analyst Sykes Canada Corporation www.SykesCanada.com [EMAIL PROTECTED] "David Busby" <[EMAIL PROTECTED]> wrote in mes

[PHP] Final notice about $_SESSION.

2002-07-05 Thread Scott Fletcher
Ah! Go figure!! The PHP.net documentation failed to mentioned that the numeric value are not supported and never will be. Somebody better go and update that STUPID php.net documentation I have been looking around and never saw it. Also, look at bug #17122, this is where I got the mess

Re: [PHP] Re: Stored Procedures

2002-07-05 Thread B i g D o g
Actually, Postgres supports stored procedures, triggers and views to name a few where mysql does not... B i g D o g - Original Message - From: "Mark McCulligh" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 05, 2002 1:45 PM Subject: [PHP] Re: Stored Procedures > I th

RE: [PHP] Re: Stored Procedures

2002-07-05 Thread Lazor, Ed
MySQL does in 4.0, but that's in alpha right now. -Original Message- Postgres supports stored procedures, triggers and views to name a few where mysql does not... This message is intended for the sole use of th

RE: [PHP] localhost - passing variables

2002-07-05 Thread Lazor, Ed
It almost sounds as if globals is turned off. -Original Message- On Fri, 5 Jul 2002, Tony Tzankoff wrote: > Is it possible to pass variables in PHP on the localhost server? Is there > some kind of setting or something that I need? I am new to this and am not > sure how to go about this. W

Re: [PHP] Re: Stored Procedures

2002-07-05 Thread Mark McCulligh
Sorry, didn't think they did. Does someone have an example, I have never seen one. -- _ Mark McCulligh, Application Developer / Analyst Sykes Canada Corporation www.SykesCanada.com (888)225-6824 ex. 3262 [EMAIL PROTECTED] "B I G D O G" <[EMAIL PROTECTED]>

RE: [PHP] HTTPS vs. HTTP ?

2002-07-05 Thread Lazor, Ed
I saw that Microsoft has a Certificate Authority server package that allows you to create your own key. Is there a way to do this in linux? In this particular instance, it's me accessing my own web site. I'd like to encrypt the session and I'm don't need someone to confirm anything. -Origi

Re: [PHP] Stored Procedures + Answer

2002-07-05 Thread David Busby
List, I read the documentation on postgres site (http://techdocs.postgres.sql) and then also the Google search and came up with this: The way PostgreSQL usees stored procedures is like this: "A stored procedure is really a function" It just does more...like INSERT/UPDATE/DELETE, multiple

Re: [PHP] Uninitialized string offset

2002-07-05 Thread Uri Even-Chen
Hi, Actually, the error_reporting is set to E_ALL and was set to E_ALL in the previous version, too. I found out they added the Uninitialized string offset in Version 4.1.0 (see ). I just wanted to know what this error means. Anyway, I think I'll just add a

Re: [PHP] Stored Procedures + Answer

2002-07-05 Thread B i g D o g
also not the use of the procedural language plpgsql. This needs to be installed in the database that you are using. If you want it for all databases that you create you can do this... template1 => createlang plpgsql template1; This then allow all subsequently created databases to have plpgsql..

[PHP] $GLOBALS ???

2002-07-05 Thread Scott Fletcher
Let's say . --clip-- Page 1 - $data = "Yes!"; header("Location: test1.php"); Page 2 - $data = $GLOBALS['data']; echo $data; --clip-- This one does not work! Does this ever work at all or do I need to do the "header("Location: test1.php?data=Yes!");" into the script? -- PHP

RE: [PHP] $GLOBALS ???

2002-07-05 Thread Lazor, Ed
Correct you can add the data as a URL parameter. Or, you could set a cookie and use sessions. -Original Message- Let's say . --clip-- Page 1 - $data = "Yes!"; header("Location: test1.php"); Page 2 - $data = $GLOBALS['data']; echo $data; --clip-- This one does not w

[PHP] Survey: MySQL vs PostgreSQL for PHP

2002-07-05 Thread Lazor, Ed
How many here feel PostgreSQL has surpassed MySQL as the better backend for PHP? This would be based on performance (speed, scalability, etc.) and features. -Ed This message is intended for the sole use of the ind

Re: [PHP] HTTPS vs. HTTP ?

2002-07-05 Thread Scott Fletcher
You can do this in OpenSSL on Linux. But the web browser will give a warning message stating that the certificate is not issued by the certificate authority. For Miguel Cruz posting back there. If I understand correctly, the private key are inside the public key. Is this correct? "Ed Lazor" <

Re: [PHP] $GLOBALS ???

2002-07-05 Thread Scott Fletcher
Oh boy! Alright! URL it is "Ed Lazor" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Correct you can add the data as a URL parameter. Or, you could set a > cookie and use sessions. > > -Original Message- > > Let's say . > > --clip-- > Pa

Re: [PHP] Survey: MySQL vs PostgreSQL for PHP

2002-07-05 Thread B i g D o g
I am there with you on PostgreSQL. B i g D o g - Original Message - From: "Lazor, Ed" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 05, 2002 2:59 PM Subject: [PHP] Survey: MySQL vs PostgreSQL for PHP > How many here feel PostgreSQL has surpassed MySQL as the better

Re: [PHP] $GLOBALS ???

2002-07-05 Thread Scott Fletcher
What about PHPSESSID??? Can't use the $_COOKIE. Thanks, FletchSOD "Ed Lazor" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Correct you can add the data as a URL parameter. Or, you could set a > cookie and use sessions. > > -Original Message- >

RE: [PHP] HTTPS vs. HTTP ?

2002-07-05 Thread Lazor, Ed
I can always click passed the warning instead of paying $119 for the cert *grin* -Original Message- You can do this in OpenSSL on Linux. But the web browser will give a warning message stating that the certificate is not issued by the certificate authority.

RE: [PHP] $GLOBALS ???

2002-07-05 Thread Lazor, Ed
I don't understand. What do you mean? -Original Message- What about PHPSESSID??? Can't use the $_COOKIE. This message is intended for the sole use of the individual and entity to whom it is addressed, and may

Re: [PHP] HTTPS vs. HTTP ?

2002-07-05 Thread Scott Fletcher
:-) Don't tell me if you're gonna use it for production!!! "Ed Lazor" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I can always click passed the warning instead of paying $119 for the cert > *grin* > > -Original Message- > You can do this in OpenSSL

Re: [PHP] Survey: MySQL vs PostgreSQL for PHP

2002-07-05 Thread Scott Fletcher
I dunno! Never tried it! I wonder which one is easier to work with? "B I G D O G" <[EMAIL PROTECTED]> wrote in message 00d201c22467$8c2e4830$[EMAIL PROTECTED]">news:00d201c22467$8c2e4830$[EMAIL PROTECTED]... > I am there with you on PostgreSQL. > > B i g D o g > > > > > - Original Message -

RE: [PHP] HTTPS vs. HTTP ?

2002-07-05 Thread Lazor, Ed
Well... production with myself as the only client =) I want to encrypt my webmail. -Original Message- :-) Don't tell me if you're gonna use it for production!!! This message is intended for the sole use of t

RE: [PHP] Survey: MySQL vs PostgreSQL for PHP

2002-07-05 Thread Lazor, Ed
I've always used MySQL, I don't know either. I suspect they are equal in ease of use. -Original Message- I dunno! Never tried it! I wonder which one is easier to work with? This message is intended for the

Re: [PHP] Survey: MySQL vs PostgreSQL for PHP

2002-07-05 Thread Ray Hunter
I wrote a small article for builder.com discussing "MySQL vs PostgreSQL". There is a great dicussion happening on that article. Many are voicing their opinions for mysql. Here is the url: http://builder.com.com/article.jhtml?id=u00320020624gcn01.htm In short PostgreSQL offers many advanced feat

[PHP] suppressing errors with "@"

2002-07-05 Thread Uri Even-Chen
Hi, I tried to suppress warnings in isset expressions (Uninitialized string offset warnings). The original line was something like this: if (!(isset($GLOBALS['SPEEDY_GLOBAL_VARS']['PAGE_NAME']))) When I added the "@" sign like this: if (!(isset(@$GLOBALS['SPEEDY_GLOBAL_VARS']['PAGE_NAME'])))

Re: [PHP] Survey: MySQL vs PostgreSQL for PHP

2002-07-05 Thread João Paulo Vasconcellos
I don't feel that. I run a web site with a big deal of traffic, and in speed and scalability, MySQL is better than PGSQL or Sybase. I know because I tryed each one of these before getting to MySQL in definitive. Sybase is WAY too slow, and Postgres has a habit of melting down from time to t

RE: [PHP] $GLOBALS ???

2002-07-05 Thread Lazor, Ed
Is this true? : Session variables are tracked whether or not a visitor's browser supports cookies. The session id is automatically appeneded to each url on the site if the user's browser doesn't support cookies. This represents one of the major differences between setting your own cookies and u

[PHP] Re: Survey: MySQL vs PostgreSQL for PHP

2002-07-05 Thread Glenn Sieb
Has anyone read: PHP and PostgreSQL Advanced Web Programming by Ewald Geschwinde and Hans-Juergen Schoenig yet? I'd been waiting for this book to come out... but would like to know if it's actually worth the $ first. Back to the question at hand... Personally I like PostgreSQL for a few reason

[PHP] Re: suppressing errors with "@"

2002-07-05 Thread Scott Fletcher
No, it's not a PHP bug. The "@" can not be used before a PHP variables, or PHP pre-defined variables like $GLOBALS, $_SESSION, $_GET, $HTTP_POST_VARS, etc. The "@" is used only before the PHP function as far as I know of. FletchSOD "Uri Even-Chen" <[EMAIL PROTECTED]> wrote in message [EMAIL PRO

Re: [PHP] Survey: MySQL vs PostgreSQL for PHP

2002-07-05 Thread Scott Fletcher
That's a really good articles!!! "Ray Hunter" <[EMAIL PROTECTED]> wrote in message 00f201c22469$99c78130$[EMAIL PROTECTED]">news:00f201c22469$99c78130$[EMAIL PROTECTED]... > I wrote a small article for builder.com discussing "MySQL vs PostgreSQL". > There is a great dicussion happening on that ar

Re: [PHP] HTTPS vs. HTTP ?

2002-07-05 Thread Chris Shiflett
Lazor, Ed wrote: >I saw that Microsoft has a Certificate Authority server package that allows >you to create your own key. Is there a way to do this in linux? In this >particular instance, it's me accessing my own web site. I'd like to encrypt >the session and I'm don't need someone to confirm

[PHP] [OFF] Expiration Page

2002-07-05 Thread Skyhawk
Please, How do I make for my webpage expires before time? Thanks I'm sorry my english, I'm brazilian. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Survey: MySQL vs PostgreSQL for PHP

2002-07-05 Thread Ilia A.
I've recently had the 'pleasure' of porting a large MySQL application to support PostgreSQL, through that experience I've gained some insight into the differences between the two as well as how they are supported by PHP. First allow me to point out that MySQL support in PHP is a lot more mature

[PHP] strtr with array of transforms - how many passes thru string?

2002-07-05 Thread Steve Magruder, D2 Director
When I pass a string to strtr($TheText, $Transform_Array), where Transform_Array contains array elements like "a" => "b", I've been wondering, how many passes through the string are performed to accomplish all the string replacing? Is it one per transform, or just one total (I hope)? If it's not

Re: [PHP] Survey: MySQL vs PostgreSQL for PHP

2002-07-05 Thread Pete James
"Ilia A." wrote: > > The biggest annoyance I've come across is > the fact that while using PostgreSQL with PHP is that when you fetch a row > you must specify the number of the result, while in MySQL, that is handled > internally by PHP for you. This means that your PHP scripts must track the >

[PHP] total (slightly OT)

2002-07-05 Thread kim
Hey everyone, Am working late as usual before the weekend and so I fear i'm a bit braindead! Anyway,heres my problem I have fields named "total" and "avg" and no idea how many records how do I get the total and average? Do I use a function? I know this is pretty simple but. Any help ap

[PHP] installing php-4.2.1 fails in make

2002-07-05 Thread Chip Wiegand
I am installing from source php-4.2.1 and have apache-2.0.39 installed and working. When I ran make on php I ended with this message: - include/mysql -I/usr/local/php-4.2.1/ext/xml/expat -D_REENTRANT -D_THREAD_SAFE -I/usr/local/php-4.2.1/TSRM -g -O2 -pthread -DZTS -prefe

[PHP] Re: total (slightly OT)

2002-07-05 Thread Pete James
more specific? What fields... from a database? [EMAIL PROTECTED] wrote: > > Hey everyone, > Am working late as usual before the weekend and so I fear i'm a bit braindead! > Anyway,heres my problem > I have fields named "total" and "avg" and no idea how many records > how do I get the total

[PHP] Re: [OFF] Expiration Page

2002-07-05 Thread val petruchek
FROM THE MANUAL: header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");// Date in the past header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always modified header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1

Re: [PHP] Is there an easy way to divid up HTTP_USER_AGENT?

2002-07-05 Thread JJ Harrison
After A bit of research I wrote this(File is also attached in case e-mail programs/servers interfere with formatting): I seems to work quite well. -- JJ Harrison [EMAIL PROTECTED] www.tececo.com P.S. My proxy seems to interfere with the Weberdev site. If Boaz Yahav <[EMAIL PROTECTED]> or som

Re: [PHP] total (slightly OT)

2002-07-05 Thread Alberto Serra
ðÒÉ×ÅÔ! watch out mysql (or whatever db you have) for SUM() and AVG functions, make sure you understand what a GROUP BY clause is. ÐÏËÁ áÌØÂÅÒÔÏ ëÉÅ× [EMAIL PROTECTED] wrote: > Hey everyone, > Am working late as usual before the weekend and so I fear i'm a bit braindead! > Anyway,heres my prob

Re: [PHP] Survey: MySQL vs PostgreSQL for PHP

2002-07-05 Thread Alberto Serra
ðÒÉ×ÅÔ! That's interesting. I actually never used Postgres on production environments, so... How often does it melt? And is there a known reason or it's just a matter of *luck*? My opinion is that Mysql is after all nothing more than an ISAM file system, which can be queried by SQL. And it's

Re: [PHP] Re: PHP for AIX.5.1

2002-07-05 Thread Alberto Serra
Scott Fletcher wrote: > Yea, it use the Linux Kernel. I had to download RPM stuffs from IBM. It > can not be from Red Hat or any other. IBM take the source code and put it > into RPM. IBM kept making error message about some RPMs, so that is why I > went back to non-linux kernal AIX. > ðÒÉ×Å

Re: [PHP] HTTPS vs. HTTP ?

2002-07-05 Thread Alberto Serra
Lazor, Ed wrote: > I saw that Microsoft has a Certificate Authority server package that allows > you to create your own key. Is there a way to do this in linux? In this > particular instance, it's me accessing my own web site. I'd like to encrypt > the session and I'm don't need someone to conf

Re: [PHP] localhost - passing variables

2002-07-05 Thread Alberto Serra
Tony Tzankoff wrote: > Is it possible to pass variables in PHP on the localhost server? Is there > some kind of setting or something that I need? I am new to this and am not > sure how to go about this. When I upload to a server, the script I have > works just fine; but when I work on it locally,

Re: [PHP] HTTPS vs. HTTP ?

2002-07-05 Thread Alberto Serra
Miguel Cruz wrote: > Yup. You'd think that the browser developers would come up with a way to > indicate this (mouse pointer turning to a lock when hovering over a submit > button, etc.). > ðÒÉ×ÅÔ! Yes, it's a GREAT idea! would make our HTTPS processing traffic much better (that is, quicker

Re: [PHP] Stored Procedures

2002-07-05 Thread Alberto Serra
David Busby wrote: > List, > I'm using a postgres datbase for my PHP project, how do I make > stored procedures? Or if no SPs then what would be recomendation for > building simple/reuseable "Put" and "Get" procedures for my data? > > /B > > ðÒÉ×ÅÔ! Stored procedures ARE much better, (

Re: [PHP] ./configure with register_globals turned on?

2002-07-05 Thread Alberto Serra
Scott Fletcher wrote: > I tried following all of your suggestion and so far, still the same. I > tried changing other feature in the php.ini and check the phpinfo and found > that they haven't changed either. So, the problem lie with the file path in > finding the php.ini file. I only have one

[PHP] Re: i don't recive mail

2002-07-05 Thread Rodolfo Contreras T.
don't want to receive but email please don't want to receive but email please -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] don't want to receive but email please

2002-07-05 Thread Rodolfo Contreras T.
don't want to receive but email please don't want to receive but email please don't want to receive but email please don't want to receive but email please don't want to receive but email please don't want to receive but email please don't want to receive but email please don't want to receive bu

RE: [PHP] HTTPS vs. HTTP ?

2002-07-05 Thread Jonathan Rosenberg
-Original Message- > From: Alberto Serra [mailto:[EMAIL PROTECTED]] > Sent: Friday, July 05, 2002 8:54 PM > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] HTTPS vs. HTTP ? > Besides, using an HTTPS server implies > (correct me if I am wrong) consuming an IP number, > . . . Ok ... you're wro

RE: [PHP] HTTPS vs. HTTP ?

2002-07-05 Thread Miguel Cruz
On Fri, 5 Jul 2002, Lazor, Ed wrote: > I saw that Microsoft has a Certificate Authority server package that allows > you to create your own key. Is there a way to do this in linux? In this > particular instance, it's me accessing my own web site. I'd like to encrypt > the session and I'm don't

[PHP] upload file size

2002-07-05 Thread Norman Zhang
Hi, I can't seem to upload file bigger than 5M even if I set the upload_max_filesize to 20M in php.ini and MAX_FILE_SIZE to 20M in the script. What's am I missing here? Is the temporary upload directory won't handle file this size? Please give me some pointers here. TIA. Regards, Norman -- P

[PHP] Re: upload file size

2002-07-05 Thread val petruchek
Check Apache limitations -- Sincerely, val petruchek "Norman Zhang" <[EMAIL PROTECTED]> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ: [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > I can't seem to upload file bigger than 5M even if I set the > upload_max_filesize to 20M in php.ini and MAX_FILE_S

[PHP] autoresponder

2002-07-05 Thread val petruchek
I receive this sh!t everytime i post message here. Can we get him out of the list? > Hello, > > > > I will be on vacation from 07/08/02 till 07/19/02 . If you need assistance with your website, please contact either Chris : [EMAIL PROTECTED] or Dave : [EMAIL PROTECTED] > > > > Best Regards, > >

[PHP] I am probably dumb but why isn't this inserting stuff into my DB?

2002-07-05 Thread JJ Harrison
Attached is the file. It doesn't give any parse errors or anything. Just nothing is inserted into the DB. What am I doing? -- JJ Harrison [EMAIL PROTECTED] www.tececo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] HTTPS vs. HTTP ?

2002-07-05 Thread Miguel Cruz
On Fri, 5 Jul 2002, Scott Fletcher wrote: > For Miguel Cruz posting back there. If I understand correctly, the private > key are inside the public key. Is this correct? I'm not completely sure I understand your question. When you visit a site using HTTPS, here's basically what happens: 1. You

Re: [PHP] I am probably dumb but why isn't this inserting stuff intomy DB?

2002-07-05 Thread Alberto Serra
JJ Harrison wrote: > Attached is the file. > ðÒÉ×ÅÔ! No attachment came :( ðÏËÁ áÌØÂÅÒÔÏ ëÉÅ× -- @-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@ LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu? lOrD i'M sHiNiNg... YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE tHe

Re: [PHP] HTTPS vs. HTTP ?

2002-07-05 Thread Alberto Serra
ðÒÉ×ÅÔ! yes, but in that case your Apache is running just ONE web site. Most people buy VirtualDomains which are namebased and not IP based. And they cannot share an IP number with other sites with SSL, AFAIK. Or am I misunderstanding the docs? ÐÏËÁ áÌØÂÅÒÔÏ ëÉÅ× Jonathan Rosenberg wrote: >

Re: [PHP] HTTPS vs. HTTP ?

2002-07-05 Thread Miguel Cruz
On Sat, 6 Jul 2002, Alberto Serra wrote: > yes, but in that case your Apache is running just ONE web site. Most > people buy VirtualDomains which are namebased and not IP based. And they > cannot share an IP number with other sites with SSL, AFAIK. Or am I > misunderstanding the docs? You're r

Re: [PHP] Re: Configuration problems concerning sessions.

2002-07-05 Thread Richard Lynch
>that's connected to the web, and it works. I went out and got the >php.ini that my user uses on that server and checked it with my local >copy. The only difference between the two were the lifetimes of >cookies, etc. Details, please. :-) >I've also tried passing the $PHPSESSID on to another pag

[PHP] Re: opening pdf file in new window with a POST operation

2002-07-05 Thread Richard Lynch
>> >The GET method form works fine, while the POST method (which is what I >> >need to use) pops up a message about the page containing both secure and >> >nonsecure data. >> > >> >WTF? >> >> Well, the new browser window opens, but you're loading a PDF, not HTML, so >> it's not really getting any

Re: [PHP] Re: opening pdf file in new window with a POST operation

2002-07-05 Thread Richard Lynch
>get data is insecure by nature so the whole page is insecure and no >warnings, as soon as you post you invoke the security. No, no, no. POST data is *NO* *MORE* *SECURE* than GET data! Period. Okay, if you want to get picuyane -- A total idiot user can read the URL in their location bar, and

[PHP] help with eval problems...

2002-07-05 Thread Kelly Meeks
If I had this information stored in a database field, "> how could I assign it to a variable and output it? I've gone thru the info on eval() @ php.net, but it's not getting thru my skull very well. I keep getting errors I can't correct. Can anyone give me some pointers? Any good tutorials

Re: [PHP] help with eval problems...

2002-07-05 Thread Miguel Cruz
On Fri, 5 Jul 2002, Kelly Meeks wrote: > If I had this information stored in a database field, > "> > > how could I assign it to a variable and output it? I'm not sure that you can eval() HTML. Perhaps if your cell contained: echo "" you would have better luck. Don't quote me on it though

Re: [PHP] suppressing errors with "@"

2002-07-05 Thread Miguel Cruz
On Sat, 6 Jul 2002, Uri Even-Chen wrote: > I tried to suppress warnings in isset expressions (Uninitialized string > offset warnings). The original line was something like this: > > if (!(isset($GLOBALS['SPEEDY_GLOBAL_VARS']['PAGE_NAME']))) > > When I added the "@" sign like this: > > if (!(is

Re: [PHP] I am probably dumb but why isn't this inserting stuff into my DB?

2002-07-05 Thread Jason Wong
On Saturday 06 July 2002 10:37, Alberto Serra wrote: > JJ Harrison wrote: > > Attached is the file. > > ðÒÉ×ÅÔ! > > No attachment came :( Don't attach a file, include your code inline. I for one will not open an attachment (too lazy). -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk

[PHP] Re: I am probably dumb but why isn't this inserting stuff into my DB?

2002-07-05 Thread JJ Harrison
Here it is then: JJ Harrison [EMAIL PROTECTED] www.tececo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: I am probably dumb but why isn't this inserting stuff into my DB?

2002-07-05 Thread Jason Wong
On Saturday 06 July 2002 11:12, JJ Harrison wrote: > Here it is then: [snip] > > $query = "INSERT INTO tececo_stats values ('', $id, $visited, $time, > $remote_dns, $remote_ip, $referer, $browser, $system)"; echo $query; > mysql_query($query); echo mysql_error(); And RFTM for examples on how

Re: [PHP] Re: I am probably dumb but why isn't this inserting stuffinto my DB?

2002-07-05 Thread Miguel Cruz
On Sat, 6 Jul 2002, JJ Harrison wrote: > $query = "INSERT INTO tececo_stats values ('', $id, $visited, $time, > $remote_dns, $remote_ip, $referer, $browser, $system)"; > mysql_query($query); You should always do the following if you are having trouble: 1) print out $query and try it yourself at

Re: [PHP] upload file size

2002-07-05 Thread Jason Wong
On Saturday 06 July 2002 10:04, Norman Zhang wrote: > Hi, > > I can't seem to upload file bigger than 5M even if I set the > upload_max_filesize to 20M in php.ini and MAX_FILE_SIZE to 20M in the > script. What's am I missing here? Is the temporary upload directory won't > handle file this size? Pl

Re: [PHP] Re: I am probably dumb but why isn't this inserting stuff into my DB?

2002-07-05 Thread JJ Harrison
OK, I have magic_quotes on though so useless lecture thanks for the advice -- JJ Harrison [EMAIL PROTECTED] www.tececo.com "Miguel Cruz" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Sat, 6 Jul 2002, JJ Harrison wrote: > > $query = "INSERT INTO tececo_s

Re[2]: [PHP] Re: I am probably dumb but why isn't this inserting stuffinto my DB?

2002-07-05 Thread Julie Meloni
JH> I have magic_quotes on though so useless lecture thanks for the advice Having magic_quotes on doesn't preclude your query from being invalid. You should still: JH> "Miguel Cruz" <[EMAIL PROTECTED]> wrote in message: >> 1) print out $query and try it yourself at the mysql command line. >> >

[PHP] Cannot enable extensions. Why?

2002-07-05 Thread George Hester
In Windows 2000 SP2 IIS 5 this statement works without issue: $myvar2 = strtoupper(substr(PHP_OS, 0, 3)) and myvar2 = WIN but this statement right after it: dl('php_gtk.dll'); leads to this error: Fatal error: Dynamically loaded extentions aren't enabled. in c:\inetpub\scripts\could.php on l

[PHP] Re: Configuration problems concerning sessions.

2002-07-05 Thread Mannequin*
"Richard Lynch" <[EMAIL PROTECTED]> writes: > >that's connected to the web, and it works. I went out and got the > >php.ini that my user uses on that server and checked it with my local > >copy. The only difference between the two were the lifetimes of > >cookies, etc. > > Details, please. :-) >

Re: [PHP] Cannot enable extensions. Why?

2002-07-05 Thread Julie Meloni
GH> but this statement right after it: GH> dl('php_gtk.dll'); GH> leads to this error: GH> Fatal error: Dynamically loaded extentions aren't enabled. in GH> c:\inetpub\scripts\could.php on line 17 From: http://www.php.net/manual/en/configuration.php#ini.sect.extension Extension Loading Direct

[PHP] I would like to ask about Photo Upload in mysql and reteive problem .

2002-07-05 Thread Jimmy Lam
Dear all , I am a new bie here and I would like to know more about coding in upload photo file by client side and store in mysql database. also , how can I show the photo in the HTML CODING embeded and get the image directly from the database ? thanks . could you mind provide some code to

[PHP] Re: [PHP-GTK] Cannot enable extensions. Why?

2002-07-05 Thread Steph
please follow the readme in the PHP-GTK download. You cannot mix the dlls from separate builds and expect them to work, you should in fact be keeping both versions of PHP completely separate if you're intending to use a gui and web installation side by side. Both php.ini's will need to be local

Re[2]: [PHP] Cannot enable extensions. Why?

2002-07-05 Thread Julie Meloni
gh> That's the error I get when I do uncomment it. I thought I said that. There was no mention of the status of enable_dl in your message. enable_dl is not something that is uncommented. it is either "on" or "off". If it is on -- and only if it is on -- can you use the dl() function. And th

Re[4]: [PHP] Cannot enable extensions. Why?

2002-07-05 Thread Julie Meloni
gh> Dang it was off. Sorry Julie but if that is not part of the install notes gh> then how the hell am I supposed to know? I'm not a mind reader. and then... gh> I know enough not to mix versions so if it don't help that issue it has to gh> be something like what you have just pointed out to

Re: [PHP] function for size of array

2002-07-05 Thread Larry Rosenman
On Fri, 2002-07-05 at 11:45, Scott Fletcher wrote: > What is RTFM?? Read The Fine Manual > "Jason Wong" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > On Friday 05 July 2002 22:20, Scott Fletcher wrote: > > > Ah! Thanks! By the way, it's "count()" with

Re: [PHP] I would like to ask about Photo Upload in mysql and reteiveproblem .

2002-07-05 Thread Alberto Serra
Jimmy Lam wrote: > Dear all , > > I am a new bie here and I would like to know more about coding in upload photo >file > > Jimmy > ðÒÉ×ÅÔ! just read the online manual. Everything is quite clear there about all sorts of uploads. Examples included. ÐÏËÁ áÌØÂÅÒÔÏ ëÉÅ× -- @-_=}{=_-@

Re: [PHP] Cannot enable extensions. Why?

2002-07-05 Thread Alberto Serra
ðÒÉ×ÅÔ! > gh> ; Whether or not to enable the dl() function. The dl() function does NOT > gh> work > gh> ; properly in multithreaded servers, such as IIS or Zeus, and is > gh> automatically > gh> ; disabled on them. > gh> enable_dl = On Solution is self-evident: format your hard-disk and

Re: [PHP] Cannot enable extensions. Why?

2002-07-05 Thread Miguel Cruz
On Sat, 6 Jul 2002, Alberto Serra wrote: > Don't fire back, today is Ivan Kupala Day and I am sitting here working > while everyone else in town is having a drink, so I'm in the mood for > cracking jokes a bit :)) I can't believe it! I totally forgot it was Ivan Kupala Day! miguel -- PHP Ge

Re: [PHP] Cannot enable extensions. Why?

2002-07-05 Thread Alberto Serra
ðÒÉ×ÅÔ! Miguel Cruz wrote: > I can't believe it! I totally forgot it was Ivan Kupala Day! Now that's too bad :)) You missed a great chance to party :))) Well, just as much as I did... :( BTW, I better not say anything about Unix anymore... as soon as I sent that mail Mysql died :(( Looks like

Re: Re[2]: [PHP] Re: I am probably dumb but why isn't this inserting stuff into my DB?

2002-07-05 Thread JJ Harrison
I followed that part. I just have magic_quotes on so I don't need to use addslashes/stripslashes -- JJ Harrison [EMAIL PROTECTED] www.tececo.com "Julie Meloni" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > JH> I have magic_quotes on though so useless le

Re: [PHP] Going Nuts with Ereg/Eregi - thanks

2002-07-05 Thread Patrick Teague
Woohoo! it works great now :) Thanks much! Patrick - Original Message - From: "Analysis & Solutions" <[EMAIL PROTECTED]> To: "PHP List" <[EMAIL PROTECTED]> Sent: Tuesday, July 02, 2002 9:19 AM Subject: Re: [PHP] Going Nuts with Ereg/Eregi > On Tue, Jul 02, 2002 at 05:26:45AM -0500,

Re: [PHP] ./configure with register_globals turned on?

2002-07-05 Thread Larry Rosenman
On Fri, 2002-07-05 at 10:04, Scott Fletcher wrote: > What is the configure option that will turn on the register_globals? This > is for ./configure option in UNIX / LINUX. It's in php.ini. Look at the phpinfo() output, and modify to include the register_globals=ON, then restart Apache (assuming

Re: [PHP] png image doesn't show

2002-07-05 Thread hugh danaher
Joakim (and James too) Thank you for your suggestion regarding the header. The php page does have a header but in playing around with things I did get it to generate an error message along with the "image missing X" the message is: Warning: Failed opening 'var/www/html/stocks/dev/graphit2.php' f

[PHP] Re: opening pdf file in new window with a POST operation

2002-07-05 Thread Pete James
Thank you, Richard. I think I understand now... I experienced this HTML behavior when trying to "debug" this problem, but figured it had little to do with the problem. HTML coming up in that page (even the pdf, as garble) was not producing a warning... Now I understand. One last question, thoug

[PHP] Re: [PHP-DB] Re: resizing images comming out of blobs

2002-07-05 Thread Camelia Enderby
Hi Dan, I don't know about resizing it from blob, I usually store the image on the server and just the file name in the database . But I use something like this for resizing: $size = GetImageSize($filenum); $im_in = ImageCreateFromJpeg($filenum); $h1=$h; //were $h is the height that you want the

[PHP] Re: [PHP-GTK] Cannot enable extensions. Why?

2002-07-05 Thread George Hester
Well thank you Jason. The gtk is now running. The last thing now is why I cannot uncomment the extensions in the C:\WINNT\php.ini in my PHP 4.2.1 installation. That issue still exists. In this script http://127.0.0.1/scripts/could.php could.php --- From Newsgroup ---

Re: [PHP] Detecting Browser Type/OS from HTTP_USER_AGENT

2002-07-05 Thread Patrick Teague
Hey, I ended up looking at using eregi to pull this information out of the original HTTP_USER_AGENT as this is more accurate than the extra info from browscap.ini. You have to list out all of the browsers & OSs. However, I'm having problems detecting the Amaya browser... $browser_string = gete

[PHP] Re: [PHP-GTK] Cannot enable extensions. Why?

2002-07-05 Thread Steph
Having just caught up with most of the threads on this thanks to MARC, can you please now explain why on earth you are insisting on loading PHP-GTK dynamically through a web server? The results should be interesting to say the least .. - Original Message - From: "George Hester" <[EMAIL P

Re: [PHP] Re: Sort with PHP or SQL?

2002-07-05 Thread Patrick Teague
> *ANY* time you can sort/search in SQL, or you can do it in PHP, the SQL way > will be faster. < and > > Grouping and sorting is something databases specialize in. Any suggestions on how to do this? Currently I have a table with Headers & another table with Pages... Should I create yet anot

[PHP] Re: Stack Overflow with: zend optimizer

2002-07-05 Thread Richard Lynch
>Hi there, > >zend optimizer 1.3.1 / IIS 5 / PHP 4.2.1 / Windows 2000 > >I've been getting "Stack Overflow" errors frequently. Our software has >hundreds of db queries and hundreds of includes per page execution. Just to >give you some context, so I can't tell you exactly what I'm doing that's >

[PHP] Re: Uninitialized string offset

2002-07-05 Thread Richard Lynch
>After upgrading to Red Hat Linux 7.3 (which also includes a new PHP >version), I saw this warning (Uninitialized string offset) on my apache >error log files. It refers to a line which was perfectly legal before: The new settings in php.ini are error_reporting E_ALL by default. Those errors hav

[PHP] Re: MySQL news database structure

2002-07-05 Thread Richard Lynch
> Hi, i am writing a news management system in PHP, with comments, etc, and >i am wondering if theres a better way of structuring the tables to increase >speed and stability. > This is how i am structuring my tables: > > Table 1 (news) > -- > ID > Date > Author > Titl

<    1   2   3   >