php-general Digest 4 Apr 2006 12:28:28 -0000 Issue 4052

2006-04-04 Thread php-general-digest-help
php-general Digest 4 Apr 2006 12:28:28 - Issue 4052 Topics (messages 233170 through 233191): Re: curl http file upload post 233170 by: Chris proc_open and unix pty support 233171 by: Jon 233173 by: Chris PHP/Dreamweaver CSS issue 233172 by: The Doctor

Re: [PHP] Multidimentional array problems

2006-04-04 Thread John Wells
On 4/3/06, Mace Eliason [EMAIL PROTECTED] wrote: This is what I am doing and the output (for testing) seems correct while($row=mysql_fetch_array($result)) { $banner= array($arrayIndex = $row); echo $banner[$arrayIndex][image]. br; echo $banner[$arrayIndex][url]. br; echo

Re: [PHP] Here is a silly question

2006-04-04 Thread Tom Chubb
Great - thanks Chris - that's the answer I've been looking for! On 04/04/06, Chris [EMAIL PROTECTED] wrote: Mace Eliason wrote: Hi, This is come thing that I have struggled with now and again. I usaually us php code to make it work, but was wondering how others deal with this I

Re: [PHP] Looping information into a table

2006-04-04 Thread Georgi Ivanov
A little OT but i think it is important : I really would not write this code like this . You are making too many queries to the database . If u have 100 rows in first table and 200 rows returned from second query , you make 100*200 queries to the database ! Try using SQL Joins. Like this :

Re: [PHP] Looping information into a table

2006-04-04 Thread Georgi Ivanov
Sorry . The correct SQL should be: $query =select * from cforum cf INNER JOIN scforum ON cforum.id=scforum.cfid; :) On Tuesday April 4 2006 11:58, Georgi Ivanov wrote: A little OT but i think it is important : I really would not write this code like this . You are making too many queries

RE: [PHP] PHP/Dreamweaver CSS issue

2006-04-04 Thread Jay Blanchard
[snip] I am trying to modularize a Web Page using one of Dremweaver's CSSes. It works in Firefox but it falls about in IE. Is IE at fault or the modularization? [/snip] Since it is a CSS issue it is likely IE. I will refer you to a CSS mailing list at css-d@lists.css-discuss.org since this is

[PHP] problem with greek language

2006-04-04 Thread Rosen
Hi, I have one very big problem: I create website with english and greek language. I use iso-8859-1 encoding for my website. I show the greek language text with encoded chars like tau;eta;lambda;epsilon;#972;rho;alpha;si; - I copy/paste this from Openoffice documents. On the website I have no

[PHP] FQDN of the server thru CLI

2006-04-04 Thread Venkat Venkataraju
Hi All I'm writing a bunch of cron scripts that send reports periodically using phpmailer. I'm having a hard time trying to find the FQDN of the server. I need that information to construct the from address for the emails. The $_ENV['HOSTNAME'] works only if the script is executed

[PHP] GD to move to php.net

2006-04-04 Thread Kevin Waterson
This can only mean good things for PHP and GD development. Hope to see some real improvements to the lib now http://phpro.org/phpdev/GD-moving-home-to-PHP.html K -- Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote. -- PHP

Re: [PHP] FQDN of the server thru CLI

2006-04-04 Thread Hans Juergen von Lengerke
I usually do this by forcing the profile to be read before I run the script. Something like * * * * * . /etc/profile /path/to/script Date: Tue, 04 Apr 2006 17:43:09 +0530 From: Venkat Venkataraju [EMAIL PROTECTED] To: php-general@lists.php.net Subject: [PHP] FQDN of the server thru CLI

Re: [PHP] FQDN of the server thru CLI

2006-04-04 Thread Stut
Venkat Venkataraju wrote: i do not want to hardcode the hostname anywhere as these script will be copied onto many servers. is there a way i can find the fully qualified domain name thru PHP? If the system has been configured correctly the following should work... $hostname =

Re: [PHP] problem with greek language

2006-04-04 Thread rouvas
Hi Rosen, either use ISO-8859-7 for the encoding or UTF-8. If you use ISO-8859-7 your site will not need any modifications (either than replacing the tau, ..., etc symbols with the actual characters). If you use UTF-8 you will of course have to modify your strings to make them UTF-8

[PHP] test for illegal characters and consequences

2006-04-04 Thread Angelo Zanetti
Hi guys. Ive developed a site and now I've come to the stage where I need to test each textfield on each form for illegal characters that have been inputted. I would like to know from some of you how you go about it? Do you use a regular expression and test each textfield sequencially, also

Re: [PHP] test for illegal characters and consequences

2006-04-04 Thread Paul Scott
On Tue, 2006-04-04 at 15:32 -0800, Angelo Zanetti wrote: Ive developed a site and now I've come to the stage where I need to test each textfield on each form for illegal characters that have been inputted. I would like to know from some of you how you go about it? In our framework, we use a

Re: [PHP] problem with greek language

2006-04-04 Thread Rosen
Thanks, But the problem is thath I can't put directly into code the greek text with copy/paste from the .doc file in the PHP editor. I chahged the encoding for the editor to greek charset, but when I paste it, the result is ??? ( questiomarks ) . rouvas wrote: Hi Rosen,

Re: [PHP] problem with greek language

2006-04-04 Thread rouvas
Hmmm... Are you sure it is not a matter of your fonts being incapable of displaying Greek characters? Can you try with these : http://sourceforge.net/projects/font-tool BTW, are you using Windows or *nix? -Stathis On Tuesday 04 April 2006 16:52, Rosen wrote: Thanks, But the problem is

[PHP] Programmer needed for winsock project

2006-04-04 Thread Mace Eliason
Hi, I don't know what peoples backgrounds are here on the list but we have a paying project for the right person. Or if anyone has another list that can suggest where I can post this. Is anyone interested in working on a small project? We are looking for someone to write a program for us.

[PHP] help with some logic.

2006-04-04 Thread Dallas Cahker
I've been looking at this code for a few hours now and I get the nagging feeling that I am overcomplicating something, something I never ever do. I have a login that puts some information on the session, and if the customer wants they can ask to be remembered, the cookie is given the customers

Re: [PHP] help with some logic.

2006-04-04 Thread Dan McCullough
hey Dallas, have you thought about breaking this up and making two seperate functions one the checks the cookie and one that checks the session information? I'm not sure if that is what you were looking for as far as an answer but it might be a good start. On 4/4/06, Dallas Cahker [EMAIL

Re: [PHP] help with some logic.

2006-04-04 Thread Dallas Cahker
Okay I'll look at that. What about switching to setting the password in md5 format in the cookie rather then a regular id. I might not call the cookie password but to me in thinking about it seems like the same thing as setting a random id and then saving the random id in the db. On 4/4/06, Dan

[PHP] php, sessions and ie

2006-04-04 Thread Dallas Cahker
I've been hearing some of my friends saying there is an issue with Session in PHP and IE having problems with them. Is that true? If it is how do people get around this? Session information saved to db? Session id in cookie?

Re: [PHP] php, sessions and ie

2006-04-04 Thread Wolf
I used to use a database table which housed their information, and their cookie housed their sessionID that the server assigned them when they logged in. Grabbing the sessionID only from the cookie (and their IP) I was able to log most people in (even dynamic IPs don't change THAT often). For

[PHP] Re: test for illegal characters and consequences

2006-04-04 Thread Al
Angelo Zanetti wrote: Hi guys. Ive developed a site and now I've come to the stage where I need to test each textfield on each form for illegal characters that have been inputted. I would like to know from some of you how you go about it? Do you use a regular expression and test each

Re: [PHP] Re: test for illegal characters and consequences

2006-04-04 Thread Angelo Zanetti
Al wrote: Angelo Zanetti wrote: Hi guys. Ive developed a site and now I've come to the stage where I need to test each textfield on each form for illegal characters that have been inputted. I would like to know from some of you how you go about it? Do you use a regular expression and

RE: [PHP] php, sessions and ie

2006-04-04 Thread Dan Parry
I have had some issues with sessions and IE in the past and used the following code to start the session ?php if (isset($SessID)){ session_id($SessID); } session_start(); header(Cache-control: private); // IE 6 Fix. setcookie(SessID, session_id(), time() + 60 * 15); ? Now, though, I always use a

[PHP] Need a CRM recommendation

2006-04-04 Thread Jay Blanchard
Howdy group! I need recommendations for a good CRM done in PHP, thanks! Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Need a CRM recommendation

2006-04-04 Thread Greg Schnippel
Try Civiccrm - http://www.openngo.org/ CiviCRM is the first open source and freely downloadable constituent relationship management solution. CiviCRM is web-based, internationalized, and designed specifically to meet the needs of advocacy, non-profit and non-governmental groups. I use this with

[PHP] Re: problem with greek language

2006-04-04 Thread David Dorward
Rosen wrote: I have one very big problem: I create website with english and greek language. I use iso-8859-1 encoding for my website. I show the greek language text with encoded chars like tau;eta;lambda;epsilon;#972;rho;alpha;si; Representing such characters as HTML entities is fine. On

Re: [PHP] Need a CRM recommendation

2006-04-04 Thread Philip Hallstrom
I need recommendations for a good CRM done in PHP, thanks! http://www.opensourcecms.com/ Lots of options, ratings, reviews, demos, etc. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Need a CRM recommendation

2006-04-04 Thread Jay Blanchard
[snip] I need recommendations for a good CRM done in PHP, thanks! http://www.opensourcecms.com/ Lots of options, ratings, reviews, demos, etc. [/snip] Lot's of good CMS's there, only one, maybe two CRM's. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] proc_open and unix pty support

2006-04-04 Thread Jon
*SHOULD* is the operative word here, since its *not*. No matter whether its a linux, osX or freebsd box that I try using pty support on with php 5.1.2 it says that pty support is not available for my system. Further checking in the user-contributed notes on this page:

Re: [PHP] php, sessions and ie

2006-04-04 Thread Dallas Cahker
How are you destroying the sessions if they leave the site (dont logout). do you check on activity or something else? On 4/4/06, Dan Parry [EMAIL PROTECTED] wrote: I have had some issues with sessions and IE in the past and used the following code to start the session ?php if

RE: [PHP] Need a CRM recommendation

2006-04-04 Thread Philip Hallstrom
[snip] I need recommendations for a good CRM done in PHP, thanks! http://www.opensourcecms.com/ Lots of options, ratings, reviews, demos, etc. [/snip] Lot's of good CMS's there, only one, maybe two CRM's. Woops. That's what happens when you read too fast... No experience with it, but

[PHP] parsing malformed xml documents

2006-04-04 Thread Mariano Guadagnini
Hei guys, I´m parsing some xml's and fetching nodes using xpath, and the PHP 5.0 DOM. Unfortunately, some documents have white spaces in the beginning or some missing tags. In some situations, the script just skips that xml, or even crashes without notice. I tried loading them as html, and

Re: [PHP] ID-tags from picture?

2006-04-04 Thread Gustav Wiberg
- Original Message - From: Chris [EMAIL PROTECTED] To: Gustav Wiberg [EMAIL PROTECTED] Cc: PHP General php-general@lists.php.net Sent: Tuesday, April 04, 2006 4:14 AM Subject: Re: [PHP] ID-tags from picture? Gustav Wiberg wrote: Hi guys! If I've got this right, there will be some

Re: [PHP] parsing malformed xml documents

2006-04-04 Thread Rasmus Lerdorf
Mariano Guadagnini wrote: Hei guys, I´m parsing some xml's and fetching nodes using xpath, and the PHP 5.0 DOM. Unfortunately, some documents have white spaces in the beginning or some missing tags. In some situations, the script just skips that xml, or even crashes without notice. I tried

Re: [PHP] Re: test for illegal characters and consequences

2006-04-04 Thread Eduardo Raúl Galván Sánchez
You can compare each character against the standard character set by means of regular expressions. Angelo Zanetti escribió: Al wrote: Angelo Zanetti wrote: Hi guys. Ive developed a site and now I've come to the stage where I need to test each textfield on each form for illegal

RE: [PHP] php, sessions and ie

2006-04-04 Thread Chrome
I let GC and cookie expiration handle ending the session... The cookie was only set for 15 minutes Dan --- http://chrome.me.uk -Original Message- From: Dallas Cahker [mailto:[EMAIL PROTECTED] Sent: 04 April 2006 19:41 To: php-general@lists.php.net Subject: Re: [PHP]

[PHP] redirect using php

2006-04-04 Thread Schalk
Greetings All, In JSP I have access to a function called sendRedirect() to send a user from one page to another, usually after some processing completed. Is there a similar function in PHP? After processing a form and sending the data via email, I need to redirect them to another page. I

RE: [PHP] Need a CRM recommendation

2006-04-04 Thread Chrome
recommendation Howdy group! I need recommendations for a good CRM done in PHP, thanks! Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ NOD32 1.1470 (20060404) Information __ This message was checked by NOD32 antivirus

RE: [PHP] redirect using php

2006-04-04 Thread Chrome
(http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ NOD32 1.1471 (20060404) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] suse php apache2 sessions problem

2006-04-04 Thread Paul Nowosielski
Dear All, I'm setting up a development server (SuSe 9.1 x86_64, apache2, php 4)and I'm having a weird issue with php 4 not recognizing the start_session function. I've loaded the module with the php.ini file: extension=session.so I've installed the rpm for php sessions and frankly I'm

RE: [PHP] redirect using php

2006-04-04 Thread Brady Mitchell
-Original Message- In JSP I have access to a function called sendRedirect() to send a user from one page to another, usually after some processing completed. Is there a similar function in PHP? Take a look at the header() function. http://php.net/header To redirect you can use:

Re: [PHP] redirect using php

2006-04-04 Thread Schalk
Brady Mitchell wrote: -Original Message- In JSP I have access to a function called sendRedirect() to send a user from one page to another, usually after some processing completed. Is there a similar function in PHP? Take a look at the header() function. http://php.net/header

[PHP] calling php script from C - pclose problem

2006-04-04 Thread Ysidro
Hello, Calling a php script from legacy c code using popen(), works great. Problem: when php script is done, pclose() in c code fails with ECHILD, No child process, wait4() failed. This is because the php script does not hang around to be wait'ed for; any idea how to make a command line php

Re: [PHP] proc_open and unix pty support

2006-04-04 Thread Chris
Jon wrote: *SHOULD* is the operative word here, since its *not*. No matter whether its a linux, osX or freebsd box that I try using pty support on with php 5.1.2 it says that pty support is not available for my system. Further checking in the user-contributed notes on this page:

[PHP] Fwd: one more php opcode cacher for your choice

2006-04-04 Thread steve
Is anyone aware of how this compares? -- Forwarded message -- From: Xuefer [EMAIL PROTECTED] Date: Apr 3, 2006 10:04 PM Subject: one more php opcode cacher for your choice To: Lighttpd List [EMAIL PROTECTED]