[PHP] suggestions needed to use "session"

2005-09-05 Thread Nahalingam Kanakavel
Hi all, I am new to PHP. I know some thing about SESSIONS in PHP, I am in need of your suggestions. how to use sessions ? what is an efficient way to handle session_id ? like that. How efficiently we can use session concept in our web site development ? how it is helpful. thanks in advance. --

Re: [PHP] Re: AND OR NOT

2005-09-05 Thread Jasper Bryant-Greene
John Taylor-Johnston wrote: David, I'm under pressure to permit AND, OR & NOT. My research group insists that MySQL 4 syntax is "not good enough". An idea of what one might enter is here (on the bottom): http://compcanlit.usherbrooke.ca/advanced.html I was hoping to get away with replacin

[PHP] Re: AND OR NOT

2005-09-05 Thread John Taylor-Johnston
David, I'm under pressure to permit AND, OR & NOT. My research group insists that MySQL 4 syntax is "not good enough". An idea of what one might enter is here (on the bottom): http://compcanlit.usherbrooke.ca/advanced.html I was hoping to get away with replacing " AND " with "+", " NOT " w

[PHP] Re: AND OR NOT

2005-09-05 Thread John Taylor-Johnston
David, I'm under pressure to permit AND, OR & NOT. My research group insists that MySQL 4 syntax is "not good enough". An idea of what one might enter is here (on the bottom): http://compcanlit.usherbrooke.ca/advanced.html I was hoping to get away with replacing " AND " with "+", " NOT " w

Re: [PHP] preg_match and $ sign in PHP5

2005-09-05 Thread Jasper Bryant-Greene
Cabbar Duzayak wrote: I have a regular expression check as: preg_match("/$xyz/", $data, $matches); And, as you know $xyz means "string starts with xyz". But somehow PHP 5 is interpreting this as variable xyz, and gives the notice below. You can ignore the message, but now it matches everything

[PHP] preg_match and $ sign in PHP5

2005-09-05 Thread Cabbar Duzayak
Hi, I have a regular expression check as: preg_match("/$xyz/", $data, $matches); And, as you know $xyz means "string starts with xyz". But somehow PHP 5 is interpreting this as variable xyz, and gives the notice below. You can ignore the message, but now it matches everything that has xyz, i.e.

Re: [PHP] Re: PHP/MySQL offline

2005-09-05 Thread viraj
On 9/4/05, John Taylor-Johnston <[EMAIL PROTECTED]> wrote: > This is maybe what you want: > http://www.indigostar.com/ > http://www.indigostar.com/microweb.htm another good method is a "Live Linux CD". you can find a light weight live linux distro and remaster it to include your live web site. so

[PHP] Re: FTP Chmod problem

2005-09-05 Thread Matt Palermo
It doesn't make sense to me that the function would work fine on a file and not work on a directory. Moreover, why would the ftp_site chmod command produce a working result and not the ftp_chmod? This seems strange to me. -Matt "Raj Shekhar" <[EMAIL PROTECTED]> wrote in message news:[EMAI

Re: [PHP] how to divide string

2005-09-05 Thread Jordan Miller
If you are using php 5, don't forget about str_split, with 4 as the second parameter. http://us2.php.net/str_split so you could do: echo implode("", str_split($string, 4)); if you still have php 4 or earlier, look at that page anyway as there is a workaround function in the comments for ear

[PHP] Re: FTP Chmod problem

2005-09-05 Thread Raj Shekhar
"Matt Palermo" <[EMAIL PROTECTED]> writes: > ftp_chmod($connId, 0777, $folder); > > The function almost works, but when I check the permission of the folder > after it's run, the folder has 410 for permissions instead of 777. So, it > is changing the permissions, but not to the correct value.

Re: [PHP] Filter based on ctype_print()

2005-09-05 Thread Rick Emery
Quoting Robin Vickery <[EMAIL PROTECTED]>: On 9/5/05, Rick Emery <[EMAIL PROTECTED]> wrote: What I really want to do is replace the non-printable character(s) with printable character(s) (maybe a question mark, or a space), but haven't been able to find a function that will do it. Maybe someth

Re: [PHP] howto send a whole smarty page to a printer

2005-09-05 Thread Mikey
Łukasz 'nostra' Wojciechowski wrote: W odpowiedzi na maila (18:09 - 5 września 2005): Hi Hello I am using smarty with my php site, I know you can send a whole smarty template page to a variable, is their any way i can easily print that variable out. or am i going about this the

Re: [PHP] Re: exec() may not be safe

2005-09-05 Thread Rory Browne
AFAIK Apache on win98 does that. It's warning you that you are doing unsafe stuff on an unsafe "OS". On 9/5/05, Ilja Polivanovas <[EMAIL PROTECTED]> wrote: > By the way Zend Optimizer 2.5.7 is also installed in that PC. Does anybody > know what does that [warn] means ? > > -- > Using Opera's rev

Re: [PHP] howto send a whole smarty page to a printer

2005-09-05 Thread Łukasz 'nostra' Wojciechowski
W odpowiedzi na maila (18:09 - 5 września 2005): > Hi Hello > I am using smarty with my php site, I know you can send a whole smarty > template page to a variable, is their any way i can easily print that > variable out. or am i going about this the wrong way. Why don't you just make another t

Re: [PHP] disable safe_mode with .htaccess ?

2005-09-05 Thread Rory Browne
By the looks of things you can't. safe_mode changability is set to PHP_INI_SYSTEM You may be able to put a type setting into the httpd.conf file, and have apache re-read its config file by sending it a USR1 signal. As it is a production server you may want to test this on a dev server first:

[PHP] Re: howto send a whole smarty page to a printer

2005-09-05 Thread David Dorward
Steven wrote: > I basically want to print the output of the page directly to the > printer. I find using the Internet Explorer Print Page button, prints > extra text on the top and bottom of the page, which i dont want, also it > seems to effect my page formatting a little. Presumably you want y

[PHP] howto send a whole smarty page to a printer

2005-09-05 Thread Steven
Hi I am using smarty with my php site, I know you can send a whole smarty template page to a variable, is their any way i can easily print that variable out. or am i going about this the wrong way. I basically want to print the output of the page directly to the printer. I find using the I

Re: [PHP] Scary nonsense form submissions

2005-09-05 Thread Lowell Allen
On Sep 4, 2005, at 12:06 PM, Brian Dunning wrote: Hi all - I have forms on a number of unrelated web sites that just send me an email for one purpose or another. There are 2 to 6 fields: name, email, comment, etc. No big deal. Recently I've been getting a lot of weird submissions. I'll rece

[PHP] disable safe_mode with .htaccess ?

2005-09-05 Thread Wong HoWang
Hello everyone, I have a special question and want to ask here, hope anyone can answer me. My server is Apache/1.3.33 with PHP/4.3.10 I have AllowOverride All in my httpd.conf and safe_mode = On in php.ini , I want to turn off safe_mode in one folder by .htaccess , is it possiable? I don't want

[PHP] Re: AND OR NOT

2005-09-05 Thread David Robley
John Taylor-Johnston wrote: > Any ideas? Post kind of lost in there since Saturday. Is str_replace the > best choice for case sensitive and for swapping " AND "? > >> >> >> Any suggestion on how to swap AND OR NOT for mysql fulltext syntax in >> $searchenquiry? >> A simple parse for " AND " and

Re: [PHP] I have a special problem

2005-09-05 Thread Rory Browne
If you are uploading to a Unix or Linux server, then you can use the chmod program to make your files writable. If you want a program for your local computer to allow you to FTP your files across, then check out this page. http://www.thefreecountry.com/webmaster/freeftpclients.shtml On 9/3/05, Po

Re: [PHP] online/offline...but on a list of users

2005-09-05 Thread Edward Vermillion
Ryan A wrote: I want to add this same functionality to a forum on the same site (the forum was custom programmed from scratch and not any of the popular ones), but since in a single thread there can be a lot of different people/usernames that answer I would prefer _not_ to do a select

[PHP] Re: AND OR NOT

2005-09-05 Thread John Taylor-Johnston
Any ideas? Post kind of lost in there since Saturday. Is str_replace the best choice for case sensitive and for swapping " AND "? Any suggestion on how to swap AND OR NOT for mysql fulltext syntax in $searchenquiry? A simple parse for " AND " and then str_replace? Is str_replace appropriate

Re: [PHP] how to divide string

2005-09-05 Thread Kevin Waterson
This one time, at band camp, Adi Zebic <[EMAIL PROTECTED]> wrote: > is there any magic function who can give me from: > > $string = " abcdefghijklmnopqrstuwvxyz"; > > somthing like this: > > abcd > efgh > ijkl > mnop > qrst > uwvx > yz $newstring=chunk_split("$string", 4, ''); Kevin -- "De

Re: [PHP] how to divide string

2005-09-05 Thread Shafiq Rehman
Hi Zebic It is pretty much simple./ Look into the code $text = "abcdefghijklmnopqrstuwvxyz"; $newtext = wordwrap($text, 4, "", 1); echo $newtext; // if you want all these chunks in an array use it as $array = explode("", $newtext); echo $array[0]; echo $array[1]; echo $array[2]; Regards Shafiq

[PHP] how to divide string

2005-09-05 Thread Adi Zebic
Hi, is there any magic function who can give me from: $string = " abcdefghijklmnopqrstuwvxyz"; somthing like this: abcd efgh ijkl mnop qrst uwvx yz (each 'x' letters go to the next line) Thanks a lot, ADI -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.p

[PHP] Ticket Number

2005-09-05 Thread Kenny
Hello, We're in the midst of creating a high volume transaction platform with PHP and MySQL. Each transaction ties to a transaction ID that is in turn an auto_increment, unsigned BIGINT(12). The problem now is I do not want users to see this running transaction ID when using the system (such

[PHP] Re: exec() may not be safe

2005-09-05 Thread Ilja Polivanovas
By the way Zend Optimizer 2.5.7 is also installed in that PC. Does anybody know what does that [warn] means ? -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Passing by reference, assigning by reference?

2005-09-05 Thread Alex Gemmell
Hi sports fans! I have a quick "references" related question. Ok, I'm passing a Page object by reference to another object: myClass->myFunction($objPage); What I want to do is store that Page object as part of the myClass object (see definition code below). My question is this: When assigni