Re: [PHP] Looking for help with Forms and Mailing them

2004-08-25 Thread Bradleigh Simms
Thanks for the link! -- Linds On Wed, 25 Aug 2004 21:44:22 -0700 Justin Patrin <[EMAIL PROTECTED]> writes: > On Wed, 25 Aug 2004 19:13:08 -0600, Bradleigh Simms > <[EMAIL PROTECTED]> wrote: > > Alright I'm apparently a complete dunce where PHP is > concerned. I've > > tried to read the tuto

Re: [PHP] Another Help

2004-08-25 Thread David Bevan
On Thu, 2004-08-26 at 01:27, Syed Ghouse wrote: > Hi > > Also pls tell me how to extract the href value of the code below > > http://www.google.com";> > > > > > > i m weak in regular expression in php and tell me how to learn easily. > > Regards > Syed Is it just that you're lazy and don'

[PHP] Another Help

2004-08-25 Thread Syed Ghouse
Hi (B (BAlso pls tell me how to extract the href value of the code below (B (Bhttp://www.google.com"> (B (B (B (B (B (Bi m weak in regular expression in php and tell me how to learn easily. (B (BRegards (BSyed

Re: [PHP] Get Value

2004-08-25 Thread Syed Ghouse
Thankyou. i got the solution (B (BThanks & Regards (Bsyed (B- Original Message - (BFrom: "Robby Russell" <[EMAIL PROTECTED]> (BTo: "Syed Ghouse" <[EMAIL PROTECTED]> (BCc: "php mailinglists" <[EMAIL PROTECTED]> (BSent: Thursday, August 26, 2004 AM 09:48 (BSubject: Re: [PHP] Get Val

Re: [PHP] Looking for help with Forms and Mailing them

2004-08-25 Thread Justin Patrin
On Wed, 25 Aug 2004 19:13:08 -0600, Bradleigh Simms <[EMAIL PROTECTED]> wrote: > Alright I'm apparently a complete dunce where PHP is concerned. I've > tried to read the tutorials and am just getting completely mixed up. > > What I want: I want the form at > http://ussblackwell.devermore.net/j

RE: [PHP] Is javascript enable?

2004-08-25 Thread php-list
Try phpsniff at http://phpsniff.sourceforge.net/. It not only detects javascript using PHP, but many other things as well. You will wonder how you lived without it. It's pretty cool... Navid -Original Message- From: Thomas Goyne [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 25, 2004

Re: [PHP] Get Value

2004-08-25 Thread Jim Grill
Google(value to extract)'; (Becho preg_replace('/\(.*)\<\/a\>/i', "$1", $link); (B?> (B (BJim Grill (B (B- Original Message - (BFrom: "Syed Ghouse" <[EMAIL PROTECTED]> (BTo: "php mailinglists" <[EMAIL PROTECTED]> (BSent: Wednesday, August 25, 2004 11:11 PM (BSubject: [PHP] Get Va

Re: [PHP] Get Value

2004-08-25 Thread Robby Russell
On Wed, 2004-08-25 at 21:11, Syed Ghouse wrote: > Hi All > > Will anybody tell me how to extract the value (say Google) > from the code below: > > Google(value to extract) > > Thanks and Regards > > Syed You can use regular expressions for this. $in = 'meep'; preg_match("|>(.*)|", $in, $out

[PHP] Get Value

2004-08-25 Thread Syed Ghouse
Hi All (B (BWill anybody tell me how to extract the value (say Google) (B from the code below: (B (BGoogle(value to extract) (B (BThanks and Regards (B (BSyed

Re: [PHP] Caching Database Information

2004-08-25 Thread raditha dissanayake
Paul Higgins wrote: Hello all, I have some questions regarding caching information with PHP. I was thinking that I might cache all information that won't be changing for long periods of time...possibly only once a day or so, instead of querying the database for information every time. My quest

[PHP] imap_fetch_overview() increases traffic to NFS server

2004-08-25 Thread Kathie Grigg
Hi, We have a linux server running a customised webmail application based on Horde. This server communicates with a seperate NFS server to access user's email data. We noticed that the traffic between the servers quickly rose from under 200k/s to 3Mb/s when we made some modifications and we found

Re: [PHP] mail functions help

2004-08-25 Thread enijmax
Hello Andrew: SMTP server can be retrieved from your ISP provider. The function of SMTP server is sending the mail to other SMTP server. For example, if you want send a e-mail [EMAIL PROTECTED] , the SMTP server A will send this mail to SMTP server B, and SMTP server B will send to SMTP ser

Re: [PHP] Looking for a "TODO:" parser.

2004-08-25 Thread Jim Grill
Not sure about other file types, but phpdoc includes a tag for "todo". It also makes nice documentation on the fly based on your comments. http://phpdoc.org/docs/HTMLSmartyConverter/default/phpDocumentor/tutorial_tags.todo.pkg.html Jim Grill - Original Message - From: "Daevid Vincent" <

[PHP] Looking for a "TODO:" parser.

2004-08-25 Thread Daevid Vincent
I, like many other people I'm sure, put //TODO: comments in my code (inspite of M$ patent on the idea!). http://yro.slashdot.org/article.pl?sid=04/06/08/2319254&tid=155&tid=109&tid= 156&tid=17 I'm looking for a program that will run through a directory tree and parse all the files (ideally by ext

[PHP] open_basedir "/" not working after upgrade

2004-08-25 Thread Federico Petronio
Hello all... I just upgrade PHP from version 4.3.4 to version 4.3.8. After the upgrade, almost everything worked fine but the open_basedir directive. The server I administer provides hosting for several domains, all of those with its own homedir restricted using open_basedir in a scope. Some

Re: [PHP] Is javascript enable?

2004-08-25 Thread Thomas Goyne
On Wed, 25 Aug 2004 16:36:41 -0300, Marcos Thiago M. Fabis <[EMAIL PROTECTED]> wrote: i share your opinion, but belive-me when i say that this situation requires it. It is quite literally impossible to enforce security with JS. Anything you try to do I could get around with Proxomitron and

[PHP] Looking for help with Forms and Mailing them

2004-08-25 Thread Bradleigh Simms
Alright I'm apparently a complete dunce where PHP is concerned. I've tried to read the tutorials and am just getting completely mixed up. What I want: I want the form at http://ussblackwell.devermore.net/join.html to send as an email to myself and the GM of the game when the "apply" button i

Re: [PHP] checking for utilities/applications in the PATH

2004-08-25 Thread Michal Migurski
> i am trying to do a simple check for archiving utilities (zip, unzip, > ...), to make sure they exist within the PATH, and are executable by > PHP. > > i could not find a better way to do this through php, so i went ahead > and did an > > exec('which ' . $utility, $output, $return_value); > > the

[PHP] checking for utilities/applications in the PATH

2004-08-25 Thread Chris Wagner
hi, i am trying to do a simple check for archiving utilities (zip, unzip, ...), to make sure they exist within the PATH, and are executable by PHP. i could not find a better way to do this through php, so i went ahead and did an exec('which ' . $utility, $output, $return_value); then, i check t

Re: [PHP] Re: Determine if a property in a class is public, protected or private

2004-08-25 Thread Curt Zirzow
* Thus wrote M. Sokolewicz: > Erik franzén wrote: > >Is it possible to determine if a property inside a object is public, > >protected or private in PHP 5? > > > >/Erik > use the (undocumented) Reflection API http://php.net/oop5.reflection Curt -- First, let me assure you that this is not one

Re: [PHP] Re: exploding

2004-08-25 Thread Peter Brodersen
On Thu, 26 Aug 2004 00:57:43 +0200, in php.general [EMAIL PROTECTED] (Felix) wrote: >$array = explode( ' ', chunk_split( $sting, 1, ' ' ) ); > >http://www.php.net/manual/de/function.explode.php >http://www.php.net/manual/de/function.chunk-split.php Well, that would leave a blank entry end of the

Re: [PHP] Re: exploding

2004-08-25 Thread Felix
Try this: $array = explode( ' ', chunk_split( $sting, 1, ' ' ) ); http://www.php.net/manual/de/function.explode.php http://www.php.net/manual/de/function.chunk-split.php On Thu, 26 Aug 2004 00:50:09 +0200, Peter Brodersen <[EMAIL PROTECTED]> wrote: > Hi, > > On Wed, 25 Aug 2004 18:00:49 -0400

[PHP] Re: exploding

2004-08-25 Thread Peter Brodersen
Hi, On Wed, 25 Aug 2004 18:00:49 -0400, in php.general [EMAIL PROTECTED] (Jake McHenry) wrote: >Hi everyone. > >Is there a way to explode by every character in the variable? > >Example: > >$var = "8"; >$test = explode("", $var); Use preg_split(): http://php.net/preg_split - example 2. Or,

[PHP] Re: exploding

2004-08-25 Thread M. Sokolewicz
Jake McHenry wrote: Hi everyone. Is there a way to explode by every character in the variable? Example: $var = "8"; $test = explode("", $var); output would be $test[0] = 0; $test[1] = 0; $test[2] = 0; $test[3] = 0; $test[4] = 8; Can I get an array like that? Thanks, Jake McHenry MIS Coordinato

[PHP] Re: Determine if a property in a class is public, protected or private

2004-08-25 Thread M. Sokolewicz
Erik franzén wrote: Is it possible to determine if a property inside a object is public, protected or private in PHP 5? /Erik use the (undocumented) Reflection API -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] imap_search and results

2004-08-25 Thread Nicolas Diez
Hello, I'm trying to make a small script to show mails on a imap server with a criteria. Here is my code : /---/ $mails = imap_search($mbox, 'TO "[EMAIL PROTECTED]"',SE_UID); echo sizeof($mails); /--/ The connection to the server is the working, the search also,

RE: [PHP] crypt()

2004-08-25 Thread Afan Pasalic
Thanks Greg. -Original Message- From: Greg Donald [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 25, 2004 4:38 PM To: Afan Pasalic Cc: [EMAIL PROTECTED] Subject: RE: [PHP] crypt() On Wed, 2004-08-25 at 16:18, Afan Pasalic wrote: > Hi everyone! > > My hosting company has global turne

[PHP] exploding

2004-08-25 Thread Jake McHenry
Hi everyone. Is there a way to explode by every character in the variable? Example: $var = "8"; $test = explode("", $var); output would be $test[0] = 0; $test[1] = 0; $test[2] = 0; $test[3] = 0; $test[4] = 8; Can I get an array like that? Thanks, Jake McHenry MIS Coordinator Nittany

RE: [PHP] Caching Database Information

2004-08-25 Thread Greg Donald
On Wed, 2004-08-25 at 16:32, Scott Hyndman wrote: > I've found that caching LARGE datasets can be really useful. Filesystem > access is blazing fast, and at least in my case, I've found it to be > significantly faster than the time it takes to process a query and > return the dataset. > > Too much

RE: [PHP] crypt()

2004-08-25 Thread Greg Donald
On Wed, 2004-08-25 at 16:18, Afan Pasalic wrote: > Hi everyone! > > My hosting company has global turned on. But I want to code using more safe > global off. My question though is how I can do it "locally", in my script? > I tried to use > ini_set("register_globals", FALSE); > but it still doesn'

RE: [PHP] crypt()

2004-08-25 Thread Afan Pasalic
Hi everyone! My hosting company has global turned on. But I want to code using more safe global off. My question though is how I can do it "locally", in my script? I tried to use ini_set("register_globals", FALSE); but it still doesn't work. On php.net manual I can find WHAT I have to do and reas

[PHP] Determine if a property in a class is public, protected or private in PHP 5?

2004-08-25 Thread Erik Franzén
Is it possible to determine if a property inside a object is public, protected or private in PHP 5? /Erik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] crypt()

2004-08-25 Thread Aaron Todd
I have developed a PHP based site that requires users to login. Their login information is kept in a MYSQL database. Currently, I am using an IF statement to verify what the user enters as their password with what is in the the database. If they are the same a session is created and they have

Re: [PHP] mail functions help

2004-08-25 Thread Matthew Sims
> I've been told stuff about how I need to make sure that my SMTP server > (whatever that is??) > -Andrew > > My guess is that you may need to think about setting up a mail server first before you can get mail functions to work. If you don't know what an SMTP server is, first thing to do is to

[PHP] Re: summarized results

2004-08-25 Thread Matthew Weier O'Phinney
* Erik Meyer <[EMAIL PROTECTED]>: > I have a function loosely based on the following tutorial from zend.com. > (http://www.zend.com/zend/tut/tutorial-brogdon2.php) > However, instead of using plain-text I am using results with html tags. > > For example, the results may have Thisis some text that

Re: [PHP] mail functions help

2004-08-25 Thread Greg Donald
On Wed, 2004-08-25 at 15:11, [EMAIL PROTECTED] wrote: > I'm trying to make sure that my mail functons are on for a script I need to > work. I run an Apache 1.3.31, so I am my own webhost. Now I just need to know > how to make sure my mailfunctions are on. > Here is the mail functions part of php.

Re: [PHP] Caching Database Information

2004-08-25 Thread Greg Donald
On Wed, 2004-08-25 at 14:52, Paul Higgins wrote: > Hello all, > > I have some questions regarding caching information with PHP. I was > thinking that I might cache all information that won't be changing for long > periods of time...possibly only once a day or so, instead of querying the > data

[PHP] mail functions help

2004-08-25 Thread AceZero2790
I'm trying to make sure that my mail functons are on for a script I need to work. I run an Apache 1.3.31, so I am my own webhost. Now I just need to know how to make sure my mailfunctions are on. Here is the mail functions part of php.ini pertaining to me (the windows part because I am on XP):

[PHP] Caching Database Information

2004-08-25 Thread Paul Higgins
Hello all, I have some questions regarding caching information with PHP. I was thinking that I might cache all information that won't be changing for long periods of time...possibly only once a day or so, instead of querying the database for information every time. My question is: is there su

RE: [PHP] summarized results w/function

2004-08-25 Thread Erik Meyer
Anything can be used, I was using that as an example. The information in the database contains html elements that were passed through a form. For example a user would type in some and then the mysql field would contain some. -Original Message- From: John Holmes [mailto:[EMAIL PROTECTED]

Re: [PHP] Is javascript enable?

2004-08-25 Thread Marcos Thiago M. Fabis
i share your opinion, but belive-me when i say that this situation requires it. i have to check if it´s inside frames, pass values for only one a respective frame that is responsable for logging, start procedures with setTimeOut, etc... maybe next time the project can be better planned, but i ca

Re: [PHP] summarized results w/function

2004-08-25 Thread John Holmes
From: "Erik Meyer" <[EMAIL PROTECTED]> Here is function function shorten_news_results ($input_text, $ending_text) { $news_strip=str_word_count($input_text, 1); $news_split=array_splice($news_strip, 0, 40); $news_split[]=$ending_text; $news_story=implode(' ', $news_split); echo "$news_story";

Re: [PHP] Is javascript enable?

2004-08-25 Thread John Holmes
From: "Marcos Thiago M. Fabis" <[EMAIL PROTECTED]> i need this because i´m developing a system that require some security I surely wouldn't rely on JavaScript, something that can be turned on and off, to have anything to do with security. ---John Holmes... -- PHP General Mailing List (http://ww

Re: [PHP] Array?

2004-08-25 Thread Michal Migurski
> I cannot seem to access elements inside of the array $things in the code > below. All of the errors say "Undefined offset: 7 in > /Library/WebServer/Documents/lis/check.php on line 26" I don't see > why... print_r is your bestest buddy. > $results = mysql_query($q); > if ($result

Re: [PHP] summarized results

2004-08-25 Thread John Holmes
From: "Erik Meyer" <[EMAIL PROTECTED]> Here is my function Where? ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] summarized results w/function

2004-08-25 Thread Erik Meyer
Here is function function shorten_news_results ($input_text, $ending_text) { $news_strip=str_word_count($input_text, 1); $news_split=array_splice($news_strip, 0, 40); $news_split[]=$ending_text; $news_story=implode(' ', $news_split);

Re: [PHP] Array?

2004-08-25 Thread Robert Cummings
On Wed, 2004-08-25 at 14:17, Nathan Mealey wrote: > I cannot seem to access elements inside of the array $things in the > code below. All of the errors say "Undefined offset: 7 in > /Library/WebServer/Documents/lis/check.php on line 26" I don't see > why... > > The code is: > >

Re: [PHP] Is javascript enable?

2004-08-25 Thread Marcos Thiago M. Fabis
hehehe... = ) do u have this problem too? and still have to work in 3 projects at same time to deliver in few days ? me too!!! rs.. Let me explain better: i need this because i´m developing a system that require some security, but i appreciate your help. i´ll see what i can do here. [s] Mt ---

Re: [PHP] Array?

2004-08-25 Thread Craig Brothers
how many elements are returned by the sql statement? If you want the 7th item returned in the sql statement would need to code $things[6] Just a hunch... -- Craig Brothers @utoRevenue [EMAIL PROTECTED] (413) 528-8000 x105 On Wed, 2004-08-25 at 14:17, Nathan Mealey wrote: > I cannot seem to ac

Re: [PHP] Array?

2004-08-25 Thread Jason Wong
On Thursday 26 August 2004 02:17, Nathan Mealey wrote: > I cannot seem to access elements inside of the array $things in the > code below. All of the errors say "Undefined offset: 7 in > /Library/WebServer/Documents/lis/check.php on line 26" I don't see > why... > > The code is: > > $q =

[PHP] Re [PHP] Odd behaviour of non-existent keys?

2004-08-25 Thread Geoff Caplan
Michael, MS> IMHO what you have described is a bug in PHP, and if I were you, I'd report it as MS> such. If it's not a bug it at least has a very high WTF factor. You are right - it does seem like a bug. But I assumed that something as basic as this would have been spotted by now. I don't suppos

Re: [PHP] Is javascript enable?

2004-08-25 Thread John Holmes
From: "Marcos Thiago M. Fabis" <[EMAIL PROTECTED]> i saw that solution in one of the google results, but this way i´ll be still using javascript and i´ll need one user action. i realy wanted only a header exchange or something like. I wanted the Army to pay me $25,000 for the program I wrote. Som

Re: [PHP] Array?

2004-08-25 Thread John Holmes
From: "Nathan Mealey" <[EMAIL PROTECTED]> I cannot seem to access elements inside of the array $things in the code below. All of the errors say "Undefined offset: 7 in /Library/WebServer/Documents/lis/check.php on line 26" I don't see why... The code is: $q = "select * from users where email=

[PHP] summarized results

2004-08-25 Thread Erik Meyer
I have a function loosely based on the following tutorial from zend.com. (http://www.zend.com/zend/tut/tutorial-brogdon2.php) However, instead of using plain-text I am using results with html tags. For example, the results may have Thisis some text that has been inputted from a form. When I use

Re: [PHP] Is javascript enable?

2004-08-25 Thread Marcos Thiago M. Fabis
hi John; i saw that solution in one of the google results, but this way i´ll be still using javascript and i´ll need one user action. i realy wanted only a header exchange or something like. [s] Mt - Original Message - From: "John Holmes" <[EMAIL PROTECTED]> To: "Marcos Thiago M. Fabis

[PHP] Array?

2004-08-25 Thread Nathan Mealey
I cannot seem to access elements inside of the array $things in the code below. All of the errors say "Undefined offset: 7 in /Library/WebServer/Documents/lis/check.php on line 26" I don't see why... The code is: $q = "select * from users where email='".$email."' and password='".$pass."'

[PHP] change for exec function and safe_mode between win32 command line interface php 4.3.4 -> php 4.3.7 ?

2004-08-25 Thread Daniel Gaddis
We upgraded from win32 php 4.3.4 to 4.3.7 and my php command line script broke. I am using safe_mode=on. If I use safe_mode=off instead of safe_mode=on it works. Why would my php command line script work with win32 php 4.3.4 with safe_mode=on but not with 4.3.7? For a test I created a file f:\b

Re: [PHP] fatal error undefined call to mysql_connect

2004-08-25 Thread Jason Wong
On Wednesday 25 August 2004 23:09, Ian Firla wrote: > On Wed, 2004-08-25 at 17:08, Angelo Zanetti wrote: > > I never installed it so... here is my next question. how would I find out > > how it was installed? > > Look at the output of phpinfo(). But before doing that, read the > documentation or yo

Re: [PHP] Destroying a Session

2004-08-25 Thread Andre Dubuc
On Wednesday 25 August 2004 12:27 pm, Shaun wrote: > <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > > >> function clear_orderinfo() { > > >> global $_SESSION; > > >> unset($_SESSION["orderinfo"]); > > >> } > > >> > > >> However this function doesnt seem to work and the sessi

Re: [PHP] Is javascript enable?

2004-08-25 Thread John Holmes
From: "Marcos Thiago M. Fabis" <[EMAIL PROTECTED]> i want to retrieve this information (javascript enabled or not) from the browser in execution time. the get_browser function return me a value that simply means that the browser itself is capable of execute javascript and does not mean the user has

[PHP] Re: PHP Login Script

2004-08-25 Thread Torsten Roehr
"Chuck" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Could anyone let me know or point me to where I could find out how to setup > a login for my php site. I've been looking around and found plenty of stuff > for PHP/Apache, but nothing for just PHP. > > Any help or info about thi

Re: [PHP] Is javascript enable?

2004-08-25 Thread Marcos Thiago M. Fabis
Hi ramil; thnx, but this is not what i´m looking for. i want to retrieve this information (javascript enabled or not) from the browser in execution time. the get_browser function return me a value that simply means that the browser itself is capable of execute javascript and does not mean the us

Re: [PHP] Destroying a Session

2004-08-25 Thread Torsten Roehr
"Shaun" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > >> function clear_orderinfo() { > > >> global $_SESSION; > > >> unset($_SESSION["orderinfo"]); > > >> } > > >> > > >> However this function doesnt seem to w

Re: [PHP] Communicate with Outlook

2004-08-25 Thread Miles Thompson
Did you try Google? It turned this up ... http://lists.ximian.com/archives/public/evolution/2000-May/026035.html The trick, I think, would be knowing the schema of the .pst. In early versions you could use Access to open the .pst. MT At 12:16 PM 8/25/2004, Shaun wrote: Hi, Is it possible for a PH

Re: [PHP] PID needed to hammer squid

2004-08-25 Thread raditha dissanayake
Mário Gamito wrote: Hi, I need to kill (squid) -D pidof (squid) -D gives an error :( man pidof we have nowed moved to off topic territory. -- Raditha Dissanayake. http://www.radinks.com/sftp/ | http://www.raditha.com/m

Re: [PHP] PID needed to hammer squid

2004-08-25 Thread Mário Gamito
Hi, I need to kill (squid) -D pidof (squid) -D gives an error :( Regards, Mário Gamito raditha dissanayake wrote: Mário Gamito wrote: Hi, I need to restart squid from PHP, but my squi doesn't stop because a lot of stupid errors. So, i need to kill it and then start it again. killing a process ow

Re: [PHP] Communicate with Outlook

2004-08-25 Thread raditha dissanayake
Shaun wrote: Hi, Is it possible for a PHP application to communicate with an Outlook calendar? I would like to create a web based application that shows staff availability... If you are talking about acessing the outlook calendar on a client machine you cannot. If you are talking about outlook

Re: [PHP] PHP Login Script

2004-08-25 Thread raditha dissanayake
Chuck wrote: Could anyone let me know or point me to where I could find out how to setup a login for my php site. I've been looking around and found plenty of stuff for PHP/Apache, but nothing for just PHP. You need to store user information somewhere and apache .htpasswd files and mysql datab

Re: [PHP] PID needed to hammer squid

2004-08-25 Thread raditha dissanayake
Mário Gamito wrote: Hi, I need to restart squid from PHP, but my squi doesn't stop because a lot of stupid errors. So, i need to kill it and then start it again. killing a process owned by another user is a tough ask. The squid docs say you shouldn't run it as root and it also advice against usi

Re: [PHP] Destroying a Session

2004-08-25 Thread Shaun
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > >> function clear_orderinfo() { > >> global $_SESSION; > >> unset($_SESSION["orderinfo"]); > >> } > >> > >> However this function doesnt seem to work and the session remains > >> active, is > >> there another way to clear a session

[PHP] PHP Login Script

2004-08-25 Thread Chuck
Could anyone let me know or point me to where I could find out how to setup a login for my php site. I've been looking around and found plenty of stuff for PHP/Apache, but nothing for just PHP. Any help or info about this would be appreciated. Thanks, Chuck -- PHP General Mailing List (http://

RE: [PHP] PID needed to hammer squid

2004-08-25 Thread Jay Blanchard
[snip] I need to restart squid from PHP, but my squi doesn't stop because a lot of stupid errors. So, i need to kill it and then start it again. [EMAIL PROTECTED] init.d]# ps aux | grep squid root 9281 0.0 0.3 6124 1792 ?S16:04 0:00 squid -D squid 9283 0.0 1.0 8392 5

[PHP] PID needed to hammer squid

2004-08-25 Thread Mário Gamito
Hi, I need to restart squid from PHP, but my squi doesn't stop because a lot of stupid errors. So, i need to kill it and then start it again. [EMAIL PROTECTED] init.d]# ps aux | grep squid root 9281 0.0 0.3 6124 1792 ?S16:04 0:00 squid -D squid 9283 0.0 1.0 8392 5060

[PHP] Communicate with Outlook

2004-08-25 Thread Shaun
Hi, Is it possible for a PHP application to communicate with an Outlook calendar? I would like to create a web based application that shows staff availability... Thanks for any advice offered. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] fatal error undefined call to mysql_connect

2004-08-25 Thread Ian Firla
On Wed, 2004-08-25 at 17:08, Angelo Zanetti wrote: > I never installed it so... here is my next question. how would I find out how it was > installed? Look at the output of phpinfo(). But before doing that, read the documentation or you'll be back here in a flash with more really basic questions

Re: [PHP] fatal error undefined call to mysql_connect

2004-08-25 Thread John Nichel
Angelo Zanetti wrote: I never installed it so... here is my next question. how would I find out how it was installed? Ask the person who set it up? If you're on a RPM based system (Red Hat, Fedora, etc), do this at the command line... rpm -qa | grep php and if PHP is installed as an RPM, it will

Re: [PHP] fatal error undefined call to mysql_connect

2004-08-25 Thread Angelo Zanetti
I never installed it so... here is my next question. how would I find out how it was installed? >>> John Nichel <[EMAIL PROTECTED]> 8/25/2004 4:44:18 PM >>> Angelo Zanetti wrote: > so to include the mysql extensions to I have to reinstall PHP or can I > simply just change the values in the PHP.

Re: [PHP] fatal error undefined call to mysql_connect

2004-08-25 Thread John Nichel
Angelo Zanetti wrote: so to include the mysql extensions to I have to reinstall PHP or can I simply just change the values in the PHP.ini file for the mysql entries? Thanks to those who responded How did you install php? RPM (or similiar package), or source? If you installed from RPM, you can add

RE: Re[2]: [PHP] Odd behaviour of non-existent keys?

2004-08-25 Thread Michael Sims
Geoff Caplan wrote: > I think you are probably right - but this behaviour causes problems. > For example: > > $foo['one']['two'] = "test-string" ; > > // Evaluates to TRUE (not what's wanted!) > isset( $foo['one']['two']['three'] ) ; > > I need a reliable way to test for the non-existence of a > mu

Re: [PHP] fatal error undefined call to mysql_connect

2004-08-25 Thread Angelo Zanetti
so to include the mysql extensions to I have to reinstall PHP or can I simply just change the values in the PHP.ini file for the mysql entries? Thanks to those who responded >>> ramil <[EMAIL PROTECTED]> 8/25/2004 4:21:14 PM >>> On Wed, 25 Aug 2004 16:12:53 +0200, Angelo Zanetti <[EMAIL PROTECTE

Re: [PHP] fatal error undefined call to mysql_connect

2004-08-25 Thread ramil
On Wed, 25 Aug 2004 16:12:53 +0200, Angelo Zanetti <[EMAIL PROTECTED]> wrote: > Hi all, > > I have installed my php scripts on a new server (linux) and when > attempting to run them I get this error. Is this error a configuration > issue in my PHP.ini file or is it a user issue with mysql and conn

Re: [PHP] fatal error undefined call to mysql_connect

2004-08-25 Thread John Holmes
From: "Angelo Zanetti" <[EMAIL PROTECTED]> I have installed my php scripts on a new server (linux) and when attempting to run them I get this error. Is this error a configuration issue in my PHP.ini file or is it a user issue with mysql and connecting to the database? Enable mysql support in PHP. I

[PHP] fatal error undefined call to mysql_connect

2004-08-25 Thread Angelo Zanetti
Hi all, I have installed my php scripts on a new server (linux) and when attempting to run them I get this error. Is this error a configuration issue in my PHP.ini file or is it a user issue with mysql and connecting to the database? thanks in advance Angelo

Re: [PHP] Sessions vs. IE security

2004-08-25 Thread Stanislav Kuhn
Thanks guys for helps.. I've tried many that things and I found solution. Solution for me was set up Privacy Policy for our site... First time it didn't work because i haven't done Compact privacy policy witch is optional but IE requires it ;o) While compact policies are entirely optional for P3P-

Re: Re[2]: [PHP] Odd behaviour of non-existent keys?

2004-08-25 Thread John Holmes
From: "Geoff Caplan" <[EMAIL PROTECTED]> Why does the non-existent key in the array below evaluate to the first char of the array value? $foo = '' ; $foo['one']['two'] = 'test-value' ; // Evaluates to: string(1) "t" var_dump( $foo['one']['two']['three'] ) ; JH> Strings are arrays. PHP probably take

Re: Re[2]: [PHP] Odd behaviour of non-existent keys?

2004-08-25 Thread ramil
On Wed, 25 Aug 2004 14:04:51 +0100, Geoff Caplan <[EMAIL PROTECTED]> wrote: > I think you are probably right - but this behaviour causes problems. > For example: > > $foo['one']['two'] = "test-string" ; > > // Evaluates to TRUE (not what's wanted!) > isset( $foo['one']['two']['three'] ) ; > > I

Re[2]: [PHP] Odd behaviour of non-existent keys?

2004-08-25 Thread Geoff Caplan
John, >> >> Why does the non-existent key in the array below evaluate to the >> first char of the array value? >> >> $foo = '' ; >> $foo['one']['two'] = 'test-value' ; >> >> // Evaluates to: string(1) "t" >> var_dump( $foo['one']['two']['three'] ) ; >> JH> Strings are arrays. PHP probably takes t

Re: [PHP] Odd behaviour of non-existent keys?

2004-08-25 Thread John Holmes
From: "Geoff Caplan" <[EMAIL PROTECTED]> Getting a result I don't understand. Why does the non-existent key in the array below evaluate to the first char of the array value? $foo = '' ; $foo['one']['two'] = 'test-value' ; // Evaluates to: string(1) "t" var_dump( $foo['one']['two']['three'] ) ; // E

[PHP] Odd behaviour of non-existent keys?

2004-08-25 Thread Geoff Caplan
Hi folks, Getting a result I don't understand. Why does the non-existent key in the array below evaluate to the first char of the array value? $foo = '' ; $foo['one']['two'] = 'test-value' ; // Evaluates to: string(1) "t" var_dump( $foo['one']['two']['three'] ) ; // Evaluates to NULL, as expe

Re: [PHP] Is javascript enable?

2004-08-25 Thread ramil
On Wed, 25 Aug 2004 09:24:41 -0300, Marcos Thiago M. Fabis <[EMAIL PROTECTED]> wrote: > hello; > > does someone know how can i check if javascript is enabled in client´s > browser using only PHP ? > > thnx in advance! A search using the keywords "browser" and "javascript" would have shown you th

Re: [PHP] session cookie paths

2004-08-25 Thread John Holmes
From: "Ian Firla" <[EMAIL PROTECTED]> Answered my own question. Creating an .htaccess file containing: php_value session.name "uniqueSESSIONname" takes care of the problem. You can do this from within PHP by calling session_name() before session_start, also. You could also use set_cookie_params()

[PHP] Is javascript enable?

2004-08-25 Thread Marcos Thiago M. Fabis
hello; does someone know how can i check if javascript is enabled in client´s browser using only PHP ? thnx in advance! [s] Mt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] session cookie paths

2004-08-25 Thread John Holmes
From: "Ian Firla" <[EMAIL PROTECTED]> Answered my own question. Creating an .htaccess file containing: php_value session.name "uniqueSESSIONname" takes care of the problem. You could also use -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] session cookie paths

2004-08-25 Thread Ian Firla
Answered my own question. Creating an .htaccess file containing: php_value session.name "uniqueSESSIONname" takes care of the problem. On Wed, 2004-08-25 at 12:30, Ian Firla wrote: > Dear All, > > I've been trying to figure out a solution for this problem and have > googled the subject but c

Re: [PHP] Destroying a Session

2004-08-25 Thread john
>> function clear_orderinfo() { >> global $_SESSION; >> unset($_SESSION["orderinfo"]); >> } >> >> However this function doesnt seem to work and the session remains >> active, is >> there another way to clear a session? I'm not triffically experienced, but I do have notes on the subject. You'r

Re: [PHP] Destroying a Session

2004-08-25 Thread Burhan Khalid
On Wed, 2004-08-25 at 14:34, Shaun wrote: > I am writing a shopping cart and am using a session called > $_SESSION["orderinfo"] to store the order information. I also have a > function I use to clear the session when the payment has been authorized: > > function clear_orderinfo() { > global $_SE

[PHP] Destroying a Session

2004-08-25 Thread Shaun
Hi, I am writing a shopping cart and am using a session called $_SESSION["orderinfo"] to store the order information. I also have a function I use to clear the session when the payment has been authorized: function clear_orderinfo() { global $_SESSION; unset($_SESSION["orderinfo"]); } Howev

[PHP] session cookie paths

2004-08-25 Thread Ian Firla
Dear All, I've been trying to figure out a solution for this problem and have googled the subject but cannot come up with anything meaningful. I have several applications running on my server which use php and sessions. In each case, logging out from an application destroys the session. The tr

[PHP] Blog hosting script in php

2004-08-25 Thread Xongoo!com: Central unit
Hello, Spent two days searching for blog hosting script (where users can register/open their own blogs, manage them, etc.), paid for ExpressionEngine demo, hoping I can configure it for that, but... So, maybe someone knows good blog hosting scripts in php? Best! -- Tadas Talaikis [EMAIL PROTECTE

Re: [PHP] Regular expression help

2004-08-25 Thread Ramil Sagum
On Tue, 24 Aug 2004 23:53:53 -0700, Daniel Lahey <[EMAIL PROTECTED]> wrote: > I'm trying to figure out how to formulate a regular expression that > will get me everything following a pound sign (#) up to the first space > or { character. (I'm trying to parse the ids out of a style sheet.) > Can an

  1   2   >