Re: [PHP] Out of the blue question..

2009-04-07 Thread chris smith
Didn't really read Bruce's email didya Chris?!! Of course I read it - I guess I misunderstood the intent. No need to bite my head off - sheesh :P -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] if elseif elseif elseif....

2009-03-05 Thread chris smith
$obligatoryFieldNotPresent=null; foreach($_POST, as $value) {        if(!empty($value)continue;     Parse error.  ;-P There should be no comma there. That fixes one, what about the rest? ;) -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List

Re: [PHP] sprintf thousand separator.

2009-02-11 Thread chris smith
2009/2/11 João Cândido de Souza Neto j...@consultorweb.cnt.br: Hello everybody. I´d just like to know if there´s any way of defining a thousand separator to a currency value using sprintf. Use number_format instead of sprintf, it's designed to do what you want. -- Postgresql php tutorials

Re: [PHP] Database Tables Relation Issue

2009-01-30 Thread chris smith
I have thought of using comma-separated ID's in special field in the lists table of the users who have joined that specific list, but I have also thought of doing the same at the users table, then I had another solution which is to create new table: create table `relations` ( `listid`

Re: [PHP] Because you guys/gals/girls/women/insert pc term here are a smart lot

2009-01-06 Thread chris smith
It may be worth mentioning that, IIRC, CHAR is faster due to the fixed length. If you can make your table use a fixed length row size (ie no variable length columns), it'll be faster. I'd be interested in seeing tests about this.. I doubt there's any difference. Also I could be missing

Re: [PHP] Since I speak with some of you more than people I see in person....

2009-01-01 Thread chris smith
And as a side note (some of you already know): for my wife and I closing out the year, we heard the heartbeat of our first child for the first time today in the ultrasound. Nothing else will ever again matter as much to me as what I am about to embark upon. I don't think any song or

Re: [PHP] IM Convert PDF-JPG works in command line, not in PHP

2008-12-31 Thread chris smith
But from PHP, it only works beautifully if I specify complete pathnames for convert /usr/local/imagemagick/ is not in apache's $PATH, so you need to specify the full location. As soon as I try to convert a PDF image, it fails: ?php $command_line = /usr/local/imagemagick/bin/convert

Re: [PHP] Offline PDO documentation?

2008-12-29 Thread chris smith
On Mon, Dec 29, 2008 at 6:28 PM, Michelle Konzack linux4miche...@tamay-dogan.net wrote: Hello, In my PHP5 documetation I have installed on my system PDO is mentioned, but the files are missing... While surfing php.net I have not found the PDO part which I need Off- Line since I am on GSM

Re: [PHP] Problem with fetching values...

2008-12-29 Thread chris smith
So, PostgreSQL catch the array by name pg_fetch_array($db_query, null, PGSQL_ASSOC) and MySQL use the position mysql_fetch_array($db_query, MYSQL_NUM) Why? http://www.php.net/mysql_fetch_array Use MYSQL_ASSOC as the 2nd param, or leave it out and by default it uses BOTH. --

Re: [PHP] MYSQL insert problems

2008-10-17 Thread chris smith
On Sat, Oct 18, 2008 at 3:22 AM, Frank Stanovcak [EMAIL PROTECTED] wrote: I'm using the following code to try and do a simple insert query. However it won't insert the data into the table, and I get no error messages. What have I done wrong this time? You will be getting an error. echo

Re: [PHP] Posting Summary for Week Ending 4 January, 2008: php-general@lists.php.net

2008-01-05 Thread chris smith
Once it settles down, it will run every Friday at 4:00p to summarize the week. For bragging rights, to keep track of how much time you've spent doing community service or whatever else. Why? Does anybody really care how many emails they send to the list? While I don't doubt your good

Re: [PHP] how to use php from mysql to xml

2008-01-05 Thread chris smith
On Jan 5, 2008 9:14 PM, Yang Yang [EMAIL PROTECTED] wrote: hi,everyone,i am a newbuy for php world and i have a problem when i study php i want to make a script,it works for: a mysql table,like title authorcontentdate a1a2 a3 a4 b1b2 b3

Re: [PHP] menu andfolder question

2008-01-05 Thread chris smith
On Jan 5, 2008 10:23 PM, Alain Roger [EMAIL PROTECTED] wrote: Hi, Serveral web sites have a menu and when you pass your mouse over a link, the browser statusbar only shows the folder where is located the file link, not the complete address including the file link. i mean if you take web

Re: [PHP] menu andfolder question

2008-01-05 Thread chris smith
On Jan 5, 2008 10:36 PM, Alain Roger [EMAIL PROTECTED] wrote: ok, maybe i did not write my question well. i already used it because i setup the DirectoryIndex to index.php, index.html my concern for now, how to have the same behavior on my local computer (development computer) ? my computer

Re: [PHP] Join question

2007-11-30 Thread chris smith
On Dec 1, 2007 3:53 PM, Crayon Shin Chan [EMAIL PROTECTED] wrote: On Saturday 01 December 2007, tedd wrote: At 10:21 AM +0800 11/30/07, Crayon Shin Chan wrote: On Friday 30 November 2007, tedd wrote: I'm trying to understand joins, Ask on a database related list. Really? Really.

Re: [PHP] Problem retrieving $_POST values

2007-11-13 Thread chris smith
On Nov 13, 2007 7:10 PM, Jon Westcot [EMAIL PROTECTED] wrote: Hi Chris: Exactly as you have there. print_r($_POST); will show you everything. Here's a section of what comes back when I do this: [mls] = 1234567 [property_address] = Main St [city_arr] = Array

Re: [PHP] Need a hint how to track an error

2007-11-12 Thread chris smith
On Nov 12, 2007 7:38 PM, Ronald Wiplinger [EMAIL PROTECTED] wrote: Chris wrote: Ronald Wiplinger wrote: My php program is working with Firefox, but not with Internet Explorer. Nothing to do with php, your problem is javascript. Is there a tool to find the problem? For IE, try

[PHP] Re: [PHP-DB] Re: MySQL Identifying worst-performing codes

2007-11-08 Thread chris smith
On Nov 9, 2007 1:18 AM, Colin Guthrie [EMAIL PROTECTED] wrote: Lasitha Alawatta wrote: There is a tool call idera (SQL diagnostic manager). Basically it is a performance monitoring and diagnostics tool. It has a feature; Identifying of worst-performing codes – Identifies

Re: [PHP] Recommend a wiki?

2007-11-08 Thread chris smith
On Nov 9, 2007 8:02 AM, Skip Evans [EMAIL PROTECTED] wrote: Hey, Anyone want to recommend a wiki package they use to document PHP code projects, libraries, etc, they are happy with? I quite like Doku (http://wiki.splitbrain.org/wiki:dokuwiki). -- Postgresql php tutorials

Re: [PHP] mail() silly question

2007-09-01 Thread chris smith
On 9/1/07, Rodrigo Poblanno Balp [EMAIL PROTECTED] wrote: I have a question that might be too silly for those of you who are PHP gurus. Here it comes: I had a mail (specifically in the headers) function call like this: $header = ; $header .= 'From: [EMAIL PROTECTED]; $header .=

Re: [PHP] How to pass connection as global variable ?

2007-07-11 Thread chris smith
On 7/11/07, clive [EMAIL PROTECTED] wrote: Hi Chris, I recreated a new connection in faq.php and it's working now. I had the impression that 1 connection could last during a user session, but apparently a user session may need many connections. Thanks again, Cor Have a read on

Re: [PHP] linking to an image with document_root

2007-06-01 Thread chris smith
On 6/2/07, Richard Lynch [EMAIL PROTECTED] wrote: On Fri, June 1, 2007 3:16 am, blueboy wrote: May be a stupid question but can I link to images with doscument root $img_url= $_SERVER['DOCUMENT_ROOT'].'/images/holder.gif'; echo img src=\$img_url\ width=\250\ height=\163\/; I am certain

Re: [PHP] Find MAC Address in PHP

2007-04-24 Thread chris smith
On 4/24/07, Tijnema ! [EMAIL PROTECTED] wrote: On 4/24/07, Davi [EMAIL PROTECTED] wrote: Em Terça 24 Abril 2007 10:07, Tijnema ! escreveu: On 4/23/07, Davi [EMAIL PROTECTED] wrote: Em Domingo 22 Abril 2007 03:12, Richard Lynch escreveu: On Fri, April 20, 2007 3:00 pm, Nathaniel Hall

Re: [PHP] Find MAC Address in PHP

2007-04-24 Thread chris smith
On 4/25/07, Nathaniel Hall [EMAIL PROTECTED] wrote: Davi wrote: Em Domingo 22 Abril 2007 03:12, Richard Lynch escreveu: On Fri, April 20, 2007 3:00 pm, Nathaniel Hall wrote: ?php $MAC = system(arp 192.168.200.254); echo $MAC; ? does not give me any output. I have copied arp to a place

Re: [PHP] PhpMyAdmin slow on windows but fast on linux

2007-04-22 Thread chris smith
On 4/23/07, Don Don [EMAIL PROTECTED] wrote: Hi all how can i make my phpmyadmin run fast on windows ? I installed phpmyadmin on a linux and windows machines, but the windows version runs (executes) too slow, i.e. it takes to long for a page to be loaded, while it take less that 3 secs for

Re: [PHP] Zend Guard Performance Problem

2007-03-28 Thread chris smith
On 3/28/07, Sancar Saran [EMAIL PROTECTED] wrote: On Wednesday 28 March 2007 11:36, Chris wrote: Sancar Saran wrote: Hi, Recently we bought Zend Guard and because of Zend encoder we have to use another Opcode cacher other than APC. After searching net I found eAccelerator. After

Re: [PHP] where match question

2007-01-23 Thread chris smith
On 1/23/07, Németh Zoltán [EMAIL PROTECTED] wrote: On h, 2007-01-22 at 22:53 -0800, Jim Lucas wrote: Don wrote: I have a db field that contains zip codes separated by comas. I am trying to get php to return all of the rows that contain a particular zip code. $query = SELECT *

Re: [PHP] where match question

2007-01-23 Thread chris smith
On 1/23/07, Jim Lucas [EMAIL PROTECTED] wrote: Németh Zoltán wrote: On k, 2007-01-23 at 19:46 +1100, chris smith wrote: On 1/23/07, Németh Zoltán [EMAIL PROTECTED] wrote: On h, 2007-01-22 at 22:53 -0800, Jim Lucas wrote: Don wrote: I have a db field that contains zip codes separated

Re: [PHP] How to Separate PHP Errors to a file different than Apache Errors

2006-12-22 Thread chris smith
On 12/23/06, Shanon Swafford [EMAIL PROTECTED] wrote: Hi Guys, I just cut my website over to Apache2 and PHP5 on FC5. So now I'm clean up all the PHP Notices. Does anybody know the config directives I can put in my /etc/php.ini or etc/httpd/conf.d/php.conf or /etc/httpd/conf/httpd.conf so

Re: [PHP] random selection from each subfolder

2006-12-21 Thread chris smith
On 12/22/06, Steven Macintyre [EMAIL PROTECTED] wrote: Ok ... previous problem sorted ... now onto the next ... The client wants the following; A scroll bar with 3 random thumbs from each subdirectory in the /images/ folder I was thinking ... Going into each folder, getting files, pushing

Re: [PHP] Shopping Cart

2006-10-28 Thread chris smith
I don't appreciate being scolded. Spend some time on the list and see how many times this question (or type of question) gets asked and how many people actually do *some* sort of work for themselves and you'll appreciate why people ask this straight away. If you had said I found product X Y

Re: [PHP] User question for PHP

2006-10-20 Thread chris smith
On 10/20/06, Ivo F.A.C. Fokkema [EMAIL PROTECTED] wrote: On Fri, 20 Oct 2006 15:49:14 +1000, Chris wrote: Andy Hultgren wrote: To whoever was asking this (sorry didn't see the original email): Is it possible to have a PHP script execute as the user of the domain instead of the webserver?

Re: [PHP] User question for PHP

2006-10-20 Thread chris smith
On 10/21/06, Ivo F.A.C. Fokkema [EMAIL PROTECTED] wrote: On Fri, 20 Oct 2006 23:24:14 +1000, chris smith wrote: On 10/20/06, Ivo F.A.C. Fokkema [EMAIL PROTECTED] wrote: On Fri, 20 Oct 2006 15:49:14 +1000, Chris wrote: Andy Hultgren wrote: To whoever was asking this (sorry didn't see

Re: [PHP] User question for PHP

2006-10-20 Thread chris smith
On 10/21/06, Jochem Maas [EMAIL PROTECTED] wrote: chris smith wrote: On 10/21/06, Ivo F.A.C. Fokkema [EMAIL PROTECTED] wrote: On Fri, 20 Oct 2006 23:24:14 +1000, chris smith wrote: On 10/20/06, Ivo F.A.C. Fokkema [EMAIL PROTECTED] wrote: To my experience, apache (with PHP running

Re: [PHP] syntax error help

2006-08-20 Thread chris smith
On 8/20/06, Bigmark [EMAIL PROTECTED] wrote: Can anyone tell me why this works on my localhost but gets an error on my server: ?php $sql = SELECT COUNT(*) FROM leaderboard WHERE points =( SELECT points FROM leaderboard WHERE username= '$username' ); $result = mysql_query( $sql ) or die (

Re: [PHP] active directory and PHP

2006-08-17 Thread chris smith
On 8/17/06, Alain Roger [EMAIL PROTECTED] wrote: Hi, I'm new to PHP, so sorry if my question looks like stupid. I have a web application which use authorization and authentication process to log-in. I would like to know if it exists a way to synchronize the authentication with our Active

Re: [PHP] Image Destroy

2006-08-15 Thread chris smith
On 8/15/06, Tom Chubb [EMAIL PROTECTED] wrote: I know this will be really simple, but I'm struggling to get my head round the use of imagedestroy() I have some code which uploads an image, resizes to create a smaller image and thumbnail then deletes the source image. My question is which images

Re: [PHP] Image Destroy

2006-08-15 Thread chris smith
On 8/15/06, chris smith [EMAIL PROTECTED] wrote: On 8/15/06, Tom Chubb [EMAIL PROTECTED] wrote: I know this will be really simple, but I'm struggling to get my head round the use of imagedestroy() I have some code which uploads an image, resizes to create a smaller image and thumbnail

Re: [PHP] Upload files problem with IIS server

2006-08-04 Thread chris smith
On 8/5/06, Mace Eliason [EMAIL PROTECTED] wrote: Hi, I am having problems with uploading files to a windows server using php. I have used the same script on other server with no problems. From what I can tell this new server is running windows with IIS. I think the problem is with the path.

Re: [PHP] memory leak - how to find it?

2006-07-31 Thread chris smith
On 7/31/06, Robin Getz [EMAIL PROTECTED] wrote: I am trying to debug a php script that I downloaded, which has a memory leak in it. I was looking for a way to find what variables were in php's memory, and what size, they were, but I couldn't find anything? The script is a off-line wiki

Re: [PHP] Nested foreach statement

2006-07-31 Thread chris smith
foreach($_POST['reporton_company'] as $cmp_ind =$arrayd_cmp_id) { foreach($_POST['report_period'] as $rep_ind =$arrayd_per_id) { foreach($_POST['questions_groups'] as $group_ind = $arrayd_group_no) { mysql_select_db($database_name, $dname); Why

Re: [PHP] Class ADODB - Method GenID() in MySQL

2006-07-19 Thread chris smith
On 7/19/06, Renne Rocha [EMAIL PROTECTED] wrote: Hello, I am using the ADODB class to connect to a MySQL server. I am trying to generate an ID with the method GenID(), but when I tried this: $id = $db-GenID('table'); The value of $id is equal to zero. I know that MySQL doesn't use

Re: [PHP] require_once and E_WARNING?

2006-07-06 Thread chris smith
On 7/6/06, Martin Marques martin@bugs.unl.edu.ar wrote: On Wed, 5 Jul 2006, [EMAIL PROTECTED] wrote: Hello all, According to the PHP Manual, when require or require_once failes, an E_ERROR is triggered: require() and include() are identical in every way except how they handle failure.

Re: [PHP] Job Opportunities in Web Design company

2006-07-02 Thread chris smith
On 7/2/06, Kevin Waterson [EMAIL PROTECTED] wrote: This one time, at band camp, tedd [EMAIL PROTECTED] wrote: I certainly could have designed/coded a better page, and site, than that -- does that count? My advice, if you're looking for qualified and experienced help, then reflect same in

Re: [PHP] IMAGECOPYRESIZED(); DOESN'T WORK...

2006-07-01 Thread chris smith
On 7/1/06, BBC [EMAIL PROTECTED] wrote: I thought I have typed this function correctly, and I didn't know why my browser couldn't run these script : ?php $filename = 'test.jpg'; $percent = 0.5; header('Content-type: image/jpeg'); list($width, $height) = getimagesize($filename); $newwidth =

Re: [PHP] ONE PAGE CONNECTS MANY DATABASE

2006-07-01 Thread chris smith
On 7/1/06, BBC [EMAIL PROTECTED] wrote: Yes I'm using MySQL and the DataBases I mean are in different servers but the problem is I don't know how to set the host. All input will be very helpful... Read the documentation, it's all there. -- Postgresql php tutorials

Re: [PHP] Quick Question re: Windows/Linux PHP

2006-07-01 Thread chris smith
On 7/1/06, Beauford [EMAIL PROTECTED] wrote: Hi, I'm just curious, because I come across this from time to time. Why does the code below work on Windows and not on Linux. PHP is 5.0 on Linux and 4.4 on Windows (still can't get 5 on Windows). The code at the very bottom is how I got it to work

Re: [PHP] global class instance

2006-07-01 Thread chris smith
On 7/1/06, sempsteen [EMAIL PROTECTED] wrote: hi all, i wonder if there is a way of creating an instance of a class and reach it direcly from any scope in PHP4. basically what i want is: class a { function print() { echo 'sth'; } } $a = new a(); and use this a instance from

Re: [PHP] global class instance

2006-07-01 Thread chris smith
On 7/1/06, chris smith [EMAIL PROTECTED] wrote: On 7/1/06, sempsteen [EMAIL PROTECTED] wrote: hi all, i wonder if there is a way of creating an instance of a class and reach it direcly from any scope in PHP4. basically what i want is: class a { function print() { echo 'sth

Re: [PHP] mysqli_stmt::bind_param(), Number of variables doesn't match number of parameters in prepared statement

2006-06-30 Thread chris smith
On 7/1/06, gg15 [EMAIL PROTECTED] wrote: I wanted to use the prepared statements of mysqli, but the following problem occured: If I just use one parameter everything works fine $prep = $this-mysqli-prepare('INSERT INTO guestbook (Von, Datum) VALUES (?, NOW())'); $prep-bind_param('s',

Re: [PHP] Controlling a scanner with PHP

2006-06-27 Thread chris smith
On 6/27/06, George Pitcher [EMAIL PROTECTED] wrote: Hi, I have been asked to look at extending one of my CMS systems to incorporate integration to a library management system, as well as LDAP and Active Directory. The requirement also asks for scanning and OCR of documents to be controlled by

Re: [PHP] FTP Problems

2006-06-27 Thread chris smith
On 6/27/06, James Nunnerley [EMAIL PROTECTED] wrote: I'm trying to create some functionality which requires FTPing onto another server, using the php functions. Doing the following comes up with a successful login, but cannot display the current directory; yet when I FTP directory from the

Re: [PHP] GD problems

2006-06-23 Thread chris smith
On 6/24/06, Beauford [EMAIL PROTECTED] wrote: Here's something else I just noticed. When I run the script below in Windows it works fine, in Linux I get this error: Fatal error: Call to undefined function bcmod() in /usr/local/apache/htdocs/home/cap.php on line 62 David told you about this

Re: [PHP] Extracting XMP tags from pictures

2006-06-23 Thread chris smith
On 6/24/06, Dotan Cohen [EMAIL PROTECTED] wrote: I have successfully extracted IPTC tags from jpegs, but now that I've switched to F-spot I need to extract XMP data. I have found this: http://www.ozhiker.com/electronics/pjmt/library/documentation/ But I have been so far unable to extract the

Re: [PHP] GD problems

2006-06-23 Thread chris smith
On 6/24/06, Beauford [EMAIL PROTECTED] wrote: Honestly, I've never seen anything so ridiculous. How is one to know that in order to get one program to work you have to install 28 others. I'm not trying to be a smart ass here, but seriously - No where in any documentation I've read does it say I

Re: [PHP] Stream download problem

2006-06-21 Thread chris smith
On 6/21/06, Michael Satterwhite [EMAIL PROTECTED] wrote: Jochem Maas wrote: Michael Satterwhite wrote: Prathaban Mookiah wrote: Micheal, I ran into this problem too. A easy workaround is to right click and choose 'save as' which worked for me. I wish that would work. The URL is along the

Re: [PHP] Need to recompile php 4.3.4

2006-06-16 Thread chris smith
On 6/17/06, Mauricio Pellegrini [EMAIL PROTECTED] wrote: Hi , In order to enable bcmath I need to recompile php 4.3.4 on suse 8.2. but , I would like to preserve the actual installation just in case anything goes wrong ( as this is my production server) What files should I backup / restore if

Re: [PHP] Session puzzle... / why no new session?

2006-06-09 Thread chris smith
On 6/10/06, Ryan A [EMAIL PROTECTED] wrote: Hi, I am working on a very simple script, basically adding features to an older script, I'll write down the main parts: ?php ini_set('session.name', 'COSTREAM_SESSION'); session_start(); ## authenticate user code comes here ## log the user

Re: [PHP] Tables vs. databases

2006-06-09 Thread chris smith
On 6/10/06, Antonio Bassinger [EMAIL PROTECTED] wrote: Hi gang, Situation: I've a HTTP server. I intend to run a file upload service. There could be up to 1 subscribers. Each saving files up to 10 MB. I made a proof-of-concept service using PHP MySQL, where there is a single database,

Re: [PHP] Restrict uploaded scripts

2006-06-08 Thread chris smith
On 6/8/06, Mathias Bundgaard Svesson [EMAIL PROTECTED] wrote: Hi! I'm trying to create a CMS where it should be posible to upload script modules. Those modules should mostly be made by myself, but it is posible for others to create scripts too. My question is, is it posible to restrict the

Re: [PHP] ADODB store session to database

2006-06-07 Thread chris smith
On 6/7/06, weetat [EMAIL PROTECTED] wrote: Hi all , I am having problem in store session in the database . Below is the example code from code. Ask the adodb guys. http://adodb.sourceforge.net/#mail -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List

Re: [PHP] better way to create custom text file from query results?

2006-06-07 Thread chris smith
On 6/7/06, Ben Liu [EMAIL PROTECTED] wrote: Hello All, snip It seems that there has to be a better way of doing this. Can the $_POST superglobal be manipulated in this way: foreach ($_POST as $fieldname) ? Yes, that will work. If in doubt give something a try. :) -- Postgresql php

Re: [PHP] Re: Retrieving Content

2006-06-03 Thread chris smith
On 6/3/06, Adam Zey [EMAIL PROTECTED] wrote: Rodrigo de Oliveira Costa wrote: I just discovered the problem I have to retrieve the output of the site and not the url since its dynamic. Ca I do it like retrieve the output of this url: www.tryout.com/1/2/ And of course store it on a

Re: [PHP] mail function in 4.2.2

2006-06-01 Thread chris smith
On 6/1/06, Aaron Todd [EMAIL PROTECTED] wrote: I am working with a server that has version 4.2.2 on it. I know...I know...its old. Its my ISPs server so I don't have too much control over it. Anyway, I am seeing a problem where when I use the mail function to send out an email only some of

Re: [PHP] $_FILES doesn't work but $_POST works

2006-05-31 Thread chris smith
On 5/31/06, kartikay malhotra [EMAIL PROTECTED] wrote: Thanks for your replies. 1. Did you put the enctype=multipart/form-data into the FORM tag? Ans: I do not have a form! I'm using a gateway utility to upload files From documentation of Mbuni MMS gateway: post-url Response content is

Re: [PHP] how include works?

2006-05-30 Thread chris smith
On 5/30/06, Arno Kuhl [EMAIL PROTECTED] wrote: -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: 30 May 2006 06:11 To: Mindaugas L Cc: php-general@lists.php.net Subject: Re: [PHP] how include works? On Tue, May 23, 2006 6:19 pm, Mindaugas L wrote: can anybody

Re: [PHP] Upload files problems

2006-05-26 Thread chris smith
On 5/27/06, Ing. Tomás Liendo [EMAIL PROTECTED] wrote: My host uses safe mode... What other thing can I do? Some other method exists to send files besides POST method? ftp? You haven't solved your problem which actually has nothing to do with file uploading (460k is nothing and should upload

Re: [PHP] Monitoring Remote Server Services using php !!!

2006-05-25 Thread chris smith
On 5/25/06, Phil Martin [EMAIL PROTECTED] wrote: Hi everybody, I'm new to the list and also new to php, I hope I can learn many things from here. My first doubt is the following: I'm trying to create a small monitor system, just to suit my needs in monitoring some services in my

Re: [PHP] Serialize

2006-05-24 Thread chris smith
On 5/24/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, Is a serialized array a safe string to insert into a mysql text field? Or is a function such as mysql_real_escape_string always needed? *Always* escape your data. What if your array contains a quote? -- Postgresql php tutorials

Re: [PHP] One works, but the other doesn't

2006-05-23 Thread chris smith
On 5/23/06, Jonas Rosling [EMAIL PROTECTED] wrote: I find this problem very strange. I've got two parts of code (allmost the same) in different TD's with vars and arrays (with same name) but it's only the top code that gives result. I've allso tryied to rename the vars and TD's in the bottom

Re: [PHP] Can a script run twice?

2006-05-23 Thread chris smith
On 5/23/06, Lester Caine [EMAIL PROTECTED] wrote: I'm having very occasional problems with my PHP5 applications which only seem to be explained if the script is run twice. Example - page has 'Add Ticket' button, which adds a record and marks it as being processed by the location that created

Re: [PHP] One works, but the other doesn't

2006-05-23 Thread chris smith
On 5/23/06, Jonas Rosling [EMAIL PROTECTED] wrote: -Ursprungligt meddelande- Från: chris smith [mailto:[EMAIL PROTECTED] Skickat: den 23 maj 2006 13:38 Till: Jonas Rosling Kopia: PHP List Ämne: Re: [PHP] One works, but the other doesn't On 5/23/06, Jonas Rosling [EMAIL PROTECTED] wrote

Re: [PHP] One works, but the other doesn't

2006-05-23 Thread chris smith
On 5/23/06, Jonas Rosling [EMAIL PROTECTED] wrote: -Ursprungligt meddelande- Från: chris smith [mailto:[EMAIL PROTECTED] Skickat: den 23 maj 2006 14:13 Till: Jonas Rosling Kopia: PHP List Ämne: Re: [PHP] One works, but the other doesn't On 5/23/06, Jonas Rosling [EMAIL PROTECTED

Re: [PHP] getRow method of DB_Common class

2006-05-22 Thread chris smith
On 5/22/06, Nirmalya Lahiri [EMAIL PROTECTED] wrote: Dear all, I am using getRow() method ob DB_Common class to get a single row from a table. As per document http://pear.php.net/manual/en/package.database.db.db-common.getrow.php this method return a single dimension array. But when I am

Re: [PHP] Cookies https

2006-05-22 Thread chris smith
On 5/22/06, Michael Satterwhite [EMAIL PROTECTED] wrote: I have a site that is using a shared ssl certificate. When running on the site, the host is of the form host.com. When running in ssl mode, the domain is of the form host.certhost.com. ping shows that both resolve to the same ip address.

Re: [PHP] HELP - Clean and simple

2006-05-22 Thread chris smith
On 5/22/06, Jonas Rosling [EMAIL PROTECTED] wrote: I don't know if I'm explaining things in a difficult way or not. But I'm gonna try to explaine what I want very clean and simple. 1. I wan't to check if an array is decleard or not, refering to a value in a row/field ($row[0]) 2. If it's not

Re: [PHP] Captcha v1.0 (http://www.php.meezerk.com/index.php?page=captcha)

2006-05-21 Thread chris smith
On 5/21/06, Beauford [EMAIL PROTECTED] wrote: The following are the errors I am getting - quite lengthy. Thanks $ make gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/freetype2 -g -O2 -MT gdft.lo -MD -MP -MF .deps/gdft.Tpo -c gdft.c -fPIC -DPIC -o .libs/gdft.lo gdft.c:1366:35:

Re: [PHP] Captcha v1.0 (http://www.php.meezerk.com/index.php?page=captcha)

2006-05-20 Thread chris smith
On 5/21/06, Beauford [EMAIL PROTECTED] wrote: Hi, I am trying to get a program, Captcha v1.0, working and not having much luck. The program says I need PHP version 4.3.10 or later or PHP version 5 and GD Library version 2.0 or later with JPEG support. I know I have PHP 5, but not sure about

Re: [PHP] [Repost] Getting rid of Web page has expired (POSTDATAerror)

2006-05-18 Thread chris smith
On 5/19/06, Nicolas Verhaeghe [EMAIL PROTECTED] wrote: I have searched and not found... http://marc.theaimsgroup.com/?t=10980586931r=1w=2 http://marc.theaimsgroup.com/?t=10751522972r=1w=2 http://marc.theaimsgroup.com/?t=10620110712r=1w=2 -- Postgresql php tutorials

Re: [PHP] Perl PHP output format mismatching

2006-05-15 Thread chris smith
On 5/15/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello, I'm currently writing a PHP page, which uses a small Perl script. But I encounter an annoying problem with endline character. A small example : $perl = new Perl(); $perl-eval('print toto\ntata'); In this configuration, the HTML

Re: [PHP] php-cli and daemon

2006-05-15 Thread chris smith
On 5/14/06, Michelle Konzack [EMAIL PROTECTED] wrote: Hello, I run a webserver which is a frontend for a huge PostgreSQL database. Now I like to code some stand-alone Apps, which can connect to a daemon uploading files and geting infos from the database (NO, the have no right to connect

Re: [PHP] Uploading large files

2006-05-14 Thread chris smith
On 5/14/06, php @ net mines [EMAIL PROTECTED] wrote: I'm building a site which will be hosted on a shared server (hosting company won't change any php.ini settings), and the client wants to upload his clients' data (let's say a zip) so they can loggin and download it from the site. Depends on

Re: [PHP] Is it a bug ?

2006-05-13 Thread chris smith
On 5/14/06, Fourat Zouari [EMAIL PROTECTED] wrote: Code 1 : - var_dump(stream_get_contents($rr)); - Output 1 - string(185) HTTP/1.1 202 Accepted Server: Apache2 Content-Length: 24 Connection: close Content-type: text/html

Re: [PHP] MySQL - HEAP table type

2006-05-13 Thread chris smith
On 5/14/06, Martin Zvarík [EMAIL PROTECTED] wrote: Hi, I am sorry for this not being really a PHP question, anyway I use MySQL database, I have a table, which is HEAP (memory) type and I found out I can store only about 22000 entries in it, then when I want to insert new entry it gives me an

Re: [PHP] Failing FastCGI PHP

2006-05-13 Thread chris smith
On 5/14/06, Frank de Bot [EMAIL PROTECTED] wrote: I'll start by compiling php with --enable-debug At the moment I get backtrace results like this: #0 0x48c7d95b in memcpy () from /usr/lib/libc_r.so.4 #1 0x8977280 in ?? () #2 0x10 in ?? () #3 0x894e500 in ?? () #4 0x894dc00 in ?? () #5

Re: [PHP] METHOD=POST not worikng

2006-05-13 Thread chris smith
On 5/14/06, IraqiGeek [EMAIL PROTECTED] wrote: On Saturday, May 13, 2006 4:59 PM GMT, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: AFAIK it should be working just fine. I'm not aware of POST not working in any circumstance other than PHP not working at all. Can you post your test script? We

Re: [PHP] Security Concerns with Uploaded Images:

2006-05-13 Thread chris smith
On 5/14/06, Nick Wilson [EMAIL PROTECTED] wrote: Hi all, are there any security concerns with uploaded images? My thought is that it wouldnt be too hard to have some kind of script masquerade as a gif file, and perhaps cause damage. I cant find anyway to check a file really is a gif/png/jpg

Re: [PHP] Uploading large files

2006-05-13 Thread chris smith
is there a way to upload large files (e.g. 15mb) without changing the default settings in php.ini***? According to this page: http://www.php.net/manual/en/ini.php#ini.list You can do it with a htaccess file. See comments at the bottom. Preferably by using php, but if not is there another web

Re: [PHP] displaying result problem

2006-05-12 Thread chris smith
On 5/12/06, adi zebic [EMAIL PROTECTED] wrote: Hi, I have little problem while displaying a result from one simple querry. If i insert values into mysql DB in following order (12, 3, 14, 4 ) I allways have ( 12, 14, 3, 4 ) displaying when query the DB. (same with letters - dcba - abcd etc) I

Re: [PHP] suExec problem

2006-05-12 Thread chris smith
On 5/12/06, Laszlo Nagy [EMAIL PROTECTED] wrote: Hello, I have a SuSe 9.3 server, with apache version 2.0.53 and suexec configured. It was working for months. One day, it stopped working for ALL virtual hosts. I might have misconfigured something, but I'm not sure what is the problem. When I

Re: [PHP] php.dev, network timeout??

2006-05-12 Thread chris smith
On 5/13/06, Jon [EMAIL PROTECTED] wrote: This isn't strictly a php question. Its actually a question about the mailing lists in general. I know I must be doing something really stupid but I seem to be having a lot of problems with network timeouts while browsing the mailing lists. The dev

Re: [PHP] Failing FastCGI PHP

2006-05-11 Thread chris smith
On 5/11/06, Frank de Bot [EMAIL PROTECTED] wrote: Hi, I have made a apache setup with PHP running as FastCGI (apache 2.0.58, mod_fastcgi 2.4.2, php 5.1.4) PHP is called directly as FastCGI without a wrapper script. On a given moment the PHP FastCGI application reaches dynamicMaxClassProcs.

Re: [PHP] Browser displays blank page, while request still being handled

2006-05-08 Thread chris smith
I'm guessing it's just a timeout issue - maximum execution time exceeded type thing - check your php or apache error logs and see what that tells you.. if nothing shows up, turn log_errors on, restart apache and see what you get. I don't think it's a timeout issue on the server-side, because

Re: [PHP] Browser displays blank page, while request still being handled

2006-05-08 Thread chris smith
We're talking about multiple copy operations. The first one copies 230 files (approx. 40mb) and the second one copies about 2200 files (195mb). Most files are under 400kb a piece. Time how long it takes you to manually copy that amount of data. Tried the flush() calls in between different

Re: [PHP] adding objects to spl.php because it doesn't appear to be there

2006-05-06 Thread chris smith
On 5/6/06, jonathan [EMAIL PROTECTED] wrote: a sample phpunit. the issue is that this class doesn't seem to be in my spl (which I don't really use and am not sure how to upgrade). If it's a sample, where does it come from? Best ask those folk, they will know how to help you. -- Postgresql

Re: [PHP] List of sessions

2006-05-06 Thread chris smith
On 5/7/06, tedd [EMAIL PROTECTED] wrote: Hi: While we're on the subject of listing sessions, what does the following code do? session_start(); $path = ini_get('session.save_path'); $handle = dir($path); while ($filename = $handle-read()) { if (substr($filename, 0, 5) ==

Re: [PHP] set_error_handler() fails

2006-05-05 Thread chris smith
On 5/5/06, icy [EMAIL PROTECTED] wrote: Richard Lynch wrote: It's possible that you have mistaken whatever set_error_handler returns for no previous error handler for NULL... Are you using === NULL or is_null() to test? If not, I suspect it's really returning FALSE or '' and what you think

Re: [PHP] adding objects to spl.php because it doesn't appear to be there

2006-05-05 Thread chris smith
On 5/6/06, jonathan [EMAIL PROTECTED] wrote: I'm not really sure where to post this but when I run phpunit, it is throwing an error because Class 'InvalidArgumentException' not found. It looks like this is supposed to be in spl.php but I'm not sure how to add this. Is it possible to just

Re: [PHP] Avoiding user refresh of pages with forms

2006-05-04 Thread chris smith
Also, with regards to sending success/failure messages across the redirection of your forms, I'd recommend considering sessions for passing the data. It keeps your URLs clean, and allows you to send complex data a bit easier (IMHO). For example if a user makes an error on a few different form

Re: [PHP] Re: php mysql problem

2006-05-03 Thread chris smith
On 5/3/06, Richard Lynch [EMAIL PROTECTED] wrote: On Tue, May 2, 2006 7:22 am, chris smith wrote: On 5/2/06, Ross [EMAIL PROTECTED] wrote: This is my database now...I will use the item_id for the order but what if I want to change item_id 3 to item id 1? How can I push all the items down

  1   2   3   >