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
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
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
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 :
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
[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
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
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
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
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
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 =
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
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
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
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,
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
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.
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
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
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
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?
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
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
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
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
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
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
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
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
[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:
*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:
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
[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
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
- 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
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
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
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]
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
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
(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
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
-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:
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
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
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:
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]
47 matches
Mail list logo