Re: [PHP] PHP + IRC

2001-04-04 Thread Geir Eivind Mork
On 04 Apr 2001 16:53:28 -0400, John Donagher wrote: > > There is an irc (ircg) extension now, although it is undocumented in the > manual. > Who do one have to bribe/kill/beat to get the info about that when one hasn't time/knowledge enough to snoop around in the sources? -- php developer /

Re: [PHP] is this syntax correct?

2001-04-04 Thread Plutarck
Re-arrange the code. Always use session_register first, then follow it with assigning the variable a value. May not be required in the future, but do it anyway for clarity. I don't think you need the global line at all. global is used inside of functions and classes, not in an "non-nested" pie

Re: [PHP] XML

2001-04-04 Thread Soeren Staun-Pedersen
> valid and well-formed are different, can php verify neither? It can validate well-formed. Regards, Soeren Staun-Pedersen - [EMAIL PROTECTED] -- "The internet is full, beat it" - Me. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For add

Re: [PHP] geocities and php

2001-04-04 Thread Plutarck
Sure you can, but the only way I know of is to use fsockopen() and use fputs() to mimick an HTTP connection session. Obviously not a fun way of doing it, but it's the only way I'm aware of. To fake geocities you'll need to set the referer, I believe. Not sure what it needs to be set to, however.

Re: [PHP] session question

2001-04-04 Thread Plutarck
First use session_register(). Then give the variable a value. So just rearrange your code, like this: That should do it. -- Plutarck Should be working on something... ...but forgot what it was. "Jan Grafström" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]..

Re: [PHP] XML

2001-04-04 Thread Plutarck
Neither. As far as I know no validation can be done whatsoever. You can, however, use any XML validator that is currently available. But you won't be able to use "native" or automatic validation. Just have to be really careful about your output so you don't create a bad document. And the only ti

Re: [PHP] problems with session_register()...

2001-04-04 Thread slavko dervisevic
Hello Christian, you must register first, then set the value! session_register("script_total_time"); $script_total_time=(float)$total_time; $step_times_array[$step]=$total_time; session_register("step_times"); $step_times=serialize($step_times_array); Tuesday, April 03, 2001, 2:35:10 AM, you w

[PHP] RH7 4.0.4pl1 RPMs

2001-04-04 Thread maatt
Anyone else started getting problems after upgrading to these? Seem to get getting whitespace prepended to my post vars. Wondering if it's the RPMs or 4.0.4pl1 itself. Matt -- Matt Kynaston remove the green eggs before replying -- PHP General Mailing List (http://www.php.net/) To unsubscrib

Re: [PHP] XML

2001-04-04 Thread Josh McDonald
valid and well-formed are different, can php verify neither? G is for the gang of money I make. F is for the gang of fools I break. U is for the undisputed champ. N is 'cause you never gonna get the mic back. K is for the niggaz that I knock on they back. http://www.gfunk007.com/ - Origina

Re: [PHP] Check whether I have php installed as cgi or api???

2001-04-04 Thread Plutarck
First, I believe it's listed in phpinfo when you use phpinfo() inside a php script. "embedding" refers to sticking code inside of a text file. PHP is an "html embedded language", so you basically just build an html page and place php inside of it. That is why PHP requires an opening "tag" and a c

Re: [PHP] XML

2001-04-04 Thread Soeren Staun-Pedersen
> If memory serves, I was told that "PHP at the present time can not validate > an XML document". It does everything else, but you will have to validate > everything on your own. > > In other words there is no current PHP function that can parse an .xml > document and judge if it is Well Formed o

Re: [PHP] XML

2001-04-04 Thread Plutarck
If memory serves, I was told that "PHP at the present time can not validate an XML document". It does everything else, but you will have to validate everything on your own. In other words there is no current PHP function that can parse an .xml document and judge if it is Well Formed or not. --

Re: [PHP] Left Join Across Two Databases

2001-04-04 Thread Plutarck
Quit? LOL Seriously, you may be forced to do 2 querries to mysql. Use mysql_db_query twice, and it should, in an ideal world, work. Of course it's a pain in the royal ass to combine the two querry results into something useful, but at least you can "do it". It won't be pretty, but it can be don

Re: [PHP] Monthly Drawing Winner!

2001-04-04 Thread Plutarck
I say we should split it among each message on the general list. So that's 1 pennies 104000 ways...that means we all get paid...woohoo! Hot damn, we now all get paid 0.0961538461538461538461538461538462 pennies for every message we post! Cha CHING! ;-) -- Plutarck Should be working on s

Re: [PHP] sockets (long)

2001-04-04 Thread Joseph Blythe
Plutarck wrote: > Very recently (a few days at most ago) someone was complaining about the > problem you are having. > > According to them they can't get the socket function to accept socket > nonblocking. > > It would seem that the function is broken, so you can't set nonblocking to a > valid

[PHP-CVS] cvs: php4 /ext/fdf fdf.c

2001-04-04 Thread Jani Taskinen
sniper Wed Apr 4 22:38:19 2001 EDT Modified files: /php4/ext/fdf fdf.c Log: Fix bugs: #10157, #7549 Index: php4/ext/fdf/fdf.c diff -u php4/ext/fdf/fdf.c:1.42 php4/ext/fdf/fdf.c:1.43 --- php4/ext/fdf/fdf.c:1.42 Sun Mar 18 01:25:40 2001 +++ php4/ext/f

Re: [PHP] headers & passthru()

2001-04-04 Thread Plutarck
If your program does not explicitly set the content type header, then I believe it is Apache which will send it automatically. So that may be part of your problem. -- Plutarck Should be working on something... ...but forgot what it was. "Nikolai Vladychevski" <[EMAIL PROTECTED]> wrote in messag

Re: [PHP] PHPSESSID sticks to every link after upgrate of Apache/PHP

2001-04-04 Thread Plutarck
Hm...what browser are you using to test the site? By using the trans_id option I believe that tells PHP to append the sessid into the url if the cookie is not being accepted. Try turning it off and trying it, and you may need to comment out the url.rewriter thing directly under that option. Tr

Re: [PHP] output buffering

2001-04-04 Thread Plutarck
http://www.php.net/manual/en/ref.outcontrol.php If you want to use output buffering you must use the ob_* family of functions. In any script where you want it used you _must_ use it explicitly, or so do in an included file. Unless you can change the php.ini, there is no way to force all pages to

[PHP] Left Join Across Two Databases

2001-04-04 Thread Jonathan Chum
I have one table on one database and another table on another database. I want to perform a left join these two tables in MySQL. I don't think it's possible, but cuious if there is a "method" that can be coded in PHP to do this? If you think there's is a problem with my schema, well the boss want

[PHP] Fastest way to encrypt database storage?

2001-04-04 Thread Floyd Piedad
Hi, I want to store all data into mySQL database in encrypted format and then show it only after decrypting it. What is the fastest way of doing it? Floyd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTE

Re: [PHP] headers & passthru()

2001-04-04 Thread David Robley
On Thu, 5 Apr 2001 13:29, Nikolai Vladychevski wrote: > Hi, > > i got this problem, when I use an executable to produce the output for > the html php sends headers screwing it all. For example, my script is > like this: > > > . > some stuff in php using database to prepare tempfile > >

Re: [PHP] Building an array from a URL

2001-04-04 Thread Joe Stump
Ok - say you have this: $foo = array( 0 => 'joe', 1 => 'stump', 2 => 'there'); while(list($key,$val) = each($foo)) $args[] = 'array['.$key.']='.$val; $url = 'http://www.server.com/script.html'; $url .= '?'.implode('&',$ar

Re: [PHP] sockets (long)

2001-04-04 Thread Plutarck
Very recently (a few days at most ago) someone was complaining about the problem you are having. According to them they can't get the socket function to accept socket nonblocking. It would seem that the function is broken, so you can't set nonblocking to a valid value at the current time. Hopef

[PHP] headers & passthru()

2001-04-04 Thread Nikolai Vladychevski
Hi, i got this problem, when I use an executable to produce the output for the html php sends headers screwing it all. For example, my script is like this: in this example PHP does not generate HTML code, but the problem is it still sends header "Content-type: text/html". Why? I really dont n

[PHP] Is their a function for this?

2001-04-04 Thread Black S.
Basically I have array variables, lets say: --- $folder[0] = "basic"; $folder[1] = "standard"; $folder[2] = "knowledge"; Fruther down in the code: --- $totalsub_basic = "10"; $totalsub_standard = "24"; $totalsub_knowl

[PHP] sockets (long)

2001-04-04 Thread Joseph Blythe
Hey all, People who have been recieving this list for a while may remember me going through all this a while back, so I am not really a newbie when using sockets. I am basically trying to rewrite my Online Credit Card Verification (OCV) client with the new socket functions. In thoery the foll

[PHP] Uploading data with 'application/octet-stream' encoding ?

2001-04-04 Thread Peter Choynowski
Upload goes fine but I can't find the data :-( Any idea what PHP var holds it ( if any ). $HTTP_SERVER_VARS['CONTENT_LENGTH'] has the right value, so apache has received the data - any ideas ? Thanks, Peter P.S. If I change encoding to application/x-www-form-urlencoded I get the data - but I r

Re: [PHP] PHP with Win2k or Linux

2001-04-04 Thread Chris Adams
On 4 Apr 2001 19:12:52 -0700, Frank K <[EMAIL PROTECTED]> wrote: >Does anyone know is there are advantages to running linux while = >developing php? I just would like to know if there is anything special = >to installing and developing on linux before I move from Win2k?? Three advantages:

Re: [PHP] More Email ereg Validation

2001-04-04 Thread Jeff Carnahan
In article <000501c0bd59$b637e7b0$[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... }I'm trying to parse the different "parts" of an email address both for }validation and munging. } }I have the following regex: }([a-z0-9_\.\-]+)@([a-z0-9\.-]+).([a-z]{3}) } }This works great, except it doesn't accept

[PHP] output buffering

2001-04-04 Thread Christian Dechery
as I saw on the manual output_buffering cannot be changed at runtime... so there is NO WAY? If I want output_buffering I'll have to do it on all my pages? and does it really cost that much in performance? is it worthed? . Christian Dechery (lemming) . http://www.tana

Re: [PHP] PHPSESSID sticks to every link after upgrate of Apache/PHP

2001-04-04 Thread Joseph Blythe
Maxim Maletsky wrote: > > Site uses sessions and, somehow, after this upgrade started carrying > PHPSESSID through HREF. Sounds to me like php was compliled with the --enable-trans-sid option which does exactly that. Just a guess. Regards Joseph -- PHP General Mailing List (http://ww

[PHP] PHPSESSID sticks to every link after upgrate of Apache/PHP

2001-04-04 Thread Maxim Maletsky
Hello, my co-worker has reinstalled Apache and PHP over the last night. The Apache was upgraded to the new version while PHP was re-installed the same. PHP.ini was untouched. Site uses sessions and, somehow, after this upgrade started carrying PHPSESSID through HREF. What should look fo

Re: [PHP] PHP with Win2k or Linux

2001-04-04 Thread Plutarck
While developing PHP...not really. The only real advantage is that you can make the path to your files more similar/the same as your server will have, so you can just upload all your scripts without modifying any lines. Other than the fact that LAMP is a bit more stable/faster than WAMP (or at l

Re: [PHP] Building an array from a URL

2001-04-04 Thread Mike Gifford
Hell Knut, "Knut H. Hassel Nielsen" wrote: > Did you try to see if $HTTP_GET_VARS can help you ? It's useful for pulling down the URL variables into an array, however I'd now like to go to the next step of pulling out data of an array of arrays... All of the files here are in a database.

Re: [PHP] Building an array from a URL

2001-04-04 Thread Mike Gifford
Hi Joe, I don't doubt that at all.. However, my strings aren now looking like this. http://openconcept.ca/rabble/superRSS.phtml?Title%5B1000%5D=RBC+Dominion+Securities+investigates+&URL%5B1000%5D=http%3A%2F%2Fcbc.ca%2Fcgi-bin%2Ftemplates%2Fview.cgi%3F%2Fnews%2F2001%2F04%2F04%2Frbcds_010404&Abst

Re: [PHP] insert into multiple tables

2001-04-04 Thread David Robley
On Thu, 5 Apr 2001 02:29, Toni Barskile wrote: > Can someone please help me w/the following code? I'm trying to insert > data collected on a form into two tables into my database. I > know the SQL statements work because I tested them individually, but I > keep getting the error "Couldn'

Re: [PHP] Building an array from a URL

2001-04-04 Thread Joe Stump
It works for me in production. On Wed, Apr 04, 2001 at 08:56:53PM -0400, Mike Gifford wrote: > I tried this, but it converted [ and ] to url friendly codes. Does this still > work? > > Mike > > Joe Stump wrote: > > FYI you can send data like this on the url: > > > > http://www.foo.com/script.

Re: [PHP] Emails from database...

2001-04-04 Thread David Robley
On Wed, 4 Apr 2001 16:58, Dhaval Desai wrote: > Hi! > > > This is my code for sending email to all the emails in > my database: > > $connect = mysql_connecT(); > $query = "select email from table"; > $execute = mysql_db_query("database", $query); > > while($r=mysql_fetch_array($execute)) > { > $e

[PHP] PHP with Win2k or Linux

2001-04-04 Thread Frank K
Does anyone know is there are advantages to running linux while developing php? I just would like to know if there is anything special to installing and developing on linux before I move from Win2k?? Thanks, -Frank

Re: [PHP] help - parsing text file

2001-04-04 Thread Plutarck
If it's always in that format you could do an explode on "\n", then run the regex on only the elements of the array you need to rip something from. So you can build a much simpler and smaller regex to do your work. -- Plutarck Should be working on something... ...but forgot what it was. "Kurth

[PHP] Crack extension

2001-04-04 Thread junk-php
Anyone using the crack extension in PHP? AZ -- 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: [EMAIL PROTECTED]

Re: [PHP] Requiring variables to be pre-declared?

2001-04-04 Thread junk-php
Try setting your error level to E_ALL when being driven nuts... You'll get lots of useful feedback. August ""Eric Knudstrup"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Being new to PHP from the C world, is there anyway that I can enforce that > variables

Re: [PHP] PHP.net is slow

2001-04-04 Thread junk-php
With the exception of some true downtime, I really love the new design, just wish it was easier to write to the folks responsible to say thanks. Fast, lightweight, and good looking... They're too modest. Bravo guys... August ""Matt Friedman"" <[EMAIL PROTECTED]> wrote in message 002f01c0bd37$60

Re: [PHP] Building an array from a URL

2001-04-04 Thread Mike Gifford
I tried this, but it converted [ and ] to url friendly codes. Does this still work? Mike Joe Stump wrote: > FYI you can send data like this on the url: > > http://www.foo.com/script.php?test[joe]=stump&test[harry]=bar&test[jane]=scott > > Then $test will be an array that translates to this in

RE: [PHP] More Email ereg Validation

2001-04-04 Thread Jason Murray
> This works great, except it doesn't accept the country code > domains (.au, etc). So I changed the number of characters to {2,3} at the > end of the regex: > ([a-z0-9_\.\-]+)@([a-z0-9\.-]+).([a-z]{2,3}) > > But then this works for the country code domains, but cuts > off a character of the

Re: [PHP] PHP + IRC

2001-04-04 Thread John Donagher
There is an irc (ircg) extension now, although it is undocumented in the manual. On Thu, 5 Apr 2001, Jason Brooke wrote: > Yes - see the network and/or socket functions sections in the manual at > http://www.php.net > You might want to use the IRC RFC as a reference on the protocol > > jason >

[PHP] Requiring variables to be pre-declared?

2001-04-04 Thread Eric Knudstrup
Being new to PHP from the C world, is there anyway that I can enforce that variables are declared for being used? There have been a couple of times where I have been driven nuts trying to find out why something isn't working and found that a variable name was off. Eric -- PHP General Mailing L

Re: [PHP] socket functions

2001-04-04 Thread Joseph Blythe
Yasuo Ohgaki wrote: > Did you read the Manual? The manual is my bible I always read it before I post. Also searched google and the list archives. > socket_set_blocking As far as I can tell this does not work for the new socket functions, the file descriptor does not seem to be compatible? (i

[PHP] mysql and php

2001-04-04 Thread Augusto Cesar Castoldi
I'm sending this command to mysql UPDATE fusuario u, fgrupos g SET g.cdgrupo=1, u.celular="99823640", u.nome="Augusto X", u.sobrenome="Cesar Castoldi", u.cidade="Florinópolis", u.emailpessoal="[EMAIL PROTECTED]", u.idade="19", u.sexo="M", u.operadora="T", u.email="", u.ddd="048" WHERE g.cdgrupo=1

[PHP] Installation problems - PHP4.0.1 / PDFLib / --with-dom

2001-04-04 Thread Jason Murray
Hi folks, We're trying to install the above on a new development box here, and it seems to be failing. The system administrator has given me this to pass on and query: === I'm using PHP version 4.0.4pl1. I tried the configure line: ./c

RE: [PHP] PHP + IRC

2001-04-04 Thread Peter Houchin
yeah have a look on phpbuilder.com phpwizard.net zend.com they all & most likely many others have things on php & irc -Original Message- From: Puarot [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 05, 2001 7:00 AM To: PHP List Subject: [PHP] PHP + IRC Hello PHP, Is ther

[PHP] can I detect html email capability?

2001-04-04 Thread Matthew Delmarter
Hello all, Out of curiosity I am looking at what can be done with email marketing. I am currently looking at a solution that apparently can "send a query to an email address to detect if it can receive images. If so it sends an HTML email, otherwise just text." (quote) Does this sound correct? I

Re: [PHP] Problems porting from MySQL Server to MSSQL7 Server

2001-04-04 Thread dennis moore
my_update("update sometable set col1=".$var1." where col2=".$var2); and function: function my_update($query){ global $host,$user,$psw,$name; $conn=mssql_pconnect($host,user,psw) or die("Error: connection failed!"); $rdb=mssql_select_db($name,$conn) or die("Error: DB does not exist"

[PHP-CVS] cvs: php4 /pear/DB pgsql.php

2001-04-04 Thread Thomas V.V.Cox
cox Wed Apr 4 15:55:10 2001 EDT Modified files: /php4/pear/DB pgsql.php Log: as the row counter starts with 0, last row is before numrows Index: php4/pear/DB/pgsql.php diff -u php4/pear/DB/pgsql.php:1.36 php4/pear/DB/pgsql.php:1.37 --- php4/pea

Re: [PHP] PHP + IRC

2001-04-04 Thread Jason Brooke
Yes - see the network and/or socket functions sections in the manual at http://www.php.net You might want to use the IRC RFC as a reference on the protocol jason > Hello PHP, > > Is there any ways to use php with irc? > > -- > Best regards, -- PHP General Mailing List (http://www.php.ne

[PHP] More Email ereg Validation

2001-04-04 Thread Dan Wilson
I'm trying to parse the different "parts" of an email address both for validation and munging. I have the following regex: ([a-z0-9_\.\-]+)@([a-z0-9\.-]+).([a-z]{3}) This works great, except it doesn't accept the country code domains (.au, etc). So I changed the number of characters to {2,3} at

RE: [PHP] PHP.net is slow

2001-04-04 Thread James Moore
just grab a copy and install locally from http://snaps.php.net/ A quick rewrite rule/browser based java script etc will do exactly the same thing as php.net/functioname does but quicker. - James -- James Moore [EMAIL PROTECTED] PHP Web Scripting: http://www.php.net/ PHP QA Team: http://qa.php.ne

php-general Digest 4 Apr 2001 22:33:06 -0000 Issue 608

2001-04-04 Thread php-general-digest-help
g script of course, but is not a problem because the function needs to clear them so it can put data in them. However it was a surprise to find that the variables contained data when checked on the last line of the function, but when checked in the calling code after the function call had bee

[PHP] APC breaking under freebsd!

2001-04-04 Thread Dan Phoenix
Trying to enable apc under freebsd php. Running into problems compiling it right into apache. gcc -I. -I/usr/home/dphoenix/freebsd/php-4.0.4pl1/ext/apc -I/usr/home/dphoenix/freebsd/php-4.0.4pl1/main -I/usr/home/dphoenix/freebsd/php-4.0.4pl1 -I/usr/home/dphoenix/freebsd/apache_1.3.19/src/include

Re: [PHP] Problems porting from MySQL Server to MSSQL7 Server

2001-04-04 Thread Jeff Carnahan
In article <001401c0bd38$51d05580$[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... }Can anyone help me? }Code is here: } }The same code and function work fine in MySQL. Why doesn't work in MSSQL Server??? } Investigate the MSSQL Server UPDATE syntax carefully: http://msdn.microsoft.com/library/def

[PHP] PHP + IRC

2001-04-04 Thread Puarot
Hello PHP, Is there any ways to use php with irc? -- Best regards, -- 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: [EMAIL PROTECTED]

[PHP-CVS] cvs: php4(PHP_4_0_5) /ext/pgsql pgsql.c php_pgsql.h

2001-04-04 Thread Thies C. Arntzen
thies Wed Apr 4 14:51:59 2001 EDT Modified files: (Branch: PHP_4_0_5) /php4/ext/pgsql pgsql.c php_pgsql.h Log: MFH - make postgresql compiel against 6.5.x Index: php4/ext/pgsql/pgsql.c diff -u php4/ext/pgsql/pgsql.c:1.93.2.4 php4/ext/pgsql/pgsql.c:1.93

Re: [PHP-CVS] cvs: php4 / NEWS php.ini-dist php.ini-optimized /ext/standard url_scanner.c url_scanner_ex.c url_scanner_ex.re /main main.c php_globals.h php_variables.c

2001-04-04 Thread Andi Gutmans
Can we roll an RC7 soon and get this 4.0.5 over with? :) Maybe we should get people to test the latest CVS first to make sure your patch didn't break anything. We need a working 4.0.5. Thanks! Andi At 08:46 PM 4/4/2001 +, Jani Taskinen wrote: >sniper Wed Apr 4 13:46:27 2001 EDT >

[PHP-CVS] cvs: php4 /ext/pgsql pgsql.c php_pgsql.h

2001-04-04 Thread Thies C. Arntzen
thies Wed Apr 4 14:40:41 2001 EDT Modified files: /php4/ext/pgsql pgsql.c php_pgsql.h Log: make it compile with 6.5.x postgresql notices are now send to the standard error-log Index: php4/ext/pgsql/pgsql.c diff -u php4/ext/pgsql/pgsql.c:1.95 php4/ex

[PHP-CVS] cvs: php4 / configure.in /main php_version.h

2001-04-04 Thread Jani Taskinen
sniper Wed Apr 4 13:52:44 2001 EDT Modified files: /php4 configure.in /php4/main php_version.h Log: This branch is 4.0.6-dev.. Index: php4/configure.in diff -u php4/configure.in:1.228 php4/configure.in:1.229 --- php4/configure.in:1.228 Tue

[PHP] CGI ver. showing exec line

2001-04-04 Thread Thomas Deliduka
Please forgive if this was posted before. I don't know what the line really is called but recently when I upgraded to PHP 4 Um.. The latest and I used the exact same compile parameters as I did before. But now the first line of every script is displayed (the execution line) I.e. The file loo

[PHP-CVS] cvs: php4 / NEWS php.ini-dist php.ini-optimized /ext/standard url_scanner.c url_scanner_ex.c url_scanner_ex.re /main main.c php_globals.h php_variables.c

2001-04-04 Thread Jani Taskinen
sniper Wed Apr 4 13:46:27 2001 EDT Modified files: /php4 php.ini-dist php.ini-optimized NEWS /php4/ext/standard url_scanner.c url_scanner_ex.re url_scanner_ex.c /php4/main main.c php_globals.h php_variables.c Log: Added new configuration direct

Re: [PHP] 1 MySQL Database??

2001-04-04 Thread Martín Marqués
On Wednesday 04 April 2001 23:36, Frank K wrote: > Hi, > The host that I am currently at only gives me 1 MySQL Database and I > was wondering if I create lots of table will it slow it down at all? I will > only be selecting data from 1 or 2 tables on a page...do you think it would > slow it do

[PHP] 1 MySQL Database??

2001-04-04 Thread Frank K
Hi, The host that I am currently at only gives me 1 MySQL Database and I was wondering if I create lots of table will it slow it down at all? I will only be selecting data from 1 or 2 tables on a page...do you think it would slow it down at all? Thanks, -Frank

Re: [PHP] reusing MySQL results -- resetting mySQL pointer with mysql_data_seek()

2001-04-04 Thread Juan C. Borrero
Nope. Mysql_data_seek($result,0) and it is. - Original Message - From: "Daevid Vincent" <[EMAIL PROTECTED]> To: "Mark Roedel" <[EMAIL PROTECTED]>; "George Wright" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, April 04, 2001 3:18 PM Subject: RE: [PHP] reusing MySQL results -- r

RE: [PHP] reusing MySQL results -- resetting mySQL pointer with mysql_data_seek()

2001-04-04 Thread George Wright
Daevid, I think there is only the initial connection (using mysql_query()), and the result set is saved to a variable. This variable is then operated on by mysql_fetch_object(). My problem was that the internal pointer had exhausted its original array when I was calling it a second time, an

RE: [PHP] reusing MySQL results -- resetting mySQL pointer with mysql_data_seek()

2001-04-04 Thread Daevid Vincent
Just my two cents here... I could be mistaken, but wouldn't this method hit the database twice? I would suggest you take your results the first time and store them in an array or multidimensional array, then you can get to any element at any time further down the page. > -Original Message--

[PHP-CVS] cvs: php4 /ext/fbsql php_fbsql.c php_fbsql.h

2001-04-04 Thread Frank M. Kromann
fmk Wed Apr 4 13:10:14 2001 EDT Modified files: /php4/ext/fbsql php_fbsql.h php_fbsql.c Log: Adding empty RSHUTDOWN function. Index: php4/ext/fbsql/php_fbsql.h diff -u php4/ext/fbsql/php_fbsql.h:1.1 php4/ext/fbsql/php_fbsql.h:1.2 --- php4/ext/fbsql/php

Re: [PHP] Include files

2001-04-04 Thread CC Zona
In article <9afah8$8d3$[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Mike") wrote: > I'm trying to use html "include" syntax in a php page.If I use .shtml the > php gets ignored .If I use php the the > php gets ignored.Is there a way of doing this without using the php include > function? http://www

[PHP] Problems porting from MySQL Server to MSSQL7 Server

2001-04-04 Thread Adrian Jurjica
Can anyone help me? Today I was informed that the backend for my project will not be MySQL, but MSSQL 7.0. No problems, I said, but after porting database from MySQL to MSSQL I find that the UPDATE statement doesn't work. Strange is that INSERT statement in a php query does not work second time

[PHP] help - parsing text file

2001-04-04 Thread Kurth Bemis
arg - i' at wits end. i need to parse a text file into a mysql insert statement. the statement isn't the problem its parsing the text file. heres a sample of the file West Chesterfield (603) 256-8278 V.90 (603) 307-2100 V.90 & K56flex (603) 307-2200 ISDN / DOV Hinsdale336 West Chesterfield25

Re: [PHP] PAIR NUMBER

2001-04-04 Thread CC Zona
In article <9afjqr$cn1$[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Jon") wrote: > I am searching for a POP function that let me calculate for example the MOD > of dividing a number between 2 so as to know whether this number is pair o > unpair. I have been looking throguh the section of mathematica

Re: [PHP] filename into variable.

2001-04-04 Thread Morgan Curley
try: $matches[1]"; ?> Morgan At 01:26 PM 4/4/2001, you wrote: >How would i go about building a page which could use the name of the page >less .php as a variable. >For example: > >Say I have a file called screenshot_1.php and another called >screenshot_2.php . Inside each of those files I wan

Re: [PHP] PHP.net is slow

2001-04-04 Thread Michael Kimsal
Not sure what kind of network you're on, but I've had the exact opposite experience. The new design is easier on the eyes, but also much more lightweight, meaning much quicker downloads. Especially if using NS - I couldn't look up any function in under 10 seconds before. Now it's normally <3.

Re: [PHP] PHP.net is slow

2001-04-04 Thread Steve Werby
"Matt Friedman" <[EMAIL PROTECTED]> wrote: > I don't know about everyone else but I've found that since the changeover to > the new design of the php.net site, it's been very unreliable. It's worked fine for me, but maybe I'm not accessing it at the right...I mean wrong times. > How about a down

Re: [PHP] BUG - Someone else please verify B4 I file

2001-04-04 Thread Steve Werby
"Data Driven Design" <[EMAIL PROTECTED]> wrote: > I've noticed that and had to rewrite several scripts when hosts upgraded > from PHP3 to PHP4. $HTTP_POST_VARS is considered set even when it is empty. For those that can't guess the solution to this problem I suspect this will do the trick: ! emp

[PHP] PHP.net is slow

2001-04-04 Thread Matt Friedman
I don't know about everyone else but I've found that since the changeover to the new design of the php.net site, it's been very unreliable. I used to be able to look up a function in seconds if I didn't quite remember the usage. Now, I find that the doesn't won't even come up at times. Other tim

Re: [PHP] filename into variable.

2001-04-04 Thread Joe Stump
Something like this would work ... let's say your path is http://www.server.com/images/screenshot_1.php That should do it just fine I might be off on my commas On Wed, Apr 04, 2001 at 01:26:27PM -0500, Michael Roark wrote: > How would i go about building a page which could use the name

[PHP] filename into variable.

2001-04-04 Thread Michael Roark
How would i go about building a page which could use the name of the page less .php as a variable. For example: Say I have a file called screenshot_1.php and another called screenshot_2.php . Inside each of those files I want to have code which will take the name of the file from the url and a

Re: [PHP] BUG - Someone else please verify B4 I file

2001-04-04 Thread Andrew Rush
on 4/4/01 5:14 PM, Data Driven Design at [EMAIL PROTECTED] wrote: > I've noticed that and had to rewrite several scripts when hosts upgraded > from PHP3 to PHP4. $HTTP_POST_VARS is considered set even when it is empty. i have also noticed this. we run 4.0.3pl1 here. have a great day andy --

Re: [PHP] BUG - Someone else please verify B4 I file

2001-04-04 Thread Jeff Carnahan
In article <81A3043681E6824EBE672F7421C30E7E2A19A7 @SRVTORONTO.RAND.COM>, [EMAIL PROTECTED] says... }if (isset ($HTTP_POST_VARS)){ } echo "Http Post Vars Set"; Remember, just because a variable is "set", it doesn't imply that the variable has any data stored in it. In this case, while the

Re: [PHP] BUG - Someone else please verify B4 I file

2001-04-04 Thread Data Driven Design
I've noticed that and had to rewrite several scripts when hosts upgraded from PHP3 to PHP4. $HTTP_POST_VARS is considered set even when it is empty. Data Driven Design P.O. Box 1084 Holly Hill, FL 32125-1084 http://www.datadrivendesign.com http://www.rossidesigns.net - Original Message -

RE: [PHP] Select case equivelent

2001-04-04 Thread Johnson, Kirk
See the "switch" statement. http://www.php.net/manual/en/control-structures.switch.php Kirk > -Original Message- > From: Allen May [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, April 04, 2001 12:07 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Select case equivelent > > > I have a list

RE: [PHP] stop these solfix.net messages

2001-04-04 Thread Krznaric Michael
Yeah, same here -Original Message- From: B. van Ouwerkerk [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 04, 2001 10:44 AM To: [EMAIL PROTECTED] Subject: [PHP] stop these solfix.net messages Hi, How about these messages from solfix.net What have I done to deserve these.. Ever

Re: [PHP] Select case equivelent

2001-04-04 Thread Jon Rosenberg
switch ($i) { case 0: print "i equals 0"; break; case 1: print "i equals 1"; break; case 2: print "i equals 2"; break; } - Original Message - From: "Allen May" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, April

Re: [PHP] Monthly Drawing Winner!

2001-04-04 Thread Joe Stump
> >- I > >know using relays to distribute spam isn't legal, but what about lists? > > Most listsoftware (as far as I know) will allow the admin to block > non-members from sending to a list.. Not completely foolproof.. but it can > be much help.. certainly if you can add a blacklist to prevent

[PHP] Select case equivelent

2001-04-04 Thread Allen May
I have a list of conditions I want to test against. In ASP, I would do: Select Case foo case "bar1" foobar = "fooey" case "bar2" foobar = "fooey2" case "bar3" foobar = "fooey3" case else foobar = "NoBar" End Select How do I do the equivelent in PHP?

Re: [PHP] Monthly Drawing Winner!

2001-04-04 Thread B. van Ouwerkerk
>- I >know using relays to distribute spam isn't legal, but what about lists? Most listsoftware (as far as I know) will allow the admin to block non-members from sending to a list.. Not completely foolproof.. but it can be much help.. certainly if you can add a blacklist to prevent these spam

[PHP] BUG - Someone else please verify B4 I file

2001-04-04 Thread Krznaric Michael
There seems to be a bug in php 4.0.4pl1, would someone please verify this script below. If you paste this script into a file called bug.php and you just call it you will see "Http post Vars Set". However you will not find that variable it in the output of PHPINFO. I tried this under ph

[PHP] file upload question

2001-04-04 Thread Joe Stump
I'm in the habit of putting all my form variables into an array (ie: ) so that I have a nice little package to pass to functions. My question is can you put files into those as well? If so how does it handle the $file_name and $file_size variables PHP creates? --Joe /**

Re: [PHP] Monthly Drawing Winner!

2001-04-04 Thread Thomas Deliduka
On 4/4/2001 1:32 PM this was written: > > If you're using PHP, you're already a winner (in my book anyway!) > LOL -- Thomas Deliduka IT Manager - New Eve Media The Solution To Your Internet Angst http://www.neweve.com/ -- PHP General Mailing List (http://www.

Re: [PHP] HOWTO: Dynamically Create A Form

2001-04-04 Thread Reuben D Budiardja
At 03:19 PM 4/4/01 +, you wrote: >Scott Walter wrote: > >Well; PHP is server-side, so without resubmitting the form you won't >be able to do this using PHP. That's why JavaScript is available. At >this time I don't have enough time to explain exactly how to do >this, but JS is the way for this

Re: [PHP] Include Files

2001-04-04 Thread Christian Reiniger
On Wednesday 04 April 2001 17:08, you wrote: > I'm trying to use html "include" syntax in a php page.If I use .shtml > the php gets ignored .If I use php the the php gets ignored.Is there a way of doing this without using the > php include function? > Thanks Stop resubmitting this every few minu

Re: [PHP] Monthly Drawing Winner!

2001-04-04 Thread Michael Kimsal
If you're using PHP, you're already a winner (in my book anyway!) :) Phillip Bow wrote: > Aww shoot. How am I supposed to win now? :) > -- > phill > > "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Done. Anything from mail.thecasin

  1   2   3   >