[PHP] From Poland

2005-01-09 Thread Ewa Rubach Wardawy
Dear Greg! This is Jarek.Wardawy. It's not a joke I promisse! This is my real name. Some time ago I found your name in internet I wrote an e-mail to you. No answer. Maybe this time. I' m from Poland, living in a city Ostrow Wielkopolski. I'm working as a journalist, and that's the reason why I

[PHP] [PHP 4.3.7] $_POST accented characters

2005-01-09 Thread pf
Hello, I've spent all night trying to make a simple form checking function that checks the name text field from a form. For example: if I put Beltrán in the form, the ord($_POST['name_field'][5])=195 and not the spanish á=ord()225 Everything is ok if I use a variable in a test script:

[PHP] imagecreatefromjpeg

2005-01-09 Thread Juergen Rehberger
i have a problem with my resizing image script. It all works fine on my localhost server, but once i upload the whole thing on my webhost, the script allows resizing of images not bigger than 600kb or something aournd that size. so my question. does that problem depend on settings from my

RE: [PHP] From Poland

2005-01-09 Thread Manoj Kumar
What the mean to spend time of a group for this type of off topics. --mksheoran -Original Message- From: Ewa Rubach Wardawy [mailto:[EMAIL PROTECTED] Sent: Saturday, January 08, 2005 11:59 PM To: php-general@lists.php.net Subject: [PHP] From Poland Dear Greg! This is

Re: [PHP] How do I start at a specific position in an array? Is there a function?

2005-01-09 Thread tr
Brent Clements wrote / napísal (a): I know this is a simple question because I could easily write a loop to move to the specific position in the array, but I want to know is there a function to move the array pointer position to a specific position in the array? Thanks, Brent next($array)

Re: [PHP] From Poland

2005-01-09 Thread tr
Ewa Rubach Wardawy wrote / napísal (a): Dear Greg! This is Jarek.Wardawy. It's not a joke I promisse! This is my real name. Some time ago I found your name in internet I wrote an e-mail to you. No answer. Maybe this time. I' m from Poland, living in a city Ostrow Wielkopolski. I'm working as a

Re: [PHP] where can i find some tutorials aout sockets ?

2005-01-09 Thread tr
Serban Nicolae wrote / napísal (a): where can i find some tutorials aout sockets ? get a good book or search www.google.com trobi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: how to read the path of the current document's url

2005-01-09 Thread Torsten Roehr
Tim Burgan [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, I have a page where the URL is along the lines of http://www.example.com/test.php I've tried using the parse_url() function without success.. I'm trying to just get test.php returned as a string. Can someone

[PHP] Re: Need a Calender class that can access a DB

2005-01-09 Thread Manuel Lemos
Hello, on 01/07/2005 08:41 PM Phillip S. Baker said the following: Greetings All, I have the need to find a calender class/script. What I am trying to do is have a view by month calender that lists all classes for the month. People can see the names of the classes in the month display and then

Re: [PHP] How do I start at a specific position in an array? Is there

2005-01-09 Thread M. Sokolewicz
Tr wrote: Brent Clements wrote / napísal (a): I know this is a simple question because I could easily write a loop to move to the specific position in the array, but I want to know is there a function to move the array pointer position to a specific position in the array? Thanks, Brent

Re: [PHP] imagecreatefromjpeg

2005-01-09 Thread Alex Greg
On Sun, 9 Jan 2005 21:37:33 +1100, Juergen Rehberger [EMAIL PROTECTED] wrote: i have a problem with my resizing image script. It all works fine on my localhost server, but once i upload the whole thing on my webhost, the script allows resizing of images not bigger than 600kb or something

Re: [PHP] Problem with WHILE using MYSQL database

2005-01-09 Thread Curt Zirzow
* Thus wrote Labunski: $data = mysql_query(SELECT * FROM firt_table WHERE cat='sweaters' ORDER BY `id` ASC ) or die(can't find DB!); while($line = mysql_fetch_array($data)){ echo' trtd width=225 height=19'.$line['product'].'/td/tr'; } for example, there are 3 records in the first_table,

Re: [PHP] how to read the path of the current document's url

2005-01-09 Thread Curt Zirzow
* Thus wrote Tim Burgan: Hello, I have a page where the URL is along the lines of http://www.example.com/test.php I've tried using the parse_url() function without success.. I'm trying to just get test.php returned as a string. How are you using parse_url()? $_SERVER['REQUEST_URI']

[PHP] *** glibc detected *** double free or corruption: error

2005-01-09 Thread Alex Greg
(apologies if this reaches the list twice - the first time I sent it, it didn't arrive within 12 hours) Hi, Recently I migrated the front-end of our bulletin board (running phpBB, patched against the recently highlight vulnerability) to a pair of servers running Fedora Core 3. I compiled Apache

Re: [PHP] Persistent PHP web application?

2005-01-09 Thread Xuefer Tinys
On Sat, 08 Jan 2005 12:03:10 -0800, Rasmus Lerdorf [EMAIL PROTECTED] wrote: You greatly underestimate how slow unserialize is. -Rasmus you're right, but php-devs seems going to rewrite it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] DOM or DOM XML ?

2005-01-09 Thread Chris
I'm currently compiling (at the ./configure step at the moment) 5.03 on Redhat 9 and ran into something that confused me. I got the error message included below. [EMAIL PROTECTED] ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-gd --with-mysql=/usr/local/mysql41

[PHP] Global class instances mysteriously set to NULL

2005-01-09 Thread James \(IFMS\)
I'm struggling to narrow this down, and am chasing my tail to figure this out. I apologise for the imprecise nature. PHP: 4.3.2 (latest RHEL 3 version; php-4.3.2-19.ent.src.rpm) OS: Linux kernel 2.4.21-15.0.3.EL Distro: RHEL 3, all updates I have an app that defines two global class instances,

RE: [PHP] making FORM dissapear when successful login

2005-01-09 Thread Will Merrell
On Tuesday, January 04, 2005 9:05 PM, JHollis wrote: I had this code working the way i wanted it to (as far as correct username and password allowing successful login) ...but what i want to happen now is when a user successfully logs it it will make the login form disappear and just say

Re: [PHP] making FORM dissapear when successful login

2005-01-09 Thread JHollis
Will, Thanks so much for all the time and effort you have put into making my code better. I dont have time right now to really test all of this out, but when i do, if i have any questions about your modified code, i will be sure to ask you. Again thanks! Jason Will Merrell wrote: On Tuesday,

Re: [PHP] Global class instances mysteriously set to NULL

2005-01-09 Thread Jason Wong
On Monday 10 January 2005 03:34, James (IFMS) wrote: I'm currently trying to determine rhyme or reason for the problem, but haven't found any pattern. OK, but ... It comes and goes depending on which file first calls require_once and the order, ... doesn't this contradict the above? Is

[PHP] Re: Global class instances mysteriously set to NULL

2005-01-09 Thread Greg Beaver
James wrote: I'm struggling to narrow this down, and am chasing my tail to figure this out. I apologise for the imprecise nature. PHP: 4.3.2 (latest RHEL 3 version; php-4.3.2-19.ent.src.rpm) OS: Linux kernel 2.4.21-15.0.3.EL Distro: RHEL 3, all updates I have an app that defines two global class

[PHP] Re: Global class instances mysteriously set to NULL

2005-01-09 Thread James \(IFMS\)
Since you are using relative includes (require_once 'uAuthenticate.php';) You must make sure that there is only *1* uAuthenticate.php file being included. To verify that this is the case, I didn't think about this. I did follow up on your suggestion to no avail, then made *really* sure there

Re: [PHP] DOM or DOM XML ?

2005-01-09 Thread Yann Larrivée
Hello If you don't wish to have XML support please use. --disable-simplexml --disable-libxml --disable-xml By Default, libxml is needed to compile PHP5. It tries to load DOM. DOMXML is history :) Hop this helps. Yann On January 9, 2005 13:35, Chris wrote: I'm currently compiling (at the

Re: [PHP] How do I start at a specific position in an array? Is there

2005-01-09 Thread Thomas Goyne
On Sun, 09 Jan 2005 15:59:43 +0100, M. Sokolewicz [EMAIL PROTECTED] wrote: that's not a SPECIFIC place in the array, that's just current, next and previous. AFAIK there is no way to explicitly set the internal pointer of the array to a spcified place. I used a function which basically looped

Re: [PHP] Global class instances mysteriously set to NULL

2005-01-09 Thread James \(IFMS\)
As long as you've got something that is consistent and reproducible then eventually some sense can be made out of it. But if you're saying that running the same code without changes repeatedly will give random results then *that* doesn't make sense. Very true. I wasn't too clear. Switching

[PHP] $_ENV vars

2005-01-09 Thread Charly Tango
I have an Ultra5 (sparc64) running kernel 2.4.27 and Apache 2.0.52 with mod_php 4.3.9. The problem is that when i try to list all environment vars (mostly i need to see Operating System's vars), PHP can see only $_ENV[PATH], and can't see any other $_ENV[] var. phpinfo() lists only PATH

Re: [PHP] How do I start at a specific position in an array? Is there

2005-01-09 Thread M. Sokolewicz
Thomas Goyne wrote: On Sun, 09 Jan 2005 15:59:43 +0100, M. Sokolewicz [EMAIL PROTECTED] wrote: that's not a SPECIFIC place in the array, that's just current, next and previous. AFAIK there is no way to explicitly set the internal pointer of the array to a spcified place. I used a function

Re: [PHP] E-mails with mail() as UTF-8

2005-01-09 Thread Ligaya Turmelle
Have you tried base64 encoding of your message before placing it in your mail()? That is how I have my program sending japanese characters in the body. As far as I know the subject line is only supposed to be from the latin character sets. Respectfully, Ligaya Turmelle Kimmo Alm wrote: Hey

[PHP] Advice for Experienced web developer newish to PHP

2005-01-09 Thread Justin
Hi all, I'm a experienced web programmer, that is taking on a PHP project. I'm really looking to get the tricks and tips that come with experience, the lazy way :-) Project Overview Its basically a corporate info website, with an admin section to add/change content. It will have several top level

[PHP] libphp4.so not created on upgrade

2005-01-09 Thread heath boutwell
Upgrading to 4.3.10, Make, make test and make install work with no errors. Using same configure options I used to install 4.3.8: ./configure --prefix=/usr --with-apx=/usr/local/apache/bin/apxs --libdir=/usr/lib/php4 --datadir=/usr/share/php --with-sybase-ct=/usr/local/freetds

Re: [PHP] DOM or DOM XML ?

2005-01-09 Thread Chris
Ok, that answers my questions. Thanks a lot! Chris Yann Larrivée wrote: Hello If you don't wish to have XML support please use. --disable-simplexml --disable-libxml --disable-xml By Default, libxml is needed to compile PHP5. It tries to load DOM. DOMXML is history :) Hop this helps. Yann On

[PHP] PHP code to analize email HELP

2005-01-09 Thread Alejandro Marín Uribe
Hi all I really need help. I have an idea about to create a piece of code that it analyze an email, extract certain data (this email contains Name, email and telephone of a person in a standar html) and insert this data in MySQL database. It this posible? I'm a newbie in PHP/MySQL, any ideas?

Re: [PHP] *** glibc detected *** double free or corruption: error

2005-01-09 Thread Raditha Dissanayake
Alex Greg wrote: (apologies if this reaches the list twice - the first time I sent it, it didn't arrive within 12 hours) Hi, Recently I migrated the front-end of our bulletin board (running phpBB, patched against the recently highlight vulnerability) to a pair of servers running Fedora Core 3. I

Re: [PHP] libphp4.so not created on upgrade

2005-01-09 Thread Rasmus Lerdorf
heath boutwell wrote: Upgrading to 4.3.10, Make, make test and make install work with no errors. Using same configure options I used to install 4.3.8: ./configure --prefix=/usr --with-apx=/usr/local/apache/bin/apxs --libdir=/usr/lib/php4 --datadir=/usr/share/php --with-sybase-ct=/usr/local/freetds

Re: [PHP] PHP code to analize email HELP

2005-01-09 Thread Robby Russell
On Sun, 2005-01-09 at 19:20 -0500, Alejandro Marn Uribe wrote: Hi all I really need help. I have an idea about to create a piece of code that it analyze an email, extract certain data (this email contains Name, email and telephone of a person in a standar html) and insert this data in

Re: [PHP] How do I start at a specific position in an array? Is there

2005-01-09 Thread Thomas Goyne
On Sun, 09 Jan 2005 23:58:18 +0100, M. Sokolewicz [EMAIL PROTECTED] wrote: can't recall what it was exactly, but I believe it was a case where I didn't know the key of the array, nor the value, but knew the place in the array. Can't exactly remember what it was... I am now thinking that what

[PHP] PHP form POST question

2005-01-09 Thread James \(IFMS\)
I just narrowed something down about forms and POST and would like education. In the following scenarios, all work except #4. $_POST is null. Why is that? Setup: 1) Running on localhost 2) /foo/index.php has the following: ? var_dump($_POST); var_dump($_GET); ? 3) /index.php contends vary

Re: [PHP] PHP form POST question

2005-01-09 Thread Leon Poon
When you access /foo, the server will redirect the client to /foo/ (because it is a directory). At the redirected page, the post data will not be sent again by the browser thus there are no _POST values. Try using action=/foo/. That may work. - Original Message - From: James (IFMS)

Re: [PHP] PHP form POST question

2005-01-09 Thread Tom Rogers
Hi, Monday, January 10, 2005, 12:04:28 PM, you wrote: JI I just narrowed something down about forms and POST and would like JI education. In the following scenarios, all work except #4. $_POST is JI null. Why is that? JI Setup: JI 1) Running on localhost JI 2) /foo/index.php has the following:

Re: [PHP] PHP form POST question

2005-01-09 Thread James \(IFMS\)
When you access /foo, the server will redirect the client to /foo/ (because it is a directory). At the redirected page, the post data will not be sent again by the browser thus there are no _POST values. Try using action=/foo/. That may work. Yes, /foo/ does work. The explanation makes sense.

Re: [PHP] Re: PHP any Mysql connection- new b

2005-01-09 Thread Sagar C Nannapaneni
You didnt mentioned where your problem is and what the error that you are getting. check in the line mysql_select_db (userpass); That you have the grant and other administrative privilages to the user and the database you have to operate on is mysql mysql_select_db (mysql); Anyhow note that

Re: [PHP] PHP any Mysql connection- new b

2005-01-09 Thread Zareef Ahmed
On Sat, 8 Jan 2005 16:10:47 + (GMT), babu [EMAIL PROTECTED] wrote: Hi all, I am using php 3.0 and mysql and win xp. i want to add users to database through php page. adduser.php html FORM METHOD=post ACTION=add.php Real Name: INPUT TYPE=text MAXLENGTH=70 NAME=real_name SIZE=20Br

Re: [PHP] PHP code to analize email HELP

2005-01-09 Thread Zareef Ahmed
On Sun, 09 Jan 2005 18:00:09 -0800, Robby Russell [EMAIL PROTECTED] wrote: On Sun, 2005-01-09 at 19:20 -0500, Alejandro Marín Uribe wrote: Hi all I really need help. I have an idea about to create a piece of code that it analyze an email, extract certain data (this email contains Name,

[PHP] long running page on apache 2

2005-01-09 Thread Bret Hughes
As I begin to write this I wonder if this really an apache issue but will ask here to see if anyone has some idea. We have a php interface to our system running apache 2 on fedora 1 box. One page calls a script that does a system() call on a script that runs for several minutes. The issue is

Re: [PHP] Advice for Experienced web developer newish to PHP

2005-01-09 Thread tr
Justin wrote / napísal (a): Hi all, I'm a experienced web programmer, that is taking on a PHP project. I'm really looking to get the tricks and tips that come with experience, the lazy way :-) Project Overview Its basically a corporate info website, with an admin section to add/change content. It

[PHP] problem with 'setcookie'

2005-01-09 Thread Andrew Maxwell
I am running the latest version of XAMPP from apachefriends.org, when i try to set an authenticating cookie it doesnt make the cookie. It doesnt give me any errors or anything. I was looking through the PHP.ini file and it didnt have anything about the setcookie function. Can anyone tell me what

[PHP] Re: problem with 'setcookie'

2005-01-09 Thread M. Sokolewicz
Andrew Maxwell wrote: I am running the latest version of XAMPP from apachefriends.org, when i try to set an authenticating cookie it doesnt make the cookie. It doesnt give me any errors or anything. I was looking through the PHP.ini file and it didnt have anything about the setcookie function. Can

[PHP] unable to load curl

2005-01-09 Thread Sagar C Nannapaneni
Hi, I've got a strange issue here i'm using apache2 with php 4.3.9 on win 2000. I've pointed the php extension directory to extension_dir = C:\php\extensions where all the extension dlls reside. All extensions are working and all dlls are loading properly,, but when i try to load curl i'm