php-general Digest 22 Feb 2005 10:12:08 -0000 Issue 3300

2005-02-22 Thread php-general-digest-help
php-general Digest 22 Feb 2005 10:12:08 - Issue 3300 Topics (messages 209152 through 209163): Re: Can't load extension (was Re: PHP to C interface?) 209152 by: Richard Lynch 209157 by: N Deepak Re: php request entity body help 209153 by: Richard Lynch Re: Is there

[PHP] Webmail and mime

2005-02-22 Thread Emil
Hi I'm creating a webmail interface for a pop3-server (I know weird to do webmail with pop3, but it's for a running server which I can't control. So pop3 it is and caching the mails in a mysql database). I've implemented the pop3-support myself since the one in www.php.net/imap lacks a lot of

Re: [PHP] Webmail and mime

2005-02-22 Thread Christophe Chisogne
Emil a écrit : I'm creating a webmail interface for a pop3-server Why not use one of the many webmail apps? Ex written in PHP/Perl, with no particular order: Neomail http://neocodesolutions.com/software/neomail/ Openwebmail http://openwebmail.org/ IMP (horde) http://horde.org/imp/ IlohaMail

[PHP] cannot remove cookies

2005-02-22 Thread Bruno Santos
Hello. I'm using 2 cookies to control some user environmente. every time the user logs in, the cookie is set, but when i try to change the value of that cookie, deleting it firts and then setting a new one with another value, when i print the value of that cookie the value is never the new one,

Re: [PHP] Handling of partially completed forms

2005-02-22 Thread Joseph E. Maxwell
OK, I have no desire to re-invent the wheel , if a script exist that is available I'll jump at it, otherwise I'll write the code myself. Failing to find one, I've started on the latter approach. I've written code that places initial data fields into a MySQL database. The next step is to

Re: [PHP] Can't load extension (was Re: PHP to C interface?)

2005-02-22 Thread N Deepak
N Deepak wrote: On Mon, Feb 21, 2005 at 02:08:28PM -0800, Richard Lynch wrote: You have to make install your new .so file to get copied over into your PHP extensions directory, which from the messages seems to be /usr/local/lib/php/extensions/no-debug-non-zts-20020429/ on your system... I'm

[PHP] zend_parse_parameters seg faults on string input.

2005-02-22 Thread N Deepak
Hi all, In the PHP file, I have written: helloworld(hello, world) where helloworld is in an extension. Now, I use zend_parse_parameters() to parse input as follows: char* hstr = NULL, *wstr = NULL; argc = ZEND_NUM_ARGS(); if (zend_parse_parameters(argc TSRMLS_CC, ss, hstr, wstr)

Re: [PHP] Sessions and cookies

2005-02-22 Thread Jochem Maas
Brett Patterson wrote: Well, if you look in your phpinfo() file, you will see a SESSION_TIMEOUT or SESSION_LENGTH value that is something like 18... different for each server. If you hold all your session values in the array, then you can use session_destory(); as long as session_start() is

[PHP] Hi ALL

2005-02-22 Thread Dhanasekar T
hi all, i m new to this group ...now i want to learn php. i want all u r guidence to utilise this group... thanks in advance dhanas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP5 DOM

2005-02-22 Thread Sergio Gorelyshev
Hi to all. I have a problem. I need to glue 2 or more DomDocument? objects to one. After hours of hard coding I've came to the conclusion that there is no possibility to use PHP 5.3.0 to realize it. Is there anybody who could break this conclusion and give me an appropriate solution? P.S. I

Re: [PHP] PHP5 DOM

2005-02-22 Thread Yann Larrivee
Hi Sergio maybe you should have a look at importNode http://ca3.php.net/manual/en/function.dom-domdocument-importnode.php I beleive this is what you need along with Normalize. Good luck. Yann On Tuesday 22 February 2005 06:54, Sergio Gorelyshev wrote: Hi to all. I have a problem. I need to

Re: [PHP] PHP5 DOM

2005-02-22 Thread Sergio Gorelyshev
Sorry. There is a mistake. Hi to all. I have a problem. I need to glue 2 or more DomDocument? objects to one. After hours of hard coding I've came to the conclusion that there is no possibility to use PHP 5.0.3 to realize it. Is there anybody who could break this conclusion and give me an

Re: [PHP] PHP5 DOM

2005-02-22 Thread Sergio Gorelyshev
On Tue, 22 Feb 2005 06:58:12 -0500 Yann Larrivee [EMAIL PROTECTED] wrote: Hi Sergio maybe you should have a look at importNode http://ca3.php.net/manual/en/function.dom-domdocument-importnode.php I've been tried to use this function. There are no results. This function (as well as

[PHP] errors in insert queries

2005-02-22 Thread Bryan Dina
I am having problems making proper insert queries against a MS SQL box when using a Linux server. A little background info, I have had this working correctly for many months. I am running Fedora Core 1, have compiled php 5.0.3 using the FreeTDS v.0.7 driver to access the MS SQL 2000 DBMS, and

Re: [PHP] PHP5 DOM

2005-02-22 Thread Sergio Gorelyshev
On Tue, 22 Feb 2005 15:02:38 +0200 Sergio Gorelyshev [EMAIL PROTECTED] wrote: It's work!!! :-) Thanks. Here is a valid code: ?php $dom = new DomDocument();

Re: [PHP] Hi ALL

2005-02-22 Thread Bret Hughes
On Tue, 2005-02-22 at 05:27, Dhanasekar T wrote: hi all, i m new to this group ...now i want to learn php. i want all u r guidence to utilise this group... thanks in advance dhanas I would start by looking at and dare I say reading the manual at php.net. Then surf around for a beginners

Re: [PHP] errors in insert queries

2005-02-22 Thread Bret Hughes
On Tue, 2005-02-22 at 07:32, Bryan Dina wrote: I am having problems making proper insert queries against a MS SQL box when using a Linux server. A little background info, I have had this working correctly for many months. I am running Fedora Core 1, have compiled php 5.0.3 using the FreeTDS

[PHP] Re: cannot remove cookies

2005-02-22 Thread Jason Barnett
Bruno Santos wrote: Hello. I'm using 2 cookies to control some user environmente. every time the user logs in, the cookie is set, but when i try to change the value of that cookie, deleting it firts and then setting a new one with another value, when i print the value of that cookie the

[PHP] [HAB] str_replace

2005-02-22 Thread OOzy Pal
Dears I am trying replace anything between '{!' and '!}' i.e {!A!} and {!B!} and {!ABC!} with XYZ. I tried the following but no help. Can anyone help? $this-template=str_replace({!*!},XYZ,$this-template); Thank you Regards, OOzy What is the purpose of life? Regards, OOzy What is

[PHP] resetting pg_fetch_array

2005-02-22 Thread Dave O
Hi all. I'm been trying the following code for the past day or so and I can't seem to get around it. I'm issuing a query to pgsql and iterating through the results twice in order to facilitate the separation of shipment history. Below is the simplest example I can come up with. The

[PHP] Writing PNG Images to File from Command Line

2005-02-22 Thread dpgirago
Howdy, Because of some latency issues in the display of dynamically created PNG images, I've been trying to separate the image-creation process from the image-display process. Essentially, I'm trying to run a cron job that writes a PNG image to file every 5 seconds. The php file pulls data

Re: [PHP] [HAB] str_replace

2005-02-22 Thread Bret Hughes
On Tue, 2005-02-22 at 09:59, OOzy Pal wrote: Dears I am trying replace anything between '{!' and '!}' i.e {!A!} and {!B!} and {!ABC!} with XYZ. I tried the following but no help. Can anyone help? $this-template=str_replace({!*!},XYZ,$this-template); Thank you IIRC str_replace

Re: [PHP] Writing PNG Images to File from Command Line

2005-02-22 Thread Bret Hughes
On Tue, 2005-02-22 at 10:14, [EMAIL PROTECTED] wrote: Howdy, Because of some latency issues in the display of dynamically created PNG images, I've been trying to separate the image-creation process from the image-display process. Essentially, I'm trying to run a cron job that writes a

Re: [PHP] Writing PNG Images to File from Command Line

2005-02-22 Thread Richard Lynch
Because of some latency issues in the display of dynamically created PNG images, I've been trying to separate the image-creation process from the image-display process. Essentially, I'm trying to run a cron job that writes a PNG image to file every 5 seconds. The php file pulls data from a

Re: [PHP] php temporary files

2005-02-22 Thread Péntek Imre
2005. február 21. 21.24 dátummal dan ezt írta: I'm not sure if PHP works this way, but did you completely shut down Apache and then restart it after making these changes? Yes I did. -- Üdvözlettel: Ifj. Péntek Imre E-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] resetting pg_fetch_array

2005-02-22 Thread Richard Lynch
Dave O wrote: Hi all. I'm been trying the following code for the past day or so and I can't seem to get around it. I'm issuing a query to pgsql and iterating through the results twice in order to facilitate the separation of shipment history. Below is the simplest example I can come up

Re: [PHP] cannot remove cookies

2005-02-22 Thread Richard Lynch
Bruno Santos wrote: I'm using 2 cookies to control some user environmente. every time the user logs in, the cookie is set, but when i try to change the value of that cookie, deleting it firts and then setting a new one with another value, when i print the value of that cookie the value is

Re: [PHP] resetting pg_fetch_array

2005-02-22 Thread Dave O
Richard Lynch wrote: Dave O wrote: Hi all. I'm been trying the following code for the past day or so and I can't seem to get around it. I'm issuing a query to pgsql and iterating through the results twice in order to facilitate the separation of shipment history. Below is the simplest example

Re: [PHP] php temporary files

2005-02-22 Thread Péntek Imre
2005. feb 22. 05.17 dátummal Marek Kilimajer wrote: You need to set enviroment variables $TMPDIR and $TMP. I'm not sure which one of these are used by those functions, but you can safely change both. Thanks for your kind help. -- With regards: Ifj. Péntek Imre E-mail: [EMAIL PROTECTED] -- PHP

Re: [PHP] Sessions and cookies

2005-02-22 Thread Chris Shiflett
When a session object is created - where is it store? Assuming you mean session data, it is stored on the server, in /tmp by default. To destroy the session object (widht all session vairables inside the particluar session object) can I use session_destroy();

Re: [PHP] Writing PNG Images to File from Command Line

2005-02-22 Thread Jason Barnett
Richard Lynch wrote: ... Good stuff ... All that said: If you only have a handful of color coded flags, and you are using GD to re-draw an image every time, that's kinda silly... Perhaps I'm missing something here, but: Just use your query to decide which flag to *USE* instead of drawing

[PHP] ranking product based on votes in a given week

2005-02-22 Thread Ryan Schefke
I am trying to echo the ranking of votes (highest to lowest) that a product received in a given week. See example of desired output. In the query below, It's working great and outputs ID, votes, and week; however, I can't figure out how to get the ranking for a given week. In the example

Re: [PHP] Writing PNG Images to File from Command Line

2005-02-22 Thread dpgirago
Bret, Richard, Jason, Thank you all for your comments and suggestions. What I had been doing -- using GD to create the image with db data in one file, then calling this file from IMG SRC=make_the _picture_in_here.php in another page, seems to have been the culprit in regards to the latency

[PHP] how to select files from a directory and transfer to a different dir ?

2005-02-22 Thread Vaibhav Sibal
Hello, I need to select around 200 files at random out of a file pool of 10k-15k files from a directory and then transfer them to another directory on my linux server which runs Apache 2.0.52, PHP 5.0.3 and Mysql. I will also be requiring to add the paths of all those files into a database. If

[PHP] DataObject insert issue: triplicate inserts

2005-02-22 Thread Sasha Sklar
This is the issue: every insert I perform is generating 3 rows instead of 1. I'm using DataObjects with manually created classes, I can't use the generator do to permission issues. This is my class: class DO_test extends DB_DataObject { var $__table = 'test'; var

[PHP] Looking for commercial coder

2005-02-22 Thread Verdon Vaillancourt
Hi :) I am looking for a competent coder to help me with a shipping module for an e-commerce project I am working on. Essentially I need a script that can check a Canadian postal code and/or US zip code (from the cart) against a flat-file or db table, find it's zone in a series of ranges of

Re: [PHP] [HAB] str_replace

2005-02-22 Thread Jochem Maas
Bret Hughes wrote: On Tue, 2005-02-22 at 09:59, OOzy Pal wrote: Dears I am trying replace anything between '{!' and '!}' i.e {!A!} and {!B!} and {!ABC!} with XYZ. I tried the following but no help. Can anyone help? $this-template=str_replace({!*!},XYZ,$this-template); Thank you IIRC

Re: [PHP] Hi ALL

2005-02-22 Thread Jochem Maas
Bret Hughes wrote: On Tue, 2005-02-22 at 05:27, Dhanasekar T wrote: hi all, i m new to this group ...now i want to learn php. right now? not in five minutes. i want all u r guidence to utilise this group... thanks in advance dhanas Dhanas, do you have php installed ? can you access

Re: [PHP] Hi ALL

2005-02-22 Thread Rory Browne
How to use this list best: Search the archives at lists.php.net for [NEWBIE GUIDE] It was written by Jay Blanchard earlier this year I believe. Read it. Then read this: http://www.catb.org/~esr/faqs/smart-questions.html Then try learning PHP from the PHP manual. If you come across a problem,

[PHP] Having problem with ob_start('gz_handler'); (seg fault)

2005-02-22 Thread Chris W. Parker
Hello, I'm having a mysterious problem with phpMyAdmin 2.6.1. I've already consulted the phpMyAdmin forum on sourceforge but so far I've not had any answers come my way. All of a sudden this morning I found that the program stops dead in its track's during a call to ob_start('gz_handler');.

Re: [PHP] ranking product based on votes in a given week

2005-02-22 Thread Ligaya Turmelle
how about a WHERE clause. Maybe something like: $query = SELECT WEEK(date) as week, count(*) as hits, listingID as lidcount FROM invotestotal WHERE WEEK(date) = 8 ORDER BY hits DESC; Ryan Schefke wrote: I am trying to echo the ranking of votes (highest to lowest) that a product received in a

[PHP] uploading remote server

2005-02-22 Thread Sebastian
i have some php forms which uploads files/images and i would like to know if its possible to upload them to a remote server instead, if so, how? cheers -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: uploading remote server

2005-02-22 Thread Jason Barnett
Sebastian wrote: i have some php forms which uploads files/images and i would like to know if its possible to upload them to a remote server instead, if so, how? cheers Yes it is possible. This is a bit of reading, but it is exactly what you need to read:

Re: [PHP] Problem: mysqli class not found

2005-02-22 Thread sylikc
David, I have an install of PHP 5 on Windows 2003 Server with Apache 2 and when I reference mysqli in my php code, I get an error that the mysqli class is not found. I've wrestled with Windows 2000 Server with Apache 2 configuration, and hopefully this will apply for 2003 as well. I

[PHP] String validation

2005-02-22 Thread Ashley M. Kirchner
How can I check that a string is no more than 6 characters long and only contains alpha characters (no numbers, spaces, periods, hyphens, or anything else, just letters.) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] String validation

2005-02-22 Thread John Holmes
Ashley M. Kirchner wrote: How can I check that a string is no more than 6 characters long and only contains alpha characters (no numbers, spaces, periods, hyphens, or anything else, just letters.) if(preg_match('/^[a-zA-Z]{0,6}$/',$string)) { echo 'good'; } else { echo 'bad'; } Change to

[PHP] Formatting e-mail using mail()

2005-02-22 Thread Jacques
Can I format an e-mail message with html tags inside the mail() function? If not, how can I go about it? I would like to format the layout of the e-mail message using tables, colors and perhaps images. Regards - Jacques -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Bug or undocumented functionality of unset()?

2005-02-22 Thread karl
Hi All, Does unset() create a copy of the array and then overwrite the original somehow destroying the reference? In the example below, no item has it's value set to 'foo', however if the $stuff array is accessed directly (see commented line) rather than by reference it works fine. In

Re: [PHP] String validation

2005-02-22 Thread Ligaya Turmelle
or if you aren't into regex (which I find confusing and still am trying to learn): if ((strlen(trim($string)) =6) ctype_alpha(trim($string))) { echo 'good'; } else { echo 'bad'; } John Holmes wrote: Ashley M. Kirchner wrote: How can I check that a string is no more than 6 characters long

Re: [PHP] Formatting e-mail using mail()

2005-02-22 Thread Burhan Khalid
Jacques wrote: Can I format an e-mail message with html tags inside the mail() function? If not, how can I go about it? I would like to format the layout of the e-mail message using tables, colors and perhaps images. Please, FFS RTFM http://www.php.net/manual/en/function.mail.php -- PHP General

Re: [PHP] Having problem with ob_start('gz_handler'); (seg fault)

2005-02-22 Thread Burhan Khalid
Chris W. Parker wrote: [ snipped ] I'm running Apache/2.0.40, MySQL 3.23.54, and PHP 4.2.2. You need to upgrade to the latest PHP version, which is 4.3.10 and while you are at it, consider upgrading MySQL to 4.0. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Putting Evaluated Contents Of Include File Into Varialble

2005-02-22 Thread Michael Stearne
Hi, I have an file that contains PHP code..variables, db, etc. Is it possible to include the evaluted contents of that file into a variable in another, the calling PHP script? Essentailly I am looking to do something like include(myCode.php) - HTML Output - $myVariable. I know could do this