[PHP] Re: importing contacts

2007-02-19 Thread Haydar Tuna
Hello, You can access your gmail account with libgmailer PHP library. libgmailer (class GMailer) is a PHP library that allow you to write PHP program to access Google's free webmail. You can download this library from below links http://gmail-lite.sourceforge.net/wordpress/index.php/ab

RE: [PHP] Poblem with sesions

2007-02-19 Thread Peter Lauri
Have you tried to print_r($_SESSION) on all the pages so that you can see what the $_SESSION is containing and how it is changing? Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal web site www.carbonfree.org.uk - become Carbon Free -Original Message

[PHP] importing contacts

2007-02-19 Thread kumar3k
hai I am doing MCA in India ,now i am doing final year project in php language,my project title is "importing contact from gmail" any one know the coding in php language help me. my id:[EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/importing-contacts-tf3256650.ht

Re: FW: [PHP] Re: LOL, preg_match still not working.

2007-02-19 Thread Gregory Beaver
Beauford wrote: > I pasted this right from my PHP file, so it is correct. Just to elaborate. I > have tested this until my eyes are bleeding. > > Sometimes this works sometimes it doesn't. > > One minute !!!##$$ This is a test &&%% will work the way it is supposed to, > the next minute it does no

FW: [PHP] Re: LOL, preg_match still not working.

2007-02-19 Thread Beauford
I pasted this right from my PHP file, so it is correct. Just to elaborate. I have tested this until my eyes are bleeding. Sometimes this works sometimes it doesn't. One minute !!!##$$ This is a test &&%% will work the way it is supposed to, the next minute it does not. It seems that the first ti

[PHP] Classified Ads Script

2007-02-19 Thread Matt Arnilo S. Baluyos (Mailing Lists)
Hello everyone, I'm planning to put up a local classified ads website and I'm looking for an open-source script for this. I've already had some links from Google and Sourceforge but I'd like to get some opinions on people who've already run a classifieds website as to what they're using and what

RE: [PHP] Re: LOL, preg_match still not working.

2007-02-19 Thread Beauford
Read my original email for the example string, I have referred to this in every one of my emails. It's even at the bottom of this one. -Original Message- From: Al [mailto:[EMAIL PROTECTED] Sent: February 18, 2007 10:35 AM To: php-general@lists.php.net Subject: [PHP] Re: LOL, preg_match st

[PHP] Poblem with sesions

2007-02-19 Thread Ashish Rizal
Hi , I am having problem with log in and log out . I have a main login page where one can login with the username and password stored in mysql database. PHP Code: location.href='$adminAddress'; exit(); } else if ($accesslevel == "user") { $_SESSION['level'] = "user"; $_SESSION['username'] = $_P

Re: [PHP] WHERE problem

2007-02-19 Thread Mike Shanley
This was the problem. Thanks very much! Brad Fuller wrote: 2) INDEX is a mysql keyword. Try putting backticks around it. "... WHERE `index` = $randi" -- Mike Shanley ~you are almost there~ "A new eye opens on March 5." -Omniversalism.com -- PHP General Mailing List (http://ww

RE: [PHP] WHERE problem

2007-02-19 Thread Jay Blanchard
[snip] // Get randomized!... the moderated way... $randi = mt_rand(1, $max-1); $q = "SELECT text FROM fortunes WHERE index = '$randi'"; $choose = mysql_query($q); $chosen1 = mysql_fetch_array($choose); [/snip] Put the random statement in the query SELECT foo FROM bar ORDER BY RAND() LIMIT 1 --

RE: [PHP] WHERE problem

2007-02-19 Thread Brad Fuller
> -Original Message- > From: Mike Shanley [mailto:[EMAIL PROTECTED] > Sent: Monday, February 19, 2007 3:50 PM > Cc: php-general@lists.php.net > Subject: Re: [PHP] WHERE problem > > Without the single-quotes, I still get nothing returned. > > Bruce Cowin wrote: > > Are you getting an error

Re: [PHP] WHERE problem

2007-02-19 Thread Mike Shanley
Without the single-quotes, I still get nothing returned. Bruce Cowin wrote: Are you getting an error or just nothing returned? The first thing I'd check is if index is a numeric field and if it is, remove the single quotes from around $randi in the where clause. Regards, Bruce Mike S

Re: [PHP] WHERE problem

2007-02-19 Thread Bruce Cowin
Are you getting an error or just nothing returned? The first thing I'd check is if index is a numeric field and if it is, remove the single quotes from around $randi in the where clause. Regards, Bruce >>> Mike Shanley <[EMAIL PROTECTED]> 20/02/2007 9:23:08 a.m. >>> I'd like to think I unde

[PHP] WHERE problem

2007-02-19 Thread Mike Shanley
I'd like to think I understood code a little better than this, but I've got a problem with my WHERE... I know it's the WHERE because I get a good result when I leave it out. And the random function is also working... I honestly can't figure it out. Thanks in advance for help with this laughabl

RE: [PHP] Catch STDERR

2007-02-19 Thread Peter Lauri
It looks like that will be the situation. Sad that exec() don't have that feature as an option. Maybe in the future :) Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal web site www.carbonfree.org.uk - become Carbon Free -Original Message- From: M.Soko

Re: [PHP] Month

2007-02-19 Thread Dan Shirah
GAH! Sorry. On 2/19/07, Brad Bonkoski <[EMAIL PROTECTED]> wrote: Dan Shirah wrote: > Just when I think I'm getting the hang of PHP, I get confused beyond > belief > :| > > Is this working for you guys? When I test my page only 1/2 of the months > show up now. > > > for ($m=1;$m<

Re: [PHP] Month

2007-02-19 Thread Brad Bonkoski
Dan Shirah wrote: Just when I think I'm getting the hang of PHP, I get confused beyond belief :| Is this working for you guys? When I test my page only 1/2 of the months show up now. $months"; Still missing a double quote in there. echo "$months"; } ?> On 2/19/07, Brad Fulle

Re: [PHP] Month

2007-02-19 Thread Dan Shirah
Just when I think I'm getting the hang of PHP, I get confused beyond belief :| Is this working for you guys? When I test my page only 1/2 of the months show up now. $months"; } ?> On 2/19/07, Brad Fuller <[EMAIL PROTECTED]> wrote: > -Original Message- > From: Dan Shira

Re: [PHP] Month

2007-02-19 Thread Brad Bonkoski
Dan Shirah wrote: Okay, when I try the sprintf I get the following error when I try to save my form Incorrect syntax near 's'. $months"; try: echo "$months"; your trying to call a function inside of a string... -B } ?> On 2/19/07, Brad Fuller <[EMAIL PROTECTED]> wrote: >

Re: [PHP] Month

2007-02-19 Thread Brad Bonkoski
Brad Bonkoski wrote: Dan Shirah wrote: Okay, when I try the sprintf I get the following error when I try to save my form Incorrect syntax near 's'. $months"; try: echo "$months"; your trying to call a function inside of a string... oops..typo, forgot the additional {"} echo "$months";

RE: [PHP] Month

2007-02-19 Thread Brad Fuller
> -Original Message- > From: Dan Shirah [mailto:[EMAIL PROTECTED] > Sent: Monday, February 19, 2007 2:08 PM > To: Brad Fuller > Cc: Jay Blanchard; php-general > Subject: Re: [PHP] Month > > Okay, when I try the sprintf I get the following error when I try to save > my > form > > Incorrect

Re: [PHP] Month

2007-02-19 Thread Dan Shirah
Okay, when I try the sprintf I get the following error when I try to save my form Incorrect syntax near 's'. $months"; } ?> On 2/19/07, Brad Fuller <[EMAIL PROTECTED]> wrote: > -Original Message- > From: Dan Shirah [mailto:[EMAIL PROTECTED] > Sent: Monday, February 19, 20

RE: [PHP] Month

2007-02-19 Thread Brad Fuller
> -Original Message- > From: Dan Shirah [mailto:[EMAIL PROTECTED] > Sent: Monday, February 19, 2007 1:44 PM > To: Jay Blanchard > Cc: php-general > Subject: Re: [PHP] Month > > Okay, so sprintf("%02s", $m) means that the value of $m would be checked > for > the amount of digits returned.

Re: [PHP] Month

2007-02-19 Thread Dan Shirah
Okay, so sprintf("%02s", $m) means that the value of $m would be checked for the amount of digits returned. If less than two digits a zero would be added to the front, correct? On 2/19/07, Jay Blanchard <[EMAIL PROTECTED]> wrote: [snip] If I change my date value to m instead of M, that would o

RE: [PHP] Month

2007-02-19 Thread Jay Blanchard
[snip] If I change my date value to m instead of M, that would only affect the visual month representation that they see, and not the "selected" value that I want to input into my database thoughright? [/snip] Do a combination. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] Month

2007-02-19 Thread Brad Fuller
> -Original Message- > From: Dan Shirah [mailto:[EMAIL PROTECTED] > Sent: Monday, February 19, 2007 1:27 PM > To: php-general > Subject: [PHP] Month > > Greetings, > > I have the following code which populates a dropdown box so a user can > select a month. They see the month name and the

Re: [PHP] Month

2007-02-19 Thread Dan Shirah
If I change my date value to m instead of M, that would only affect the visual month representation that they see, and not the "selected" value that I want to input into my database thoughright? On 2/19/07, Jay Blanchard <[EMAIL PROTECTED]> wrote: [snip] I have the following code which popu

Re: [PHP] Month

2007-02-19 Thread Brad Bonkoski
Dan Shirah wrote: Greetings, I have the following code which populates a dropdown box so a user can select a month. They see the month name and the SELECTED value is the corresponding numeric value 1-12 for the month. However, the selected value for January would be 1. I need the selected v

RE: [PHP] Month

2007-02-19 Thread Jay Blanchard
[snip] I have the following code which populates a dropdown box so a user can select a month. They see the month name and the SELECTED value is the corresponding numeric value 1-12 for the month. However, the selected value for January would be 1. I need the selected value fro January to be 01

[PHP] Month

2007-02-19 Thread Dan Shirah
Greetings, I have the following code which populates a dropdown box so a user can select a month. They see the month name and the SELECTED value is the corresponding numeric value 1-12 for the month. However, the selected value for January would be 1. I need the selected value fro January to

Re: [PHP] serialize() and special ANSI characters

2007-02-19 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-02-19 17:29:53 +0100: > Roman Neuhauser wrote: > > > >class serializeASCII241 extends Tence_TestCase > >{ > >function testTruncates() > >{ > >return $this->assertEquals( > >"120GB 2X512MB 15.4IN DVD", > >serialize("120GB 2X512MB 15.

Re: [PHP] css in mail()

2007-02-19 Thread tedd
At 4:38 PM +0100 2/19/07, Jochem Maas wrote: Danial Rahmanzadeh wrote: how can i use css with mail()? this kind of question is really annoying [today] - it shows that you are a f***ing lazy b'std who can't even be bothered to formulate a question properly let alone type something like 'CSS ma

Re: [PHP] css in mail()

2007-02-19 Thread Sancar Saran
On Monday 19 February 2007 17:03, Danial Rahmanzadeh wrote: > how can i use css with mail()? > thank u Title ".$data." Html content "; mail('[EMAIL PROTECTED]', 'You are welcome', $mail); ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www

Re: [PHP] Change in 5.2.1 re. parsing of URL

2007-02-19 Thread Lewis Kapell
If this has nothing to do with PHP, maybe you can explain why the behavior was broken when I upgraded from 5.2.0 to 5.2.1, and started working again the instant I reverted back to 5.2.0. No other configuration changes were made on the web server. ?? Thank you, Lewis Kapell Computer Operatio

Re: [PHP] serialize() and special ANSI characters

2007-02-19 Thread Youri LACAN-BARTLEY
Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-02-19 15:56:15 +0100: I'm just curious to find out if I'm the only person to have bumped into this kind of issue with serialize/unserialize. When I try and serialize an array containing a string value with the "?" character (alt+241 ASCII) suc

Re: [PHP] Change in 5.2.1 re. parsing of URL

2007-02-19 Thread Jochem Maas
Lewis Kapell wrote: > There seems to be a behavior change introduced in 5.2.1 and I would like > to know if it was deliberate. > > A couple of years ago, PHP introduced functionality that made it > possible to use a certain trick. I don't know how to describe this > trick in words, so I will illu

[PHP] Change in 5.2.1 re. parsing of URL

2007-02-19 Thread Lewis Kapell
There seems to be a behavior change introduced in 5.2.1 and I would like to know if it was deliberate. A couple of years ago, PHP introduced functionality that made it possible to use a certain trick. I don't know how to describe this trick in words, so I will illustrate with an example. ht

[PHP] Re: remote fopen not working, despite allow_url_fopen = on

2007-02-19 Thread alex handle
On 2/15/07, alex handle <[EMAIL PROTECTED]> wrote: Hi all, i recently upgraded a server from freebsd 5.x to 6.2 php 4.4.2 -> php 4.4.4 apache 1.3 -> apache 2.2.4. It worked all great till i noticed that the remote fopen()/file() did not work. allow_url_fopen is set to "On" and the httpd-erro

Re: [PHP] serialize() and special ANSI characters

2007-02-19 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-02-19 15:56:15 +0100: > I'm just curious to find out if I'm the only person to have bumped into > this kind of issue with serialize/unserialize. > > When I try and serialize an array containing a string value with the "?" > character (alt+241 ASCII) such as : > "

Re: [PHP] css in mail()

2007-02-19 Thread Jochem Maas
Danial Rahmanzadeh wrote: > how can i use css with mail()? this kind of question is really annoying [today] - it shows that you are a f***ing lazy b'std who can't even be bothered to formulate a question properly let alone type something like 'CSS mail php' into the nearest search engine. we are

[PHP] css in mail()

2007-02-19 Thread Danial Rahmanzadeh
how can i use css with mail()? thank u

[PHP] serialize() and special ANSI characters

2007-02-19 Thread Youri LACAN-BARTLEY
Hi all, I'm just curious to find out if I'm the only person to have bumped into this kind of issue with serialize/unserialize. When I try and serialize an array containing a string value with the "±" character (alt+241 ASCII) such as : "120GB 2X512MB 15.4IN DVD±RW VHP FR" The resul

RE: [PHP] Re: Securing user table with sha function

2007-02-19 Thread Tim
> -Message d'origine- > De : Haydar Tuna [mailto:[EMAIL PROTECTED] > Envoyé : lundi 19 février 2007 08:12 > À : php-general@lists.php.net > Objet : [PHP] Re: Securing user table with sha function > > Hello, > > 1) If you protect your site from SQL Injection, you must > replace all qu

[PHP] Re: What is $this->

2007-02-19 Thread Dick Richard
Thanks for the responses. Searching the web for "$this-> provided no help at all. Your explainations got me on track and now I can find the right manual to read! Dick ""Dick Richard"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Can someone explain what $this-> does and means. For

Re: [PHP] What is $this->

2007-02-19 Thread M.Sokolewicz
Ok, I'm pretty sure you have a point there, but I can't really see it to be honest. First of all, let's start out with the usual: RTFM! This page: http://www.php.net/oop should explain basic class/object/method/member terminology required to understand what's going on here. In short you coul

Re: [PHP] What is $this->

2007-02-19 Thread Sancar Saran
Hi, I believe there are more offical answes available at around the web. This is what I understand $this-> This is a base OO programming thing. IN oo world you have to create new object to do someting. like $db = new adodb; so after the generate object you will modify this object via functio

Re: [PHP] What is $this->

2007-02-19 Thread Leonard Burton
oops, typo. Should have been $this->message. Leonard On 2/18/07, André Medeiros <[EMAIL PROTECTED]> wrote: Actually, $this->$message would be wrong, but the concept is right. On 2/19/07, Leonard Burton <[EMAIL PROTECTED]> wrote: > HI, > > > $this->SetFont('Arial','B',15); > > what you include

Re: [PHP] Catch STDERR

2007-02-19 Thread M.Sokolewicz
you could instead use the proc_* functions to do this. However, seen as those are pretty complicated and were not available in most php versions ran by most hosts, a lot of people had to come up with other ways around it. The most used way is indeed what you described. A simple: $t = tempnam()

Re: [PHP] Multi lingual pages

2007-02-19 Thread Otto Wyss
Jochem Maas wrote: don't go down the define('LANG_KEY', 'lang string value'); route - defines are comparatively SLOW to create. IF you go down the road of loading in text from 'per lang' files I would suggest using an array as the storage mechanism: $Lang = array( 'LANG_KEY' => 'lang st

Re: [PHP] Multi lingual pages

2007-02-19 Thread Otto Wyss
Paul Novitski wrote: Unless your site is insanely popular or huge, does the method really Sure I hope to once have an insanely popular or huge site, albeit that probably won't happen. O. Wyss -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.

Re: [PHP] Catch STDERR

2007-02-19 Thread Frank Arensmeier
Spontaneously, my suggestion would to pipe the STDERR output from your command to a file. I have to admit that this doesn't feel like the most efficient solution since you would involve some reading / writing to your filesystem. Regards. //frank 17 feb 2007 kl. 21.49 skrev Peter Lauri: H