Re: [PHP] Offline PDO documentation?

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

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] 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: > > $command_line = "/usr/local/imagemagick/bin/convert > /v

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] 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] 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] sprintf thousand separator.

2009-02-11 Thread chris smith
2009/2/11 João Cândido de Souza Neto : > 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 http://www.desig

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

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: http://www.php

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. > > > > > > > > $q

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:

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 eAccelera

[PHP] Comments and performance

2005-03-05 Thread Chris Smith
comments or interpreted on every execution? I am using PHP 5.0.3 on Apache on Windows. Many Thanks, Chris Smith Ninja Labs http://www.ninjalabs.co.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] cache engine

2005-03-05 Thread Chris Smith
gated them thoroughly ( http://pear.php.net/ ) Caching brings all sorts of wierdness out in applications due to multiple states of data being present in different layers in a system, so be careful. Hope this helps, Chris Smith Ninja Labs http://www.ninjalabs.co.uk/ -- PHP General Mailing List (http://w

Re: [PHP] warning & question about mysql sessions & concurrency

2005-03-06 Thread Chris Smith
as the two technologies are rarely used for pushing data around on big systems (this is generally Java/Postgres' domain). I ONLY use PHP/MySQL for knocking up quick web apps to fart out content - nothing serious because it's simply not suited. Cheers, Chris Smith Ninja Labs http://www

Re: [PHP] cache engine

2005-03-06 Thread Chris Smith
tively. The shm doesn't require a disk head to move around to get and save data to cache (majority writes if it's caching to disk as reads get done from kernel cache) which takes time. shm will hold out a lot longer than files (I know from experience with SVR4 many eo

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]"; > $heade

[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 – > > > > Ide

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 http://www

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? > >

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 > [cit

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. > >

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

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

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

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] 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, Na

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: >> >>> >>> does not give me any >>> output. I have copied arp to a place that the apache user can execute >>> fr

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 ""; > > I am certain the path is correct, > > If not what

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] 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 ser

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', $this-

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 : and the error output is : "call to undefined function" btw, I'm using PHP 4.1.1. Is there any possible that my PHP version can not run those scri

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 http://www.designmagick.c

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: > > clas

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 sam

Re: [PHP] require_once and E_WARNING?

2006-07-06 Thread chris smith
On 7/6/06, Martin Marques 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. include() produces a

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 s

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 conver

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] 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] 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 cr

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 Dire

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: =( SELECT points FROM leaderboard WHERE username= '$username' )"; $result = mysql_query( $sql ) or die ( mysql_error() ); $rank = mysql_result( $result, 0 ); echo $ran

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 th

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: >

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]>

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] 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 i

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 th

Re: [PHP] mysql help..

2006-02-24 Thread chris smith
Ask the open-source project for help. They will be able to answer your questions better than we can. On 2/25/06, ganu ullu <[EMAIL PROTECTED]> wrote: > > Hi all, > > I installed a opensource php project, and now is working fine for me. > Now that project has some 40-50 MySQL tables.. > > now I wan

Re: [PHP] email to db

2006-02-24 Thread chris smith
On 2/25/06, Mark <[EMAIL PROTECTED]> wrote: > Does anyone know if its possible or how difficult it would be to have a user > send an email from outlook express to a websites mysql database and update > records. You could write a script to parse the email and do the update. It would come in on 'std

Re: [PHP] Re: How do I read Exif data without a file?

2006-02-25 Thread chris smith
> > I have some images in a database -- I mean, the actual data. There are no > > files. > > > > I want to read Exif data for these images, but the read_exif_data() > > function wants a file. I suppose I could write the images to temp files, > > but that's a bit wasteful. And where would I write th

Re: [PHP] Linux distributions and tools for Linux/Apache/PHP/MySQL dev

2006-02-25 Thread chris smith
On 2/26/06, Chris Lott <[EMAIL PROTECTED]> wrote: > I'm making the switch from Windows to Linux for mydesktop and > development environment and would greatly appreciate suggestions for > development tools on this platform. Ubuntu seems to be getting all the > press, but suggestions about Linux dist

Re: [PHP] Re: How do I read Exif data without a file?

2006-02-25 Thread chris smith
> >> Answering myself: I solved this with tempnam(). I'm not completely sure > >> about the portability, and of course it's a waste to write a file at all. > >> And it could pose a security problem as well. Ho hum. > > > > You only need to do it once - then store it back in the database. That > > i

Re: [PHP] not sure, what now

2006-02-25 Thread chris smith
On 2/26/06, Schalk <[EMAIL PROTECTED]> wrote: > Greetings All, > > I am pretty new to PHP and are tasked to move a clients site from: > > www.domain.com/somedirectory/home.php to www.home.php If you're moving a clients site wouldn't your work be a better place to ask? They will have processes etc

Re: [PHP] defined

2006-02-25 Thread chris smith
On 2/26/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I'm having kind of a weird problem I want $MailSubject to contain a the value > "prayer" unless I tell it other wise. > > // on a form processor. > $MailSubject = "Praise"; > include_once("mailit.php"); > > // then in mailit.php > include

Re: [PHP] How can I make postgre execute file with SQL code, on windows platform

2006-02-25 Thread chris smith
On 2/26/06, Bogdan Ribic <[EMAIL PROTECTED]> wrote: > Hi all, > >I need to synchronize two postgresql servers, but synchronization is > one-directional (ie, data from one computer needs to be copied to > another). Basically, I want the target computer to drop the schema > "public" and then re-c

Re: [PHP] Error compiling php 5.1.2

2006-02-25 Thread chris smith
On 2/26/06, Paul Reinheimer <[EMAIL PROTECTED]> wrote: > Hi, I'm trying to compile PHP 5.1.2. > My ./configure is: > > './configure' '--with-mysql=/usr/local/mysql' > '--with-apxs=/etc/httpd/bin/apxs' '--with-gd' '--with-png' > '--with-zlib-dir=/root/zlib-1.2.2' '--enable-gd-native-ttf' > '--with-t

Re: [PHP] not sure, what now

2006-02-25 Thread chris smith
> Where is Open_basedir set? In a global php setting or can it be done > site by site? And if so, what is the most logical place to put the file > that controls this? It's set by apache and unless you have root access you don't have any control over it. Re-read the error message, php tells you al

Re: [PHP] HTML_QuickForm

2006-02-25 Thread chris smith
On 2/26/06, Atif Khan <[EMAIL PROTECTED]> wrote: > Hello there, I am having an issue with HTML_QuickForm. > When I try to send the form to another page, it does not > seem to validate the form. > > Any suggestions. > > > > // Load the main class > > require_once 'HTML/QuickForm.php'; > > // Instant

Re: [PHP] How can I make postgre execute file with SQL code, on windows platform

2006-02-26 Thread chris smith
>Goal was to get postgre to execute/import an sql dump file, ie not to > write import-export functionality myself. In the end, I used piping, > something like this: > > system("type $filename | \"C:\Program > Files\PostgreSQL\8.1\bin\psql.exe\" -h localhost -p 5432 X6tmp > \"postgres\""); > >

Re: [PHP] Cookies in non-frame sites

2006-02-26 Thread chris smith
> Most sites today seems to be based on this style: > > include(top); > include(current_page); > include(bottom); > > If one wants to set cookies from current_page, how should that be handled > with as clean source as possible? >From the php manual: Like other headers, cookies must be sent befor

Re: [PHP] Re: Parsing PHP variables in XML document

2006-02-26 Thread chris smith
On 2/26/06, Bogdan Ribic <[EMAIL PROTECTED]> wrote: > Hmmm, come to think of it, it would only work if short_open_tags ini > directive is turned OFF, which in most cases it won't be :( You can turn it off with a htaccess file. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visi

Re: [PHP] Is it better to return a multi-array, or an array of objects?

2006-03-03 Thread chris smith
On 3/4/06, Daevid Vincent <[EMAIL PROTECTED]> wrote: > I'm building a fairly large project. I've been trying to follow best > practices, but I'm a bit worried about performance. Using PHP 5.1 and mySQL > 5.0. > > I have product and company classes. > > So when a user does a search of the database,

Re: [PHP] LDAP confusion

2006-03-03 Thread chris smith
On 3/4/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > [snip] I vaguely recall you couldn't do an anonymous bind to an active > directory system - you had to properly authenticate before you could do > a search. > > You didn't include the bind stuff so I can't tell if that's the problem > :) > [

Re: [PHP] php/mysql/phpMyAdmin on an iBook?

2006-03-04 Thread chris smith
On 3/5/06, Paul Jinks <[EMAIL PROTECTED]> wrote: > Hi everyone > > I'm thinking of getting an iBook for reasons not really to do with > webbing but really need to do occasional php/mysql stuff to justify the > expense. I believe that they all come with an Apache testing server > installed and wond

Re: [PHP] Prepared statements

2006-03-05 Thread chris smith
> MySQL returns "Column 'auction_house' cannot be null". > Here're some parts of my code: > > --- code --- > > $update = $this->sql->stmt_init(); > $update->prepare("UPDATE auctions SET name=?, auction_house=?, link=?, > prize=?, runtime=?, bids=?, picture=? WHERE link=?"); > $update->bind_param("s

Re: [PHP] help with this error message please

2006-03-05 Thread chris smith
On 3/5/06, Mark <[EMAIL PROTECTED]> wrote: > Can anyone tell me why i am getting this message when trying to login to the > admin section, i am running the script off my local machine. > > Warning: session_register() [function.session-register]: Cannot send session > cookie - headers already sent b

Re: [PHP] Mysql Rows

2006-03-05 Thread chris smith
On 3/6/06, tedd <[EMAIL PROTECTED]> wrote: > R O B said: > > >That Rod guy, he's such a card! I'd add something, but Jay has already > >covered my list in a more recent email than this one to which I'm > >responding :) > > jblanchard (who I think is Rod) said: > > >A SQL question on a PHP mailing l

Re: [PHP] highlight_string()

2006-03-06 Thread chris smith
On 3/6/06, Weber Sites LTD <[EMAIL PROTECTED]> wrote: > The only way I could work around this was to put empty at the > Beginning of the text and now highlight_string() highlights only what > Is inside > > You can see an example of the problematic text in the example > Area of this page : http://

Re: [PHP] Environment Variable

2006-03-08 Thread chris smith
On 3/8/06, steff <[EMAIL PROTECTED]> wrote: > Hello, > > I want to define my own environemnt variable "APPLICATION_ROOT" and be > able to retrieve his value from php. As apache module, cgi, cron and > command line. > > Now i'm just be able to get it from command line. In other > (module,cgi,cron) w

Re: [PHP] highlight_string()

2006-03-10 Thread chris smith
> while(preg_match('%%s', $content, $matches)) { >$size = sizeof($placeholders); >$placeholders[$size] = $matches[1]; >$content = str_replace($matches[0], '%%PLACEHOLDER['.$size.']%%', > $content); > } > > ... other processing here. >

Re: [PHP] dynamic form

2006-03-15 Thread chris smith
On 3/15/06, Mark <[EMAIL PROTECTED]> wrote: > Can anyone help to make this form dynamic, at hte moment a user picks a > round number from 1-22 but if that round is closed then sends them back to > this page. Anyway of making the form show the current round (as in sports > round fixtures) without ad

Re: [PHP] imap_mail_compose not working

2006-03-16 Thread chris smith
On 3/16/06, Karel Kozlik <[EMAIL PROTECTED]> wrote: > > > > What version of imap do you have on both servers? > > > > Maybe one is older and has some bugs that have been fixed. > > > > Hi, > phpinfo on both servers reporting: > IMAP c-Client Version: 2001 > > The strange think is that imap_mail_co

Re: [PHP] Problem

2006-03-16 Thread chris smith
On 3/16/06, Bikram Suri <[EMAIL PROTECTED]> wrote: > Hi, > > I do phpinfo(); and I see the include path set to c:\php5\Pear. I have wamp > installed on my machine but before wamp I had done a standalone installation > of PHP 5 in c:\PHP5 diretory. I have since uninstalled it and deleted the > c:\PH

Re: [PHP] php 5 installation problem

2006-03-17 Thread chris smith
> > > >Is there a drawback to running php5 as CGI? > > > > > > Anthony, > > > > > > I really don't know, because computers are much faster, so > > > there may not be the time lags there were 10 years ago. > > > > > > As I understand CGI, the web server sees that the page is of > > > type .php, star

Re: [PHP] Best practice to set up register_globals

2006-03-17 Thread chris smith
On 3/18/06, Nicolas Verhaeghe <[EMAIL PROTECTED]> wrote: > > > > Curt Zirzow wrote: > > >On Thu, Mar 16, 2006 at 08:46:07PM -0700, Nicolas Verhaeghe wrote: > > > > > >>One of my clients has an os commerce install which requires > >>register_globals to be set to on, for some reason. > >> > >>It is s

Re: [PHP] $_SERVER['PHP_AUTH_USER'] not set

2006-03-17 Thread chris smith
On 3/18/06, Jay Blanchard <[EMAIL PROTECTED]> wrote: > Apache2 > PHP 4.4.n > Suse Linux 10 > > PHP_AUTH_USER is not getting set in the $_SERVER array. Thoughts? It only gets set once you get to a page behind a htpasswd'ed area - it's not in there by default. -- Postgresql & php tutorials http://w

Re: [PHP] SOAP PEAR/NuSOAP

2006-03-20 Thread chris smith
On 3/21/06, T.Lensselink <[EMAIL PROTECTED]> wrote: > I'm working on a small webservice. When started this project i used the > NuSOAP library. And it does the job perfectly. But last weekend i was > playing around with the PEAR::SOAP package. This seems to be a lot more > stable. And for sure a ll

Re: [PHP] NuSOAP - HTTPS

2006-03-21 Thread chris smith
On 3/21/06, Peter Lauri <[EMAIL PROTECTED]> wrote: > Hi, > > I have installed the NuSoap and it works fine with small tests using HTTP. > My real application needs to connect via HTTPS, and it does not work. It > returns error that I need CURL or OpenSSL for it to work with HTTPS. > > I am not an e

Re: [PHP] Howto Execute PHP as script owner/group without CGI?

2006-03-22 Thread chris smith
> I Want to know if it is possible to execute PHP(5) as the owner/group of > the script it self. > > At the moment saved files get owner and group nobody. > When i upload through ftp, it gets the normal owner and group nobody. > > Is there a way that i can set both owner and group to > 'myuser-grou

Re: [PHP] Howto Execute PHP as script owner/group without CGI?

2006-03-22 Thread chris smith
On 3/22/06, Mathijs <[EMAIL PROTECTED]> wrote: > chris smith wrote: > >> I Want to know if it is possible to execute PHP(5) as the owner/group of > >> the script it self. > >> > >> At the moment saved files get owner and group nobody. > >> W

Re: [PHP] Howto Execute PHP as script owner/group without CGI?

2006-03-22 Thread chris smith
On 3/22/06, Mathijs <[EMAIL PROTECTED]> wrote: > chris smith wrote: > >> I Want to know if it is possible to execute PHP(5) as the owner/group of > >> the script it self. > >> > >> At the moment saved files get owner and group nobody. > >> W

Re: [PHP] Howto Execute PHP as script owner/group without CGI?

2006-03-22 Thread chris smith
On 3/22/06, Mathijs <[EMAIL PROTECTED]> wrote: > chris smith wrote: > > On 3/22/06, Mathijs <[EMAIL PROTECTED]> wrote: > >> chris smith wrote: > >>>> I Want to know if it is possible to execute PHP(5) as the owner/group of > >>>> the

Re: [PHP] PHP 4.3.11, question about classes

2006-03-22 Thread chris smith
On 3/22/06, Michael Hulse <[EMAIL PROTECTED]> wrote: > Hi, > > I am just learning about classes. > > My server is running PHP 4.3.11 > > Example code: > > class testing { > var $what; > } > > $linkGenClass = new testing(); > $linkGenClass->what = 'hi'; > echo $linkGenClass->what; > > Why do

Re: [PHP] PHP 4.3.11, question about classes

2006-03-22 Thread chris smith
On 3/22/06, Michael Hulse <[EMAIL PROTECTED]> wrote: > Hi Chris! Thanks for all the great answers, I really appreciate all of > your help. I am browsing the link you gave me now. > > I only have one question: > > On Mar 22, 2006, at 4:09 AM, chris smith wrote: > > You

Re: [PHP] problem

2006-03-22 Thread chris smith
On 3/22/06, Simone O'Brien <[EMAIL PROTECTED]> wrote: > Hi, I have set up a message board and we cannot log out or do anything on the > page at all. We cannot use it at all. > > http://myminiaturegoats.com/forum3/index.php?action=logout;sesc=331181faba9b2783a9506ad21068fb8b > > > > Database

Re: [PHP] Atrributes and NuSOAP

2006-03-23 Thread chris smith
On 3/23/06, Peter Lauri <[EMAIL PROTECTED]> wrote: > Hi, > > I have been trying to find a simple example of how to add attributes to the > requests, but after two days search I can not find an example. The $param is > easy to create if it does not contain any attributes. This is what I want to > cr

Re: [PHP] why is PEAR::DB constantly initting connection?

2006-03-23 Thread chris smith
On 3/23/06, joseph <[EMAIL PROTECTED]> wrote: > bonjour, > > why does my DB object always send INIT DB to mysql server? > > the problem caused by calls like the following -- very simple code, > really may be caused by my PEAR/DB.php wrapper functions (see > below) . evidence is my mysql quer

Re: [PHP] mysql query/$post problem

2006-03-27 Thread chris smith
On 3/27/06, Mark <[EMAIL PROTECTED]> wrote: > I havnt even tried this query but i know its wrong can anyone help! > > > *** > include("header.php"); > include("connect.php"); > > $comp_id = $_SESSION['comp_id']; > $user_id = $_SESSION['user_id']; > > // Grab var

Re: [PHP] How to create RSS feeds with PHP?

2006-03-28 Thread chris smith
On 3/28/06, Merlin <[EMAIL PROTECTED]> wrote: > Hi there, > > I am wondering if there are already tools out there which do > create RSS feeds on the fly with the help of PHP. > > My goal would be to create RSS dynamicly out of a LAMP App. to > syndicate the results. > > Are there any tools you know

Re: [PHP] Problem wih mail() and attachment

2006-03-28 Thread chris smith
On 3/27/06, Dennis N. <[EMAIL PROTECTED]> wrote: > Hello, > > I have some trouble with sending emails with an MS word attachment. I let > fill a word document from my php website. When it is finished with filling > the information, the document is saved on the webserver and the word > application w

Re: [PHP] How to create RSS feeds with PHP?

2006-03-28 Thread chris smith
On 3/28/06, Merlin <[EMAIL PROTECTED]> wrote: > chris smith schrieb: > > On 3/28/06, Merlin <[EMAIL PROTECTED]> wrote: > >> Hi there, > >> > >> I am wondering if there are already tools out there which do > >> create RSS feeds on the fly w

Re: [PHP] How to create RSS feeds with PHP?

2006-03-30 Thread chris smith
On 3/30/06, Merlin <[EMAIL PROTECTED]> wrote: > chris smith schrieb: > > On 3/28/06, Merlin <[EMAIL PROTECTED]> wrote: > >> Hi there, > >> > >> I am wondering if there are already tools out there which do > >> create RSS feeds on the fly w

  1   2   3   >