[PHP] PHP and Palm Pilot interaction

2003-12-15 Thread Dave G
PHP Gurus, I have a web site that helps people sign up for workshops and classes. The classes happen away from any computer or web access. What I want to do is be able to collect data about payment and attendance and be able to send it to the web site for inclusion into the MySQL database.

[PHP] Re: PHP IDE?

2003-12-15 Thread rush
"Peter Walter" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Rush, > > templatetamer looks like an environment that I would be interested in > using; however, what support resources are available for templatetamer? > Is there a news server, bulletin board, or other help resource for

Re: [PHP] treu type fonts

2003-12-15 Thread Jason Wong
On Monday 15 December 2003 11:13, cj wrote: > How would I output the image to a file on the hard drive Assuming you're using the gd lib functions, then whatever function you're using to output the image has an option to write to disk. As always see manual for details. -- Jason Wong -> Gremlin

Re: [PHP] PHP and Palm Pilot interaction

2003-12-15 Thread Adam i Agnieszka Gasiorowski FNORD
Dave G wrote: [...] > But on the other hand, I was wondering if it may be possible to > make use of the simple text editor on the Palm, or perhaps the newer > Excel editors (which I have not yet tried), to create a file of flat > data which could then be uploaded and interpreted b

Re: [PHP] true type fonts again

2003-12-15 Thread Jason Wong
On Monday 15 December 2003 13:26, cj wrote: > I have been able to the the image to display, which is a gif image of a > rectange. > But the text doesn't get displayed on the image. > > There are no error messages on the screen > The other messages entitled true type fonts is a thread I started as

[PHP] Problem with adding quotations to a mysql insert statement

2003-12-15 Thread Richard Kurth
I need to add extra quotation marks in to the following insert command for mysql. I need one that is part of the info right before the |$wrapper resend and right after the $outgoing,nobody $query = "insert into majordomoaliases (domain,listname,var,address1,address2)values (/"$domname/",\"$listnam

[PHP] $GLOBALS containing itself!!!

2003-12-15 Thread Gerard Samuel
Just curious about something I came across. I was looking at the $GLOBAL array, to see what my script was leaving behind. $GLOBALS contains a reference to itself. Even though its a reference, whats the sense with that?? Once its global, why should it have to call on itself? Im currently running php

Re: [PHP] $GLOBALS containing itself!!!

2003-12-15 Thread Robert Cummings
On Mon, 2003-12-15 at 04:23, Gerard Samuel wrote: > Just curious about something I came across. > I was looking at the $GLOBAL array, to see what my script was leaving behind. > $GLOBALS contains a reference to itself. > Even though its a reference, whats the sense with that?? > Once its global, wh

Re: [PHP] PHP IDE?

2003-12-15 Thread SLanger
Hello If you don't mind running a JVM you can use PHPEclipse with the Eclipse Framework. Additionally to the php plugin there are a lot of other plugins out there that can assist you. http://www.phpeclipse.org Regards Stefan Langer

[PHP] searching and replacing in a file

2003-12-15 Thread Richard Kurth
How can I read through a file and find a string and then replace it with a new string and then save the whole file. Below is a peace of what I need to search through. I need to find the string subscribe_policy = open and replace it with subscribe_policy = open+confirm. Then save the whole file. I

[PHP] searching and replacing in a file

2003-12-15 Thread Richard Kurth
How can I read through a file and find a string and then replace it with a new string and then save the whole file. Below is a peace of what I need to search through. I need to find the string subscribe_policy = open and replace it with subscribe_policy = open+confirm. Then save the whole file. I

RE: [PHP] PHP IDE?

2003-12-15 Thread Wouter van Vliet
Yeah .. vim is my god too. You can do so many things with so little keystrokes. And it basically has the best syntax highlighting I've ever seen. With some easy tricks you can even let it highlight your own functions. I haven't doen so, but I know it's possible :P... Also, it exists on most servers

Re: [PHP] searching and replacing in a file

2003-12-15 Thread olinux
$filename = '/path/to/file.txt'; $contents = file_get_contents($filename); $contents = str_replace($search,$replace,$contents); $handle = fopen($filename, "w"); if (fwrite($handle, $contents)) { echo 'file write successful'; } else { echo 'file write failed'; exit; } fclose($handle); al

RE: [PHP] $GLOBALS containing itself!!!

2003-12-15 Thread Wouter van Vliet
On maandag 15 december 2003 10:24 Gerard Samuel told the butterflies: > Just curious about something I came across. > I was looking at the $GLOBAL array, to see what my script was leaving > behind. $GLOBALS contains a reference to itself. > Even though its a reference, whats the sense with that?? >

[PHP] problem with files bigger than 2GB

2003-12-15 Thread php-admin
I use PHP 4.1.2 under Linux (Kernel 2.4.18). On files bigger than 2GB the php-function 'file_exists' exits with 'Warning: stat failed on ... (errno=75 - Value too large for defined data type') ... How can I solve this problem? Thanks for every help. -- PHP General Mailing List (http://www.php.n

Re: [PHP] searching and replacing in a file

2003-12-15 Thread John Nichel
Richard Kurth wrote: How can I read through a file and find a string and then replace it with a new string and then save the whole file. Below is a peace of what I need to search through. I need to find the string subscribe_policy = open and replace it with subscribe_policy = open+confirm. Then sa

Re: [PHP] trouble parsing an XML document

2003-12-15 Thread alfredo
thank you, but the error: >> Parse error: parse error, unexpected '$', expecting T_VARIABLE in (mypath)...on line... refers to the line whit the >> var ${'REG-ORIG'}; code, anyway I took the code by the PHP manual. bye Alfredo Raditha Dissanayake wrote: > doesn't look like a xml parser probl

[PHP] Re: Fatal Error: PDFlib error ...

2003-12-15 Thread Sven
Matthias Nothhaft schrieb: Hi, I'm trying to get the pdflib work... I use pdflib 4.0.3 downloaded from pdflib.de and php 4.3.4 on Debian Linux. I wrote this test code: hi matthias, if you want to use this lib it's good to be familiar with classes and objects in php. the manual can help you at

php-general Digest 15 Dec 2003 12:55:31 -0000 Issue 2474

2003-12-15 Thread php-general-digest-help
php-general Digest 15 Dec 2003 12:55:31 - Issue 2474 Topics (messages 172697 through 172729): Re: PHP IDE? 172697 by: Peter Walter 172702 by: Pablo Gosse 172713 by: rush 172720 by: SLanger.spirit21.de 172723 by: Wouter van Vliet Pear install problem

Re: [PHP] How do i save images created using PHP

2003-12-15 Thread Marek Kilimajer
Please be more specific. [EMAIL PROTECTED] wrote: hi, i am able to create images in php (png, jpeg) in IE. What has IE with creating images? > when i try to save the image it gets saved to the directed path. when i try to open the saved document i get an error message What error message? Where d

[PHP] Re: help with install

2003-12-15 Thread Sven
Paul Vinten schrieb: ok, Just installed PHP with Xitami, with Apache 1.3 AND 2. I've used PHP versions 4.33 and 4.3.4. I'm running Windows XP, mucking around with some pages that came with my Web Programming book, most of the php pages work, but anything involving sessions, forms and cookies etc j

[PHP] DGS Search Script Modifications

2003-12-15 Thread K. Praveen Kumar
Dear All, I recently downloaded the DGS search, which has the great features. Now I would like to modify the script a bit. Requirement: I wanted to search different tables for the entered keywords. If find the file name and id will be different for each so, I wanted to get the id of

Re: [PHP] trouble parsing an XML document

2003-12-15 Thread Sven
hi, Raditha Dissanayake schrieb: doesn't look like a xml parser problem. I haven't tried your code but i think the error is $this->$k no, why not a variable method depending on $k? alfredo wrote: Hello, I'm trying to parse a XML doc, but the doc has some tags like: so when I try to initialize

[PHP] Re: Problem with adding quotations to a mysql insert statement

2003-12-15 Thread Sven
Richard Kurth schrieb: I need to add extra quotation marks in to the following insert command for mysql. I need one that is part of the info right before the |$wrapper resend and right after the $outgoing,nobody $query = "insert into majordomoaliases (domain,listname,var,address1,address2)values (

[PHP] DGS Search Modifications

2003-12-15 Thread K. Praveen Kumar
Dear All, I recently downloaded the DGS search, which has the great features. Now I would like to modify the script a bit. Requirement: I wanted to search different tables for the entered keywords. If find the file name and id will be different for each so, I wanted to get the id of

[PHP] Help Cookie

2003-12-15 Thread abdi
Warning: Cannot modify header information - headers already sent by (output started at /home/ewako/public_html/cintadp/config.php:153) in /home/ewako/public_html/cintadp/mod/forum/forum_functions.php on line 547 help me!!! This email sending u

RE: [PHP] Help Cookie

2003-12-15 Thread Jay Blanchard
[snip] Warning: Cannot modify header information - headers already sent by (output started at /home/ewako/public_html/cintadp/config.php:153) in /home/ewako/public_html/cintadp/mod/forum/forum_functions.php on line 547 help me!!! [/snip] Stop sending headers And send a little code -- PHP

Re: [PHP] Help Cookie

2003-12-15 Thread John Nichel
[EMAIL PROTECTED] wrote: Warning: Cannot modify header information - headers already sent by (output started at /home/ewako/public_html/cintadp/config.php:153) in /home/ewako/public_html/cintadp/mod/forum/forum_functions.php on line 547 help me!!! Output has been sent to the browser before you tri

Re: [PHP] Help Cookie

2003-12-15 Thread Joaquin Bernal
aiwi> Warning: Cannot modify header information - headers already sent by (output aiwi> started at /home/ewako/public_html/cintadp/config.php:153) aiwi> in aiwi> /home/ewako/public_html/cintadp/mod/forum/forum_functions.php on aiwi> line 547 aiwi> help me!!! Check there are no spaces or newlines

[PHP] var check not working...

2003-12-15 Thread Jas
For some reason this will not work... my $_POST variables check for no form variables and display a form... if they choose an item from a select box it queries the database for a field matching the $_post var and builds a new form creating 8 separate $_post variables to check for.. so far it wo

Re: [PHP] PHP IDE?

2003-12-15 Thread daniel hahler
on Sat, 13 Dec 2003 09:06:56 -0800 (PST) Jough Jeaux wrote: JJ> Was wondering what everyone's favortie IDE is for JJ> coding in PHP. I've got a big PHP project in the JJ> works. I'll be doing alot with it and am looking for JJ> ways to boost my productivity. Used to use UltraEdit some time, but

[PHP] Q on RegExp & extended Char

2003-12-15 Thread jsWalter
I've hit my limit on regular expressions. I need to check a string to see if it contains legal characters... A thru Z [a-z], SPACE, PERIOD, DASH/HYPHEN, APOSTROPHE [\' -,\.] OK, this is not a problem. My problem comes in with extended characters, as these examples... González Vänligen för

[PHP] Re: Q on RegExp & extended Char

2003-12-15 Thread Jas
Well have you thought about maybe an array of illegal or extended characters and simply replacing them? eg. $b = $_POST['whatever_variables_you_have']; $match = array("ö","ç","ä"); $replace = array("o","c","a"); $z = str_replace($match,$replace,$b); Might not be exactly what you want but hope it

[PHP] Subject: searching for open source php module

2003-12-15 Thread matt shultz
hi, i am looking for an open source php module that does some simple content management. it seems that something like this must exists, since it is a pretty common need, but i'm not sure where to find such a thing. here is a description of the functionality i am looking for: ability to updat

[PHP] Re: Q on RegExp & extended Char

2003-12-15 Thread Sven
Jswalter schrieb: I've hit my limit on regular expressions. I need to check a string to see if it contains legal characters... A thru Z [a-z], SPACE, PERIOD, DASH/HYPHEN, APOSTROPHE [\' -,\.] OK, this is not a problem. My problem comes in with extended characters, as these examples... Gonzále

[PHP] Re: var check not working...

2003-12-15 Thread Sven
Jas schrieb: For some reason this will not work... my $_POST variables check for no form variables and display a form... if they choose an item from a select box it queries the database for a field matching the $_post var and builds a new form creating 8 separate $_post variables to check for.

[PHP] Re: var check not working...

2003-12-15 Thread Jas
Sven wrote: Jas schrieb: For some reason this will not work... my $_POST variables check for no form variables and display a form... if they choose an item from a select box it queries the database for a field matching the $_post var and builds a new form creating 8 separate $_post variables t

[PHP] 4 project questions - help appreciated

2003-12-15 Thread Ryan A
Hi, I am making a personal project like so: I enter something in the text box (eg. "PHP REALLY ROCKS!!!") then the program checks if that string already exists in the database, if no, then it should enter it into the database and also generate a "key" This key can be given to pals and they can

[PHP] php compile error with mysql undefined reference to `mysql_real_escape_string'

2003-12-15 Thread Ivone Uribe
Hi all! I'm installing php4.3.3, apache 1.3.28 with mysql3.22.32 I'm using this option --with-mysql=/usr/local/mysql But when I compile the php code, I get this error: ext/mysql/php_mysql.o: In function `zif_mysql_client_encoding': /root/fuente/archivos/php-4.3.3/ext/mysql/php_mysql.c:1118: undef

[PHP] Re: 4 project questions - help appreciated

2003-12-15 Thread Jas
1. MySQL is free, fairly easy to use and is way better than using a text file. 2. I would use something to effect of a 'id' field in the database and set that to be indexed, auto-incrementing and unique vs. using your 'public key' as the indexed portion of the database 3. Sounds like you alrea

[PHP] Re: php compile error with mysql undefined reference to `mysql_real_escape_string'

2003-12-15 Thread Jas
You really should be subscribing to the php.install list when asking questions of this type. But it sounds like you need to first install mysql, then install apache, then install php. In that order and you should be ok. When in doubt read the manuals for each application for further informat

[PHP] Email problem

2003-12-15 Thread Naveen Glore
Hello all, I have freebsd server with apache, PHP and mysql. i wrote a simple PHP program using mail(). The mail() function returns true without any error. but the problem is the email is never delivered. I viewed the log file for mail(/var/log/maillog) and i saw the following error: Server

[PHP] logic for displaying hierarchical data (ala windows explorer)

2003-12-15 Thread Chris W. Parker
Hi everyone, Last Friday I struggled for a long time with displaying some data that's stored using the Modified Preorder Tree Traversal method. Without making this email overly long and complicated (like my first draft was) I'd like to simply ask if someone has any links or functions or instructio

Re: [PHP] PHP IDE?

2003-12-15 Thread Al
I searched for weeks and tried about 8 php editors and settled on http://www.phpedit.net/products/PHPEdit/ Code hints and completion, and highlighting, etc. are superb. Has a few minor bugs, but they are not serious. The automatic documenter [they call it help, which it really isn't] is supe

Re: [PHP] Email problem

2003-12-15 Thread Eugene Lee
On Mon, Dec 15, 2003 at 12:05:54PM -0800, Naveen Glore wrote: : : I have freebsd server with apache, PHP and mysql. i wrote a simple PHP : program using mail(). The mail() function returns true without any : error. but the problem is the email is never delivered. I viewed the : log file for mail(/

Re: [PHP] Email problem

2003-12-15 Thread Naveen Glore
Eugene Lee <[EMAIL PROTECTED]> wrote: On Mon, Dec 15, 2003 at 12:05:54PM -0800, Naveen Glore wrote: : : I have freebsd server with apache, PHP and mysql. i wrote a simple PHP : program using mail(). The mail() function returns true without any : error. but the problem is the email is never deliver

RE: [PHP] PHP IDE?

2003-12-15 Thread Chris W. Parker
Al on Monday, December 15, 2003 12:52 PM said: > I searched for weeks and tried about 8 php editors and settled on > http://www.phpedit.net/products/PHPEdit/ > > Code hints and completion, and highlighting, etc. are superb. > > Has a few minor bugs, but they are no

[PHP] Re: Q on RegExp & extended Char

2003-12-15 Thread jsWalter
I should have posted some "rules" with this... assuming: - a SPACE is used to delimit first from last name [Walter Torres] - a HYPHEN is used to separate a dual name (British style) [Conrad-Smyth] - an APOSTROPHE is used in many Irish and Scotish names [O'Reilly] - a PERIOD is used in titles,

[PHP] rand(min, max) always returns min

2003-12-15 Thread Jeff Mainville
Howdy, I've seen this topic posted once before, but without ever reaching a conclusion. The earlier posting is at http://marc.theaimsgroup.com/?l=php-general&m=105414659615227&w=3 The problem: rand(min, max) always returns min on some systems. rand(), mt_rand, and mt_rand(min, max) all work fi

Re: [PHP] Email problem

2003-12-15 Thread Eugene Lee
On Mon, Dec 15, 2003 at 12:58:17PM -0800, Naveen Glore wrote: : : thanks for the quick response. I have the same permissions as yours. : My email server is working fine, i use sendmail MTA and outlook MUA. I : am able to send emails and view my received emails in outlook through : my server. But I

[PHP] Starting OOP

2003-12-15 Thread Mike Smith
I've been doing procedural coding for a few month's, but perceive the need for OOP for some of the projects I've done. I'm starting out and and would like some feedback, before I tread down the wrong path. The books I'm looking at Professional PHP (Wrox), and Visual QuickStart PHP have examples

[PHP] PHP and MySQL date

2003-12-15 Thread Cesar Aracena
Hi all, I'm making a site and need some tables from wich I can extract date, time and/or date/time later with PHP and I neved had very clear the way the possible formats work with each other so my question is what is the best (or recommended) method to store dates and/or times in a MySQL DB for PH

RE: [PHP] Starting OOP

2003-12-15 Thread Martin Towell
I would rewrite your class slighly like this: 1. pass $ponum into the class during the constructor 2. since you're passing in $item into each function, no need to have it as an attribute class PurchaseOrder { //Variables var $ponum; //This will be a $_SESSION variable if that matters function Pur

[PHP] Opening large file problem - fopen

2003-12-15 Thread Kim Steinhaug
Hello Im having real problems working with large files in PHP. At the moment Im trying to parse an error_log file, and it works like a charm, except that the scipt stopps after parsing around 70.000 lines, or around 8MB of data. Im using this : $file= "error_log"; // 280MB file if($fp=fopen($

Re: [PHP] PHP and MySQL date

2003-12-15 Thread Website Managers.net
If you need to store both date and time, there are several ways to accomplish this. MySQL has built-in date/timestamp options, but those long strings would need to be converted for be human readable. The option I use most is telling PHP what format I want to use and entering it into the databas

[PHP] Re: PHP and MySQL date

2003-12-15 Thread Justin Patrin
Cesar Aracena wrote: Hi all, I'm making a site and need some tables from wich I can extract date, time and/or date/time later with PHP and I neved had very clear the way the possible formats work with each other so my question is what is the best (or recommended) method to store dates and/or time

[PHP] Re: PHP and MySQL date

2003-12-15 Thread Cesar Aracena
Thanks both of you for the answer. I tried what both of you told me and I found very easy to use the datetime value under MySQL and then fetch it using strtotime() as fireball at sizzling dot com recommended at the "User Contributed Notes" of php.net's function.date.php page rather than using mkti

RE: [PHP] true type fonts again

2003-12-15 Thread cj
I included the error_reporting (E_ALL); ini_set('display_errors', 1); and commented out the header information, and I got the cannot open/find font So I copied the font to the correct places where I thought the font should go, and tried the web page again. The image is displayed but no text, I wi

[PHP] CVS on Windows

2003-12-15 Thread Chris W. Parker
Hey everyone, Sorry for the OT post but I don't know of any other lists where this would be appropriate so I'm sending it here. I will be interfacing with a CVS server not hosted on a Windows machine (it will be a bsd/*nix variant) and frankly I've never used it. What client do all you Windows pe

Re: [PHP] 4 project questions - help appreciated

2003-12-15 Thread Justin French
Ryan, As usual, telling us more about the project will help. I'm a little confused about the key -- is it just a unique key, or is it some form of password, or somewhere in between? Let's look at the flow... 1. You send your pal a key in an email or whatever like so: http://www.s

Re: [PHP] Re: PHP and MySQL date

2003-12-15 Thread John W. Holmes
Cesar Aracena wrote: I tried what both of you told me and I found very easy to use the datetime value under MySQL and then fetch it using strtotime() as fireball at sizzling dot com recommended at the "User Contributed Notes" of php.net's function.date.php page rather than using mktime() which can

Re: [PHP] 4 project questions - help appreciated

2003-12-15 Thread Ryan A
Hi Justin, Yes, I admit the project sounds pretty screwy. The project is needed for a clients son, he's a small twerp who wanted something like this and since this is an old client who gave us quite a bit of business, rather than say no and upset him...I took this on. The key has to be a max of 4

[PHP] can't access a GET variable on function?

2003-12-15 Thread Louie Miranda
$emailto = $_GET['EmailTO']; function wtemp_mainbody() { print "Contact ("; echo "$emailto"; print ") Info"; } Why can't i display a GET variable from a function? Or should i registered it on global session? -- - Louie Miranda http://www.axishift.com -- PHP General Mailing List

RE: [PHP] can't access a GET variable on function?

2003-12-15 Thread Chris
$emailto is in the global scope, so it's not accessible like that. You can do it one of three ways: $emailto = $_GET['EmailTO']; function wtemp_mainbody() { global $emailto; print "Contact ("; echo $emailto; print ") Info"; } or $emailto = $_GET['EmailTO']; function wtemp_main

[PHP] Browser displays source of php files instead of supposed output on random basis

2003-12-15 Thread Stephan Gloor
Hello. Randomly the php-source is displayed instead of the output (http://www.engstringen.ch/). This was the case when having installed apache 1.3 und php 4.1. After ugrading to apache 2 and php 4.3.4 the bug still occurs. But the browser shows now a file download dialog box for downloading the p

Re: [PHP] CVS on Windows

2003-12-15 Thread Mike Migurski
>I will be interfacing with a CVS server not hosted on a Windows machine >(it will be a bsd/*nix variant) and frankly I've never used it. What >client do all you Windows people use? Also, how does it wotk in >conjuction with your favorite editor? (Mine is HTML-Kit.) Is it necessary >to run some com