[PHP] Re: adodb paging problem

2005-02-25 Thread Lester Caine
pURbA wrote: i've searched on the internet about my problem that i have, and ended up with nothing. i believe some of u guys have faced this problem before. here is the problem: i have a table for books, and want to display it using adodb-pager. Try http://phplens.com/lens/lensforum/topics.php?id=4

Re: [PHP] What's up with the list?

2005-02-25 Thread Rasmus Lerdorf
Our mailing list server has been getting bogged down so we are experimenting with some new code. That code got stuck last night. No mail was lost, but it did get held up until we woke up to fix it. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.

[PHP] getting mac id

2005-02-25 Thread Tyler Replogle
Hey, I've been on this mailing list for quite a while, but i think this is my first question. I'm not sure though. Well here goes. I'm working at this site that has an MMORPG, a big online game, and we have this ban script. it bans the ip for the user and the user acount for an amount of time.

RE: [PHP] Re: FTP info in a variable

2005-02-25 Thread Warren Vail
Good stuff Jamie. Steve, I believe it may even be possible to compress the file on the fly, or send it using SSL if that is desirable; http://www.php.net/manual/en/ref.stream.php describes how to use stream wrappers. good luck, Warren Vail > -Original Message- > From: Jamie Alessio [ma

Re: [PHP] how to increase maximum upload file size

2005-02-25 Thread Srinadh Sannidhanam
Even if I change that in php.ini it doesn't work. I changed LimitRequestBody value in directive of php.conf located in /etc/httpd/conf.d. Now it is working fine. But, I am not sure how post_nax_size effects file uploads. In my server it is set to 8M and upload_max_filesize is 32M. I succes

Re: [PHP] what does this mean?

2005-02-25 Thread Leif Gregory
Hello Jason, Friday, February 25, 2005, 12:42:30 PM, you wrote: J> Note to self: write "ternary" on the blackboard 100 times. You're telling me. I knew what it was but it took me like five minutes to remember what it was called! -- Leif (TB lists moderator and fellow end user). Using The Ba

Re: [PHP] HOWTO read PHP source code into a textarea

2005-02-25 Thread Yann Larrivee
Hello More precisy see http://ca.php.net/manual/en/ref.filesystem.php Cheers, Yann On Friday 25 February 2005 18:56, Tyler Replogle wrote: > Try php.net for flat file date basing. It should tell you how to read a > line and write to a new line. > > >From: Tim Burgan <[EMAIL PROTECTED]> > >To: "

Re: [PHP] Dynamically Generate Pleasing Colors

2005-02-25 Thread Chris
Two glaring typos were fixed Chris wrote: Well I would suggest you find some PHP code That converts between HSB/HSL (Hue-Saturation-Brightness/Lightness). From there are are a multitude of fairly simple algorithms that will give you complementary colors. You can find these by searching on "Comp

Re: [PHP] Dynamically Generate Pleasing Colors

2005-02-25 Thread Chris
Well I would suggest you find some PHP code That converts between HSB/HSL (Hue-Saturation-Brightness/Lightness). From there are are a multitude of fairly simple algorithms that will give you complementary colors. You can find these by searching on "Complimentary Colors", "Color Wheel", "Adjace

Re: [PHP] Like ternary but without the else.

2005-02-25 Thread Guillermo Rauch
On Fri, 25 Feb 2005 18:39:56 -0500, Brian V Bonini <[EMAIL PROTECTED]> wrote: > On Fri, 2005-02-25 at 13:36, Chris W. Parker wrote: > > How can I turn the following into something that resembles the ternary > > operator? > > > > > > > if($something) > > { > > $this = $that; > > } > > > >

Re: [PHP] [NEWBIE] How to allow for tags but no others?

2005-02-25 Thread Dave
Alberto, John, Jochem, Richard, Tyler, Thank you for your very helpful advice. So far I'm thinking of definitely including some of Tyler's code for doing some filtering, along with the other commands mentioned, like strip_tags() for securing the input. However, I would like to ask further

Re: SV: [PHP] Difficulty with SQL LIKE clause

2005-02-25 Thread Andre Dubuc
On Friday 25 February 2005 04:28 pm, Wiberg wrote: > Hi there! > > A little off-topic but what the heck (it's a more MySQL - related question) > > Is 197* a numbertype field? > Try maybe $query= "SELECT * FROM my_table WHERE Year LIKE '197*'"; > > /G > @varupiraten.se > > -Ursprungligt meddelan

RE: [PHP] what does this mean?

2005-02-25 Thread Chris W. Parker
Jochem Maas on Friday, February 25, 2005 12:31 PM said: > I thought 'tertiary' also - I could remember the 'other' name... > I was under the impression that both names were valid.. > anyone know if this is true? google brings up relevant hits for > both, from what I

RE: [PHP] Re: Like ternary but without the else.

2005-02-25 Thread Chris W. Parker
Jason Barnett on Friday, February 25, 2005 2:10 PM said: > $this = $something ? $that : null; That won't work because I'm setting a default value for $this and want it to change only if it has to. The long winded way to write this would be: Chris. -- PHP Gener

RE: [PHP] Like ternary but without the else.

2005-02-25 Thread Chris W. Parker
Justin Lilly on Friday, February 25, 2005 3:10 PM said: > This should do the trick: > > $something ? $this=$that Actually that gives a synax error. But I've figured it out based on your suggestion. It's actually: Chris. -- PHP General Mailing List (http://ww

RE: [PHP] Like ternary but without the else.

2005-02-25 Thread Chris W. Parker
Jochem Maas on Friday, February 25, 2005 4:04 PM said: > just do: > > if ($something) $this = $that; >> Thanks! >> Chris. >> >> p.s. No need to respond if your suggestion is: >> >> > >> if($something) { $this = $that; } >> >> ?> :) -- PHP General Mailing Lis

Re: [PHP] what does this mean?

2005-02-25 Thread Guillermo Rauch
Including more than one you can make a complex control structure, not just if else $a = ($a == 0) ? ($b < $a ) ? $b : $a :$c; On Fri, 25 Feb 2005 13:26:51 -0600, Jay Blanchard <[EMAIL PROTECTED]> wrote: > [snip] > on which page of php.net can I find out what this code does? > $a = $b? $a :"

RE: [PHP] What's up with the list?

2005-02-25 Thread Tyler Replogle
So many people have said this, but i think its fix. From: John Nichel <[EMAIL PROTECTED]> To: PHP Mailing Lists Subject: [PHP] What's up with the list? Date: Fri, 25 Feb 2005 09:11:34 -0500 MIME-Version: 1.0 Received: from lists.php.net ([216.92.131.4]) by mc4-f38.hotmail.com with Microsoft SMTPS

RE: [PHP] [NEWBIE] How to allow for tags but no others?

2005-02-25 Thread Tyler Replogle
Hey Most of your question can be asnwer by this one i hope. I don't know how to make it so would only work, but i know how to make it i could work. You could change the "<, >" in only tags to [ ] before you take the html tags out then after you could change the "[,]" to "<,>" in only [a] tags o

RE: [PHP] List gone quiet?

2005-02-25 Thread Tyler Replogle
Yeah same here. I think it went down. From: Lester Caine <[EMAIL PROTECTED]> To: php-general@lists.php.net Subject: [PHP] List gone quiet? Date: Fri, 25 Feb 2005 11:13:50 + MIME-Version: 1.0 Received: from lists.php.net ([216.92.131.4]) by mc9-f30.hotmail.com with Microsoft SMTPSVC(6.0.3790.21

RE: [PHP] list down

2005-02-25 Thread Tyler Replogle
I think it didn't because i wasn't getting an emails for a while last night. I wanted one too becuase i didn't have the email to start a new message. From: Kris <[EMAIL PROTECTED]> To: php-general@lists.php.net Subject: [PHP] list down Date: Thu, 24 Feb 2005 15:04:31 -0600 MIME-Version: 1.0 Recei

Re: [PHP] Like ternary but without the else.

2005-02-25 Thread Jochem Maas
Chris W. Parker wrote: Hello, I couldn't find this anywhere on google or PHP's site but I'm pretty sure there's an answer to it. How can I turn the following into something that resembles the ternary operator? write an extension to the php engine? don't think it exists. if($something) { $t

Re: [PHP] Word file to PDF

2005-02-25 Thread Andre Dubuc
On Friday 25 February 2005 03:08 pm, Rory Browne wrote: > > Run PHP on a windows platform that has MSWord and the PDF printing > > libraries installed. Use PHP's COM support to load an MSWord object and > > see if you can get it to load the word document and print it out as a PDF > > file. Once it

RE: [PHP] Hash Issues

2005-02-25 Thread Tyler Replogle
Try doing the hash code after the password is posted From: "Erbacher Karl" <[EMAIL PROTECTED]> To: php-general@lists.php.net Subject: [PHP] Hash Issues Date: Thu, 24 Feb 2005 08:26:35 -0800 Received: from lists.php.net ([216.92.131.4]) by mc5-f20.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); F

RE: [PHP] HOWTO read PHP source code into a textarea

2005-02-25 Thread Tyler Replogle
Try php.net for flat file date basing. It should tell you how to read a line and write to a new line. From: Tim Burgan <[EMAIL PROTECTED]> To: "[php] PHP General List" Subject: [PHP] HOWTO read PHP source code into a textarea Date: Fri, 25 Feb 2005 10:26:36 +1030 MIME-Version: 1.0 Received: from

RE: [PHP] FTP info in a variable

2005-02-25 Thread Tyler Replogle
Yes i think you can but i really won't do that. It does depend on the server and php verison that is installed on the server. From: Steve Buehler <[EMAIL PROTECTED]> To: PHP Subject: [PHP] FTP info in a variable Date: Thu, 24 Feb 2005 11:19:25 -0600 MIME-Version: 1.0 Received: from lists.php.net

RE: [PHP] Like ternary but without the else.

2005-02-25 Thread rich
I couldn't find this anywhere on google or PHP's site but I'm pretty sure there's an answer to it. How can I turn the following into something that resembles the ternary operator? is this what you're after? $this = ($something ? $that : $this) rich -- PHP General Mailing List (http://www.

Re: [PHP] Like ternary but without the else.

2005-02-25 Thread Brian V Bonini
On Fri, 2005-02-25 at 13:36, Chris W. Parker wrote: > How can I turn the following into something that resembles the ternary > operator? > > > if($something) > { > $this = $that; > } > > ?> $this = (isset($something)) ? $something : $that; The expression (expr1) ? (expr2) : (expr3)

Re: [PHP] help with adding

2005-02-25 Thread Jochem Maas
[EMAIL PROTECTED] wrote: Hi there! I guess $sum =+ intval($_POST['qty'.$i]); should be $sum += intval($_POST['qty'.$i]); yuo are corerct. ;-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Like ternary but without the else.

2005-02-25 Thread Justin Lilly
This should do the trick: $something ? $this=$that -justin On Fri, 25 Feb 2005 10:36:36 -0800, Chris W. Parker <[EMAIL PROTECTED]> wrote: > Hello, > > I couldn't find this anywhere on google or PHP's site but I'm pretty > sure there's an answer to it. > > How can I turn the following into som

[PHP] adodb paging problem

2005-02-25 Thread pURbA
i've searched on the internet about my problem that i have, and ended up with nothing. i believe some of u guys have faced this problem before. here is the problem: i have a table for books, and want to display it using adodb-pager. this is my select state: select * from books where booktitle lik

RE: [PHP] Hi ALL

2005-02-25 Thread Chris W. Parker
John Nichel on Friday, February 25, 2005 9:43 AM said: > Yeah, not so long ago, when the stats were mailed to the list > monthly, I was averaging 65-70 posts a month, and John would always > be more than double that. > > I think he just liked to hear himself talk.

RE: [PHP] Difficulty with SQL LIKE clause

2005-02-25 Thread Christian
You should use a _ instead. Please have a look at the mySQL manual: http://dev.mysql.com/doc/mysql/en/string-comparison-functions.html Christian When I use this query in PHP it works, and I get all things with the YEAR of 1977, as I expected. $query= "SELECT * FROM my_table WHERE Year LIKE 1977 ";

RE: [PHP] Open source portal systems???

2005-02-25 Thread Warren Vail
Where did you hear that PHP Nuke required a powerful server? I personally implemented PHP Nuke on a Windoz box (one strike there), that ran on a 166 mmx box (a big second strike), and benchmarked it handling 90 concurrent users, with no noticeable delays. If I were you, I'd dig deeper into what y

[PHP] Re: FTP info in a variable

2005-02-25 Thread Jamie Alessio
I have to write a little program that pulls information from a database, formats it into csv format for importing into excel and ftps it to another server. I have everything worked out except for the ftping. I have read through http://us4.php.net/manual/en/ref.ftp.php and I know I can get the

Re: [PHP] FTP info in a variable

2005-02-25 Thread Richard Lynch
Steve Buehler wrote: > I have to write a little program that pulls information from a database, > formats it into csv format for importing into excel and ftps it to another > server. I have everything worked out except for the ftping. I have read > through http://us4.php.net/manual/en/ref.f

Re: [PHP] Communication protocol of PHP and Mysql

2005-02-25 Thread Richard Lynch
Bruno Santos wrote: > Im developing an application as my final school project and for the > report (administration manual) i need to specifie the protocol of > communication between PHP and Mysql when accessing the mysql database > using the functions within PHP. > > PHP communicates with Mysql thr

Re: [PHP] Help Required: How to call .vbs file from .php file?

2005-02-25 Thread Rory Browne
Okay: You need to be explain yourself in a MUCH CLEARER manner. You want to 'call' a 'vbscript' from a php file. What exactly do you mean? Do you want to run server-side vbscript, or do you want to run client-side vbscript. Do you want to use asp-style vbscript to generate html, or do you want to

Re: [PHP] help with adding

2005-02-25 Thread gustav
Hi there! I guess $sum =+ intval($_POST['qty'.$i]); should be $sum += intval($_POST['qty'.$i]); /G @varupiraten.se > Jay Fitzgerald wrote: >> I have messed with this for a couple of days and cant get it right. >> Maybe I >> need sleep :-) >> >> >> >> The code below is echoing the qty correctly

Re: [PHP] HOWTO read PHP source code into a textarea

2005-02-25 Thread Richard Lynch
Tim Burgan wrote: > I have a file 'nav.php', whose source code I want to load into the > textarea on page 'aaa.php', so the source can be edited and changed. > > Is there a resource that I can read to help me do this? The User Contributed notes in: http://php.net/htmlentities should prove enlighte

SV: [PHP] Difficulty with SQL LIKE clause

2005-02-25 Thread Wiberg
Hi there! A little off-topic but what the heck (it's a more MySQL - related question) Is 197* a numbertype field? Try maybe $query= "SELECT * FROM my_table WHERE Year LIKE '197*'"; /G @varupiraten.se -Ursprungligt meddelande- Från: David Freedman [mailto:[EMAIL PROTECTED] Skickat: den 2

Re: [PHP] hash issues

2005-02-25 Thread Richard Lynch
Erbacher Karl wrote: > Thanks for your input, but I've played around with it and now it's uglier > than ever. I'm very new to PHP, so I'm not sure what I'm missing here. > I've > done a few things to try to pinpoint the problem, but now I'm even more > confused. Can you please look over what I've

Re: [PHP] Difficulty with SQL LIKE clause

2005-02-25 Thread Leif Gregory
Hello David, Friday, February 25, 2005, 1:27:54 PM, you wrote: D> Can the '*' be used? What am I doing wrong. It's the % symbol, not the *. -- Leif (TB lists moderator and fellow end user). Using The Bat! 3.0.2.3 Rush under Windows XP 5.1 Build 2600 Service Pack 2 on a Pentium 4 2GHz with 51

Re: [PHP] Hi ALL

2005-02-25 Thread John Nichel
Chris Shiflett wrote: --- Jochem Maas <[EMAIL PROTECTED]> wrote: i have mailed the list 235 times since 12-1-05 Richard certainly contributes a lot, and I think he's in the top 10 (Curt Zirzow actually compiled these statistics a while back), but no one comes close to John Holmes. Chris = Chri

SV: SV: SV: SV: [PHP] Copy? - What am I doing wrong???

2005-02-25 Thread Wiberg
Hi there! You're right. It wasn't a problem. It was my local Win-computer that failed totally... /G @varupiraten.se -Ursprungligt meddelande- Från: Richard Lynch [mailto:[EMAIL PROTECTED] Skickat: den 25 februari 2005 21:46 Till: Jochem Maas Kopia: [EMAIL PROTECTED]; [php] PHP General

RE: [PHP] Difficulty with SQL LIKE clause

2005-02-25 Thread Nathan Tobik
Not exactly clear what database you're using. In SQL Server the syntax is SELECT [options] FROM [table] WHERE [field] LIKE '%whatever value you're looking for%' The % means any string of characters, so it doesn't have to be exact Best of luck Nate Tobik (412)661-5700 x206 VigilantMinds -O

Re: [PHP] FTP info in a variable

2005-02-25 Thread Steve Buehler
At 11:07 AM 2/25/2005, you wrote: Steve Buehler wrote: > I have to write a little program that pulls information from a database, > formats it into csv format for importing into excel and ftps it to another > server. I have everything worked out except for the ftping. I have read > through

[PHP] Re: php.ini file

2005-02-25 Thread Steve Buehler
At 06:16 AM 2/25/2005, H. Postel wrote: I am setting up a database for the first time. I have to change some settings to my php.ini file, but I can not find it. I work with MySQL 3.23.49 It is normally in the /etc directory. If you do not have access to the /etc directory, then you will need to t

Re: [PHP] PHP Wiki

2005-02-25 Thread Richard Lynch
Randy Johnson wrote: > Is there a Wiki site for PHP? More than I can count. > Is there a need for one? Will you fill it up with Good Content? Or will it be a cobweb? I personally just don't find myself going back to Wikis and forums and blogs very often. Many people thrive on them. Some folks

Re: [PHP] PHP Wiki

2005-02-25 Thread Randy Johnson
yea I just thought maybe a php-wiki would be neat, not one programmed in php but a wiki for everything php :-) Randy Robby Russell wrote: On Thu, 2005-02-24 at 17:49 -0500, Randy Johnson wrote: Is there a Wiki site for PHP? Is there a need for one? -Randy The php.net site doesn't really need a

Re: [PHP] PHP slowness

2005-02-25 Thread Rasmus Lerdorf
Gerard wrote: Another interesting note; if you click from page to page fast enough, it doesn't take as long to load. For some reason, after the initial 5 second startup hic, it loads consequent pages smoothly. If you wait for 10 seconds and then click a link, it loads for 5 seconds again. I don't g

Re: [PHP] Was: Putting Evaluated Contents...

2005-02-25 Thread Richard Lynch
Brian A. Anderson wrote: > the results I could execute this? Would I have to put the ob_start()... > ob_get_clean(); within a function? How would I execute it? http://php.net/eval Just be sure a Bad Guy can't insert mean nasty things into the code you eval() -- Like Music? http://l-i-e.com/art

Re: [PHP] php5.0.3 compile problem "cannot find libz"

2005-02-25 Thread Richard Lynch
> --with-mysql=/usr/local/mysql --with-zlib-dir=/usr/lib > > And so configure errors out on "Cannot find libz" > > my /usr/lib contains: > zlib.so, libz.so.1 .. > > Can anyone tell me what I need to do on my ./configure to get rolling? It probably can't find /usr/include/libz.h (and friends) Use

Re: [PHP] PHP and Access

2005-02-25 Thread Richard Lynch
Bruno Santos wrote: > I need to to an application in PHP with graphics creation. > The database where i need to go and fetch the values is access. > is possible for PHP to fecth values from an access database ?? Sure! You can Google for "PHP MS-Access" and find a ton of info. I'm pretty sure it

Re: [PHP] PHP Extensions & Pass-By-Reference

2005-02-25 Thread Richard Lynch
Chris Cranford wrote: > I have a PHP_FUNCTION() defined in my PHP extension. How am I suppose to > pass variables by reference to my function without enabling call-time pass > by reference in the PHP.INI file? I think the definition in the C syntax of PHP_FUNCTION will do that for you. You'll pr

[PHP] Re: HOWTO read PHP source code into a textarea

2005-02-25 Thread Jamie Alessio
I have a file 'nav.php', whose source code I want to load into the textarea on page 'aaa.php', so the source can be edited and changed. Is there a resource that I can read to help me do this? Tim, How about putting this in aaa.php? {$str}"; ?> and on form post something like this: You'll need er

Re: [PHP] [NEWBIE] How to allow for tags but no others?

2005-02-25 Thread Richard Lynch
> Can I set up a PHP script which will strictly only allow instances > of and and absolutely nothing else? I would like the http://php.net/strip_tags You'll still want to use a Regular Expression to rip out every attribute/value other than HREF, but at least all the other HTML tags will be

Re: SV: SV: SV: [PHP] Copy? - What am I doing wrong???

2005-02-25 Thread Richard Lynch
Jochem Maas wrote: > Wiberg wrote: >> Hi there! >> >> fgtcvs works fine, but there's another problem now... I run updates to >> the >> db for each row (every row is unique) and must be updated. If I run the >> script with 2 rows then my site couldn't open the database from >> another >> locatio

Re: [PHP] Help Required: How to call .vbs file from .php file?

2005-02-25 Thread Richard Lynch
lef1 wrote: > I am in desperate need of some help in calling a vbscript file from a php > file. > I have searched high and low and have come up with nothing that will do > it. > I have found one example of a html file, which will call a vbscript file > when > the html file is double-clicked, but wo

[PHP] Re: Not able to add data to a MySQL database

2005-02-25 Thread M. Sokolewicz
You've got errors in your SQL. For once, table-names should not be quoted (with single or double quotes), same goes for column names ('uname' and 'access' in your example). Easiest way to find out without asking is to add a call to mysql_error(), so called "error handling"...! That would've told

Re: [PHP] help with adding

2005-02-25 Thread Richard Lynch
Jay Fitzgerald wrote: > I have messed with this for a couple of days and cant get it right. Maybe > I > need sleep :-) > > > > The code below is echoing the qty correctly (10, 5, 25) > > > > for ($i = 1; $i <= $sendnum; $i++) > > { > > $qty = $_POST['qty'.$i]; > > echo $

Re: [PHP] PHP Wiki

2005-02-25 Thread Robby Russell
On Thu, 2005-02-24 at 17:49 -0500, Randy Johnson wrote: >Is there a Wiki site for PHP? Is there a need for one? > >-Randy The php.net site doesn't really need a wiki. or did you mean is there a php-based wiki? http://www.google.com/search?q=php+wiki -Robby -- /*

RE: [PHP] fopen and http://

2005-02-25 Thread Richard Lynch
Warren Vail wrote: >> Hi, I'm having a problem with fopen and http files. I keep getting the >> error: >> >> Warning: fopen(http://zed/htdocs/rgfindingaids/series594.html ) >> [function.fopen]: failed to open stream: HTTP request failed! >> HTTP/1.1 404 >> Not Found in /home/awilliam/public_html/r

Re: [PHP] Hi ALL

2005-02-25 Thread Richard Lynch
Chris Shiflett wrote: > --- Jochem Maas <[EMAIL PROTECTED]> wrote: >> i have mailed the list 235 times since 12-1-05 > > Nice trick. :-) > >> I'd put my money on Richard Lynch for all categories: >> >> 1. total number of posts >> 2. highest average no. of posts/week >> 3. longest post >> 4. total n

[PHP] Dynamically Generate Pleasing Colors

2005-02-25 Thread Richard Lynch
I'm drawing a GD map from selected points in a database. I am using imagecreatetruecolor. I'm outputting PNGs, but could change to JPEG if it would help. [I doubt it] In experimentation so far, I've found that using the lighter shades is more pleasing to the eye, in general, so want to stay abov

Re: [PHP] PHP Wiki

2005-02-25 Thread Randy Johnson
Nope I had not been there. Thanks for the link Randy Chris W. Parker wrote: Randy Johnson on Thursday, February 24, 2005 2:50 PM said: Is there a Wiki site for PHP? Is there a need for one? Been to http://phpcommunity.org/wiki/? Chris. -- PHP General Mailing List

Re: [PHP] what does this mean?

2005-02-25 Thread Jochem Maas
Jason Barnett wrote: Leif Gregory wrote: Hello Diana, Friday, February 25, 2005, 7:07:29 AM, you wrote: D> on which page of php.net can I find out what this code does? D> $a = $b? $a :"dian"; It's called a ternary operator, basically an if-else statement. Note to self: write "ternary" on the

[PHP] Re: Like ternary but without the else.

2005-02-25 Thread Jason Barnett
Chris W. Parker wrote: > Hello, > > I couldn't find this anywhere on google or PHP's site but I'm pretty > sure there's an answer to it. > > How can I turn the following into something that resembles the ternary > operator? > > > if($something) > { > $this = $that; > } > > ?> > $t

Re: [PHP] help with adding

2005-02-25 Thread Randy Johnson
Try this: $num=0; for ($i = 1; $i <= $sendnum; $i++) { $qty = $_POST['qty'.$i]; $num=$num+ $qty ; } echo $num; Jay Fitzgerald wrote: I have messed with this for a couple of days and cant get it right. Maybe I need sleep :-) The code below is echoing the qty correc

Re: [PHP] help with adding

2005-02-25 Thread Dan Tappin
You could try: for ($i = 1; isset( $_POST['qty'.$i] ); $i++) { $qty = $_POST['qty'.$i]; $total .= $qty; echo $qty . ''; } echo $total; Dan T On Feb 24, 2005, at 8:39 AM, Jay Fitzgerald wrote: I have messed with this for a couple of days and cant get it right. Maybe

[PHP] Not able to add data to a MySQL database

2005-02-25 Thread Vaibhav Sibal
Hi, I am not able to insert data into my mysql database using php even if i use a simple code as follows : even after running this code on the server, there was no change in the mysql database as seen by the phpmyadmin. Ive tried it with another file and another table, but its not just happening.

RE: [PHP] What's up with the list?

2005-02-25 Thread Chris W. Parker
John Nichel on Friday, February 25, 2005 6:12 AM said: > Haven't gotten anything from the list since yesterday...is it me, or > is it the list. Fix it Jay!!! ;) While we're asking questions about the list, is it just me or does it take everyone's email 30+ minu

RE: [PHP] PHP Wiki

2005-02-25 Thread Chris W. Parker
Randy Johnson on Thursday, February 24, 2005 2:50 PM said: > Is there a Wiki site for PHP? Is there a need for one? Been to http://phpcommunity.org/wiki/? Chris. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.p

[PHP] Re: [PHP-DEV] PHP Extensions & Pass-By-Reference

2005-02-25 Thread Brad House
look at http://cvs.php.net/co.php/php-src/ext/mcve/mcve.c?r=1.28.2.2 the m_completeauthorizations function. -Brad Chris Cranford wrote: I have a PHP_FUNCTION() defined in my PHP extension. How am I suppose to pass variables by reference to my function without enabling call-time pass by reference

RE: [PHP] What's up with the list?

2005-02-25 Thread Jay Blanchard
[snip] Haven't gotten anything from the list since yesterday...is it me, or is it the list. Fix it Jay!!! ;) [/snip] I am up to my arse in an application roll-out and you want me to reboot the computer?!?!?! I don't think so Tim, um er..John! ROFLMMFAO -- PHP General Mailing List (http

RE: [PHP] what does this mean?

2005-02-25 Thread Jay Blanchard
[snip] on which page of php.net can I find out what this code does? $a = $b? $a :"dian"; [/snip] It is a ternary IF statement...verbose if ($a = $b){ $a; } else { "dian"; } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] [NEWBIE] How to allow for tags but no others?

2005-02-25 Thread abrea
Instead of allowing your users to enter tags, why don't you put them in your own web page and just let them enter the url? For instance you would have your form: ... The action page (thepage.php) could include something like: And when you retrieve it from the database you write your own link:

RE: [PHP] PHP Wiki

2005-02-25 Thread Jay Blanchard
[snip] Is there a Wiki site for PHP? Is there a need for one? [/snip] What would be the wiki's purpose here? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP and Access

2005-02-25 Thread Jay Blanchard
[snip] I need to to an application in PHP with graphics creation. The database where i need to go and fetch the values is access. is possible for PHP to fecth values from an access database ?? [/snip] http://us2.php.net/odbc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] help with adding

2005-02-25 Thread Leif Gregory
Hello Jay, Thursday, February 24, 2005, 8:39:16 AM, you wrote: J> I have messed with this for a couple of days and cant get it right. J> Maybe I need sleep :-) J> The question is, how would I take add each of these numbers (10+5+25)? for ($i = 1; $i <= $sendnum; $i++) { $qty = $_POST['qty'.$i

Re: [PHP] help with adding

2005-02-25 Thread Stephen Johnson
for ($i = 1; $i <= $sendnum; $i++) { $qty = $_POST['qty'.$i]; $total = $total + $qty; echo $qty . ''; } echo "Total $total"; http://www.thelonecoder.com [EMAIL PROTECTED] 562.924.4454 (office) 562.924.4075 (fax) continuing the struggle against bad code

RE: [PHP] help with adding

2005-02-25 Thread Jesse Castro
> -Original Message- > From: Jay Fitzgerald [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 24, 2005 9:39 AM > To: php-general@lists.php.net > Subject: [PHP] help with adding > > > I have messed with this for a couple of days and cant get it > right. Maybe I need sleep :-) > >

Re: [PHP] FTP info in a variable

2005-02-25 Thread Richard Lynch
The list has definitely been quite funky last night and today... Steve Buehler wrote: > original message > I have to write a little program that pulls information from a database, > formats it into csv format for importing into excel and ftps it to another > server. I have everythin

Re: [PHP] Word file to PDF

2005-02-25 Thread Rory Browne
> Run PHP on a windows platform that has MSWord and the PDF printing libraries > installed. Use PHP's COM support to load an MSWord object and see if you can > get it to load the word document and print it out as a PDF file. Once it is > printed to the file, you can use PHP to read the file and do

Re: [PHP] List gone quiet?

2005-02-25 Thread Danny Brow
On Fri, 2005-02-25 at 11:13 +, Lester Caine wrote: > Nothing on list over night? It's a PHP fast :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: [PHP-DEV] PHP Extensions & Pass-By-Reference

2005-02-25 Thread Marcus Boerger
Hello Chris, you need to define that signature of your functions by supplying ZEND_ARG_INFO's to them. look at ZEND_API.h file for those macros. marcus Friday, February 25, 2005, 2:22:39 AM, you wrote: > I have a PHP_FUNCTION() defined in my PHP extension. How am I suppose to > pass variable

[PHP] Like ternary but without the else.

2005-02-25 Thread Chris W. Parker
Hello, I couldn't find this anywhere on google or PHP's site but I'm pretty sure there's an answer to it. How can I turn the following into something that resembles the ternary operator? I seem to remember it looking something like: Although this isn't syntactically wrong, i.e. no errors, i

RE: [PHP] PHP slowness

2005-02-25 Thread Richard Lynch
Gerard wrote: > Update on the issue: > I just upgraded to PHP5 in an attempt to get the speed under control, it > didn't work. > What I did notice is that even www.debuginc.com/test2.php (which has NO > code > in it at ALL, only text) takes 5 seconds to load! Upon closer > investigation, > it seems

Re: [PHP] help with adding

2005-02-25 Thread Jochem Maas
Jay Fitzgerald wrote: I have messed with this for a couple of days and cant get it right. Maybe I need sleep :-) The code below is echoing the qty correctly (10, 5, 25) for ($i = 1; $i <= $sendnum; $i++) { $qty = $_POST['qty'.$i]; echo $qty . ''; } The question is,

Re: [PHP] [NEWBIE] How to allow for tags but no others?

2005-02-25 Thread John Nichel
Dave wrote: PHP General, 1. The Situation: I have a forum in which users can enter text which is then displayed on my web site. I want to be able to allow them to insert their own tags to provide links. The text is stored in a MySQL database. 2. The Problem: My understanding is that

Re: [PHP] hash issues

2005-02-25 Thread Jason Wong
On Friday 25 February 2005 08:36, Erbacher Karl wrote: > Thanks for your input, but I've played around with it and now it's > uglier than ever. I'm very new to PHP, so I'm not sure what I'm > missing here. I've done a few things to try to pinpoint the problem, > but now I'm even more confused. Ca

[PHP] Difficulty with SQL LIKE clause

2005-02-25 Thread David Freedman
When I use this query in PHP it works, and I get all things with the YEAR of 1977, as I expected. $query= "SELECT * FROM my_table WHERE Year LIKE 1977 "; But, when I use this query it does not work. $query= "SELECT * FROM my_table WHERE Year LIKE 197* "; I thought I should get the result of ALL

[PHP] Open source portal systems???

2005-02-25 Thread Kostyantyn Shakhov
I've got an order for the media portal. Thus, I'm looking for an open source portal systems. First that comes to my mind is PHP-Nuke, but I heared that it requires a powerful server and i'll have just a middle-level one. So, could someone knows another PHP-based open source portal systems? Thank yo

RE: [PHP] HOWTO read PHP source code into a textarea

2005-02-25 Thread Mikey
> I have a file 'nav.php', whose source code I want to load > into the textarea on page 'aaa.php', so the source can be > edited and changed. > > Is there a resource that I can read to help me do this? If you want to render HTML into a textarea then I am afraid you are on a hiding to nothing -

Re: [PHP] what does this mean?

2005-02-25 Thread Leif Gregory
Hello Diana, Friday, February 25, 2005, 7:07:29 AM, you wrote: D> on which page of php.net can I find out what this code does? D> $a = $b? $a :"dian"; It's called a ternary operator, basically an if-else statement. There really isn't a page (that I've found) that explains in on php.net, bu

Re: [PHP] what does this mean?

2005-02-25 Thread Jochem Maas
Diana Castillo wrote: on which page of php.net can I find out what this code does? $a = $b? $a :"dian"; its a form of if statement called the tertiary form (or something), it does exactly the same as this: if ($b) { $a = $a; } else { $a = "dian"; } don't know which page its on

RE: [PHP] Help Required: How to call .vbs file from .php file?

2005-02-25 Thread Jay Blanchard
[snip] I am in desperate need of some help in calling a vbscript file from a php file. [/snip] http://www.php.net/exec -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP and Access

2005-02-25 Thread Matt M.
> I need to to an application in PHP with graphics creation. > The database where i need to go and fetch the values is access. > is possible for PHP to fecth values from an access database ?? http://us4.php.net/odbc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://

Re: [PHP] [NEWBIE] How to allow for tags but no others?

2005-02-25 Thread Jochem Maas
Dave wrote: PHP General, ... 4. What I've Done So Far: I've looked into the *htmlspecialchars()* and *htmlentities(), thinking that they perhaps could pull out characters used in tags, but they seem to be more for formatting scrip

Re: [PHP] what does this mean?

2005-02-25 Thread Jason Barnett
Leif Gregory wrote: > Hello Diana, > > Friday, February 25, 2005, 7:07:29 AM, you wrote: > D> on which page of php.net can I find out what this code does? > D> $a = $b? $a :"dian"; > > > It's called a ternary operator, basically an if-else statement. Note to self: write "ternary" on the bl

  1   2   >