Re: [PHP] PHP Frameworks

2005-12-28 Thread Ruben Rubio Rey
Script Head wrote: Nobody has mentioned Fusebox (www.fusebox.org). I have been using it to develop PHP applications for about 2 years. It has proven to be extremely flexible when a large number of developers collaborate on one project. jedit :) Love macros and plugins!

[PHP] SELECT?

2005-12-28 Thread William Stokes
Hello, I have one MySQL table with about 500 rows. I need to read the table one row at a time, make some changes to data in one field and then store the changed data to another table. I'm using PHP to change the data but I have no idea how to select one row at a time from the DB table. There's

RE: [PHP] SELECT?

2005-12-28 Thread Christian Ista
From: William Stokes [mailto:[EMAIL PROTECTED] I have one MySQL table with about 500 rows. I need to read the table one row at a time, make some changes to data in one field and then store the changed data to another table. 1. May be add a column, CHANGED_FL with default value N. 2. Select

Re: [PHP] SELECT?

2005-12-28 Thread Max Schwanekamp
William Stokes wrote: I have one MySQL table with about 500 rows. I need to read the table one row at a time, make some changes to data in one field and then store the changed data to another table. I'm using PHP to change the data but I have no idea how to select one row at a time from the DB

[PHP] Re: mysqli module in php 4

2005-12-28 Thread M. Sokolewicz
Bagus Nugroho wrote: Hi All, Is mysqli module enable by default on php 4 as mysql module. no If not enable by default, where I can get this module(hopefully a direct link to download) you can't, it *requires* PHP 5 Thanks in advance -- PHP General Mailing List

Re: [PHP] mysqli module in php 4

2005-12-28 Thread Paul Waring
On 12/28/05, Bagus Nugroho [EMAIL PROTECTED] wrote: Is mysqli module enable by default on php 4 as mysql module. No, because it's a PHP5 module (if you look at the documentation for it, all the php.ini settings for it have only been available since 5.0.0). If not enable by default, where I can

Re: [PHP] xmlspecialchars

2005-12-28 Thread Jochem Maas
Richard Lynch wrote: I'm creating some XML data, but not using any of the built-in PHP XML functions, as they are not necessarily available on all servers. I need to encode Data (CDATA) such as URLs etc. htmlspecialchars() works on all my test cases so far, but is it right?... I don't think

Re: [PHP] SELECT?

2005-12-28 Thread Paul Waring
On 12/28/05, William Stokes [EMAIL PROTECTED] wrote: I have one MySQL table with about 500 rows. I need to read the table one row at a time, make some changes to data in one field and then store the changed data to another table. I'm using PHP to change the data but I have no idea how to

[PHP] list a query

2005-12-28 Thread Ross
What does 'list' do in a php query? $result = mysql_query($query) or die('Error, query failed'); list($name, $type, $size, $content) = mysql_fetch_array($result); found it in this example... http://www.php-mysql-tutorial.com/php-mysql-upload.php -- PHP General Mailing List

Re: [PHP] list a query

2005-12-28 Thread Jochem Maas
Ross wrote: What does 'list' do in a php query? there is no such thing a php query (unless you count asking a pph related question). list() is a language construct an explanation of it can be found in the manual http://php.net/list please always read/search the manual before asking question.

Re: [PHP] SELECT?

2005-12-28 Thread Zareef Ahmed
Hi, As there are only 500 rows, there is not any harm in fetching all records through one query and then do the update between while loop $query=select * from table; $result=mysql_query($query); while($row=mysql_fetch_array($result)) { $newquery=update YOUR STATEMENT where uniquefield

[PHP] download not working

2005-12-28 Thread Ross
working form this example http://www.php-mysql-tutorial.com/php-mysql-upload.php my code is as follows, all I get is a corrupt pdf file. $query= SELECT * FROM publications WHERE alphabet='a'; $result= mysql_query($query); while ($row = @mysql_fetch_array($result, MYSQL_ASSOC)){

Re: [PHP] download not working

2005-12-28 Thread Jochem Maas
are people supposed to smell what is not working? do you get any errors? is it possible the PDF was corrupt when you uploaded it? Ross wrote: working form this example http://www.php-mysql-tutorial.com/php-mysql-upload.php my code is as follows, all I get is a corrupt pdf file. $query=

Re: [PHP] download not working

2005-12-28 Thread Ross
The pdf is fine, there are no errors . All I get is a small (130byte) pdf file which is corrupt when I try and open it. Thanks, R. Jochem Maas [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] are people supposed to smell what is not working? do you get any errors? is it possible

[PHP] PDO pdo_odbc

2005-12-28 Thread Markus Fischer
Hi, I'm using the following code in a PHP 5.1, Windows CLI environment: $p = new PDO('odbc:driver={Microsoft Access Driver (*.mdb)};Dbq=beispieldatenbank.mdb'); $s = $p-prepare('INSERT INTO ADDRESSES(TITLE0, LASTNAME0) VALUES(?, ?)'); $s-execute(array('test1', 'test2')); I'm always getting

RE: [PHP] download not working

2005-12-28 Thread Albert
Ross wrote: The pdf is fine, there are no errors . All I get is a small (130byte) pdf file which is corrupt when I try and open it. From the code I gather you are saving the uploaded file in the database. 1 - What field type are you using for this? 2 - Are you using some form of encoding (eg

RE: [PHP] download not working

2005-12-28 Thread Albert
Ross wrote: $query= SELECT * FROM publications WHERE alphabet='a'; $result= mysql_query($query); while ($row = @mysql_fetch_array($result, MYSQL_ASSOC)){ $row['pdf_size'] = $row['pdf_size']/ 1024; $row['pdf_size']= number_format($row['pdf_size'], 0); $size= $row['pdf_size'];

Re: [PHP] Re: mysqli module in php 4

2005-12-28 Thread John Nichel
M. Sokolewicz wrote: Bagus Nugroho wrote: Hi All, Is mysqli module enable by default on php 4 as mysql module. no If not enable by default, where I can get this module(hopefully a direct link to download) you can't, it *requires* PHP 5 I've been running mysqli on 4.3.x and 4.4 --

[PHP] Location ....

2005-12-28 Thread Christian Ista
Hello, Could you tell me a efficient solution for change page (new location) in PHP? I tried this code : header(Location: mypage.php); But in some case, I have error message heade already send. Then I use a javascript solution : window.location.href=mypage.php; Is there a good solution in php ?

RE: [PHP] Location ....

2005-12-28 Thread Jay Blanchard
[snip] Could you tell me a efficient solution for change page (new location) in PHP? I tried this code : header(Location: mypage.php); But in some case, I have error message heade already send. Then I use a javascript solution : window.location.href=mypage.php; Is there a good solution in php ?

Re: [PHP] Location ....

2005-12-28 Thread Silvio Porcellana [tradeOver]
Christian Ista wrote: Hello, Could you tell me a efficient solution for change page (new location) in PHP? I tried this code : header(Location: mypage.php); note: HTTP/1.1 requires an absolute URI http://php.net/header But in some case, I have error message heade already send. Then I use

[PHP] pdo_informix

2005-12-28 Thread Aleksander
Hi, How do I install pdo_informix? There's not much info on it's homepage http://pecl.php.net/package-changelog.php?package=PDO_INFORMIX and it's not yet in cvs php-src. Although it's in the root of cvs ( http://cvs.php.net/viewcvs.cgi/pecl/pdo_informix/ ). I'd like to add it to the stable

RE: [PHP] Location ....

2005-12-28 Thread Christian Ista
From: Jay Blanchard [mailto:[EMAIL PROTECTED] Header is a good solution, and is the only one available in PHP for redirects. It requires that you do not send anything else out to the browsers before sending the redirect, which is what is causing your error. You can always use the output

RE: [PHP] Location ....

2005-12-28 Thread Jay Blanchard
[snip] Ok but there is something more strange. I use header location in a switch/case. An header location by case. I don't understand at the end of the case, the header location don't work and I go through the others cases. Any idea why ? [/snip] Not without seeing code. -- PHP General

Re: [PHP] Re: mysqli module in php 4

2005-12-28 Thread John Nichel
M. Sokolewicz wrote: John Nichel wrote: M. Sokolewicz wrote: Bagus Nugroho wrote: Hi All, Is mysqli module enable by default on php 4 as mysql module. no If not enable by default, where I can get this module(hopefully a direct link to download) you can't, it *requires* PHP 5

Re: [PHP] Re: mysqli module in php 4

2005-12-28 Thread M. Sokolewicz
John Nichel wrote: M. Sokolewicz wrote: Bagus Nugroho wrote: Hi All, Is mysqli module enable by default on php 4 as mysql module. no If not enable by default, where I can get this module(hopefully a direct link to download) you can't, it *requires* PHP 5 I've been running mysqli

[PHP] ODBC question

2005-12-28 Thread Jeremy Schreckhise
  I have an Openlink Single Tier Driver on an XP pro machine with windows installed on drive f: because I have a dual boot with Red Hat.  Database is Progress 8.3c on a SCO Unixware 7.1.4 Dell Server.  I can connect to all progress databases and pull data utilizing a System DSN via Openlink,

Re: [PHP] ODBC question

2005-12-28 Thread Kristen G. Thorson
Jeremy Schreckhise wrote: I have an Openlink Single Tier Driver on an XP pro machine with windows installed on drive f: because I have a dual boot with Red Hat. Database is Progress 8.3c on a SCO Unixware 7.1.4 Dell Server. I can connect to all progress databases and pull data utilizing a

Re: [PHP] Earlier versions hurt PHP 5

2005-12-28 Thread PHP Superman
On 12/28/05, PHP Superman [EMAIL PROTECTED] wrote: I agree with Greg, if you guys don't care about new versions lets all downgrade to Pentium 1 computers using dial up, if we don't move from PHP 4 to PHP 5 now, then when PHP 6 comes with a truckload of new features and changes to programming

[PHP] operators

2005-12-28 Thread Henry Krinkle
I have some experience with PHP, but not with these operators: - = Can someone explain how they are working in this snippet from Yahoo's search API foreach($xml-Result[$i] as $key=$value) I don't see anything about them in the Array Operators documentation.. Thanks

[PHP] Re: operators

2005-12-28 Thread M. Sokolewicz
please read http://www.php.net/manual/en/language.oop.php explaining what Objects are exactly (since it's looping over an object property which just so happens to be an array) http://www.php.net/manual/en/control-structures.foreach.php explains what = is (part of foreach()) - tul Henry

Re: [PHP] Earlier versions hurt PHP 5

2005-12-28 Thread Anas Mughal
Here is a PHP5 hosting company: http://www.a2hosting.com/ (Please try Google to find more PHP5 hosting companies.) Please don't make comments like removing older versions of PHP from the download page. We have delivered solutions to clients that run on PHP4. Those clients need the ability to

Re: [PHP] operators

2005-12-28 Thread Ligaya Turmelle
$xml-Result[$i] - a method call for object $xml $key=$value - array notation Henry Krinkle wrote: I have some experience with PHP, but not with these operators: - = Can someone explain how they are working in this snippet from Yahoo's search API foreach($xml-Result[$i] as

[PHP] mysqli class not found

2005-12-28 Thread Erik Saline
- Original Message - From: Erik Saline To: php-general@lists.php.net Sent: Wednesday, December 28, 2005 1:08 PM I installed Apache, PHP, and Mysql during the Fedora Core 4 installation. PHP 5.0.4 MYSQL 4.1.14 I used php -i to show that mysql and mysqli were installed. Configure

Re: [PHP] mysqli class not found

2005-12-28 Thread PHP Superman
you are not missing anything, you are actually adding to much. Using new is for making objects, if you take away the new in the $result variable declaration it should work fine. On 12/28/05, Erik Saline [EMAIL PROTECTED] wrote: - Original Message - From: Erik Saline To:

RE: [PHP] a quick one, self submitting jump menu

2005-12-28 Thread Daevid Vincent
While not PHP, this is a JS question.. FORM NAME=JumpForm SELECT NAME=JumpItem onChange=jump_page(); OPTION VALUE='login_me_main.php'My Account OPTION VALUE='login_new_main.php'Sign Up! /SELECT /FORM SCRIPT function

[PHP] Variables and Strings

2005-12-28 Thread PHP Superman
Hey everyone, is there a way to return all the variables from a string into an array, for example $Var1=Yo; $Var2=Man; $SQL=SELECT * FROM tblname WHERE 4=$Var1 AND WHERE 3=$Var2; $AllVars=MySpecialFunction($SQL); print_r($AllVars); would ideally print an array like: { array $Var1=Yo $Var2=Man }

[PHP] Symbolic Folders and Content Translation

2005-12-28 Thread Dan Jallits
I want to be able to determine the browser language and redirect to the correct web folder. However, I want this folder to be symbolic, since I do not want multiple copies of the same information. Then the next step would be to pass the browser language to a service like Google Translate! -- Best

Re: [PHP] Re: mysqli module in php 4

2005-12-28 Thread Curt Zirzow
On Wed, Dec 28, 2005 at 11:58:02AM -0500, John Nichel wrote: M. Sokolewicz wrote: John Nichel wrote: M. Sokolewicz wrote: Bagus Nugroho wrote: Hi All, Is mysqli module enable by default on php 4 as mysql module. no If not enable by default, where I can get this

Re: [PHP] Symbolic Folders and Content Translation

2005-12-28 Thread Curt Zirzow
On Wed, Dec 28, 2005 at 09:43:19PM -0600, Dan Jallits wrote: I want to be able to determine the browser language and redirect to the correct web folder. However, I want this folder to be symbolic, since I do not want multiple copies of the same information. Then the next step would be to pass

Re: [PHP] Variables and Strings

2005-12-28 Thread Curt Zirzow
On Wed, Dec 28, 2005 at 10:30:04PM -0500, PHP Superman wrote: Hey everyone, is there a way to return all the variables from a string into an array, for example $Var1=Yo; $Var2=Man; $SQL=SELECT * FROM tblname WHERE 4=$Var1 AND WHERE 3=$Var2; $AllVars=MySpecialFunction($SQL);

Re: [PHP] pdo_informix

2005-12-28 Thread Curt Zirzow
On Wed, Dec 28, 2005 at 04:56:31PM +0200, Aleksander wrote: Hi, How do I install pdo_informix? Some information on installtion is here: http://php.net/pdo_informix This is a basic pecl installation, the general process goes something like: 1) get latest release (or if daring cvs

Re: [PHP] Location ....

2005-12-28 Thread Curt Zirzow
On Wed, Dec 28, 2005 at 03:15:09PM +0100, Christian Ista wrote: Hello, Could you tell me a efficient solution for change page (new location) in PHP? I tried this code : header(Location: mypage.php); But in some case, I have error message heade already send. Then I use a javascript

[PHP] XML Reader

2005-12-28 Thread [EMAIL PROTECTED]
Is there any easy php script to run to view an xml file such as new headlines like so: http://news.google.com/?output=rss or can anyone point me in the right direction for good online tutorials or books.

Re: [PHP] PDO pdo_odbc

2005-12-28 Thread Curt Zirzow
On Wed, Dec 28, 2005 at 02:14:43PM +0100, Markus Fischer wrote: Hi, I'm using the following code in a PHP 5.1, Windows CLI environment: $p = new PDO('odbc:driver={Microsoft Access Driver (*.mdb)};Dbq=beispieldatenbank.mdb'); $s = $p-prepare('INSERT INTO ADDRESSES(TITLE0, LASTNAME0)

Re: [PHP] error: Process limit exceeded for uid 10337 [25 = 24]

2005-12-28 Thread Curt Zirzow
On Wed, Dec 28, 2005 at 08:33:58AM -0500, Cesar Cruz wrote: This error happens in my Web http://www.millonarios.com.co/ Process limit exceeded for uid 10337 [25 = 24] as it can be the cause? This sounds like some sort of OS error, probably due to your uid not being able to go over a

Re: [PHP] download not working

2005-12-28 Thread Curt Zirzow
On Wed, Dec 28, 2005 at 01:03:55PM -, Ross wrote: The pdf is fine, there are no errors . All I get is a small (130byte) pdf file which is corrupt when I try and open it. Open the file in notepad and look at the 130 bytes, it probably will give you a clue. Thanks, R. Jochem Maas