Re: [PHP] problem with mssql_query

2003-11-12 Thread Jason Wong
On Tuesday 11 November 2003 23:07, bob pillford wrote: Hi all i have the following code which isnt working correctly and i cant work out why. Any help would be greatly appreciated as its sending me crazy! $query = select refno from campaign where appdate between 'nov 07 2003' and 'nov 08

php-general Digest 12 Nov 2003 07:07:05 -0000 Issue 2410

2003-11-12 Thread php-general-digest-help
php-general Digest 12 Nov 2003 07:07:05 - Issue 2410 Topics (messages 169197 through 169233): Re: help create community newbie guide to security 169197 by: Lowell Allen How to adpated a javascrip with php... 169198 by: Payne 169205 by: Martin Towell 169207

[PHP] How to find the Drive letters

2003-11-12 Thread D. Jame
hi, How to find the Drive letters and Drive Types of remote system WNT, i have system administrator password too.. this all work done with PHP pages, when my client give IP, user /password then my PHP scirpt show him that system drive/ folders... Plz help... thnx

Re: [PHP] How to handle the POST data

2003-11-12 Thread Kim Steinhaug
There are many solutions. My favorite: That is, my favourite aswell! :) Works like a charm, not to say the benefits. You get all the processing detail inside 1 single file, which makes development easier in my opinion. Kim -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] problem with mssql_query

2003-11-12 Thread bob pilly
Thanks! Cheers Bob --- Jason Wong [EMAIL PROTECTED] wrote: On Tuesday 11 November 2003 23:07, bob pillford wrote: Hi all i have the following code which isnt working correctly and i cant work out why. Any help would be greatly appreciated as its sending me crazy! $query = select

Re: [PHP] imagejpeg

2003-11-12 Thread Jason Wong
On Wednesday 12 November 2003 00:34, Egil Berntsen wrote: My site need to create some images on-the-fly(with user data) for every user but I have some problem with the creating of the jpeg-image. I put these images in my MySQL database for later use. This have to do somthing with write

[PHP] Re: Share Folder...

2003-11-12 Thread Kim Steinhaug
Do you mean like windows shared folders? What do you mean ? kim D. Jame [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I have three machine 1, 2, 3. all online have unique IP. one of them (no. 3) running web server which configured with PHP, now my problem is I want to

[PHP] Re: Delete Temporary Internet Files

2003-11-12 Thread Kim Steinhaug
Hmm.. This shouldnt be a problem from what I know. Though it woldt be a perfect system, all you would need to do, is have a script that does : 1: Read the IE cache directory and puts all the entries into an array (all the files), 2: unlink all the files in the array. This would in my opinion

Re: [PHP] First test release of BTportal made!!!!

2003-11-12 Thread Jason Wong
On Tuesday 11 November 2003 20:11, Burhan Khalid wrote: Bas wrote: It's avaiable on: http://members.home.nl/famde.jong/portalBT-0.0.1.zip Get your own list. php.general is not your personal announcement list. I think there's some double standards here :-) It seems to be generally

Re: [PHP] Execute Background Process

2003-11-12 Thread Burhan Khalid
apur kurub ver.1 wrote: dear all i will execute background process like $program is there posible in php to process that statement? and return to php immediately; http://www.php.net/system -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com ---

RE: [PHP] shell_exec with pipes

2003-11-12 Thread Mario Ohnewald
Hi, $var=shell_exec(/usr/local/bin/mplayer -identify -frames 0 /tmp/pitstop.mpeg 2/dev/null | grep ID_LENGTH | cut -d \=\ -f 2); $var=shell_exec(/usr/local/bin/mplayer -identify -frames 0 /tmp/pitstop.mpeg 2/dev/null | grep ID_LENGTH | cut -d \=\ -f 2); echo Output: $var; Still gives nothing

[PHP] Re: get method http 1.1 eror

2003-11-12 Thread QT
Thanks all very usefull Qt [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Dear Sirs, I am using following method for GET but I am getting this error from server; HTTP/1.1 505 HTTP Version Not Supported Content-Type: text/plain Date: Tue, 11 Nov 2003 10:08:44 GMT Server: Apache

Re: [PHP] Help with scripts to add records to a database

2003-11-12 Thread Boyan Nedkov
Rolf Brusletto wrote: Mark wrote: Sorry guys, I have tried all the suggestions so far with no luck. Regards, Mark Mark - After the mysql_query($query); line add the following line echo mysql_error(); run the script and try to add something again, if there is an error, it will tell

[PHP] OOP clarification: Messages between objects

2003-11-12 Thread Robert Ian Smit
I am trying to implement a generic form handler that is capable of printing the form and checking the user input. I want this application to be useful in the end, but I also use it to explore OOP in PHP. The working code at the moment is able to add HTML input elements to the page. These fields

Re: [PHP] shell_exec with pipes

2003-11-12 Thread Jason Wong
On Wednesday 12 November 2003 17:21, Mario Ohnewald wrote: $var=shell_exec(/usr/local/bin/mplayer -identify -frames 0 /tmp/pitstop.mpeg 2/dev/null | grep ID_LENGTH | cut -d \=\ -f 2); $var=shell_exec(/usr/local/bin/mplayer -identify -frames 0 /tmp/pitstop.mpeg 2/dev/null | grep ID_LENGTH |

Re: [PHP] Unique ID

2003-11-12 Thread Marek Kilimajer
Javier Muniz wrote: Neither auto-increment nor sequences allow you to do what you're asking for though, which is like database garbage collection. If you really need something like this you should implement it in a cron job that runs during non-peak hours as it will be quite an expensive

Re: [PHP] Can sudo be used for apache

2003-11-12 Thread David T-G
Tirumal -- ...and then tirumal b said... % % hello All, Hi! % % Can i use sudo to assign certain privileges for the % apache account as the webserver is running on that % account. Will it be possible. Yep. Be careful! % % Thank you You're welcome! % % Tirumal HTH HAND :-D --

Re: [PHP] Pausing in PHP

2003-11-12 Thread Nathan Taylor
sleep() should do what you need. www.php.net/sleep Regards, Nathan - Original Message - From: Donpro To: php list Sent: Monday, November 10, 2003 12:49 PM Subject: [PHP] Pausing in PHP Hi, Is there a PHP function that would allow the script execution to pause 'N'

[PHP] PHP5 interfaces

2003-11-12 Thread William Bailey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, I am currently starting a new personal project and thought that i would start to implement it in PHP5. Now the new object model in PHP5 is really nice and haveing objects bassed by reference by default saves a lot of head aches :)

[PHP] PHP5 interfaces

2003-11-12 Thread William Bailey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, I am currently starting a new personal project and thought that i would start to implement it in PHP5. Now the new object model in PHP5 is really nice and haveing objects bassed by reference by default saves a lot of head aches :)

[PHP] Re: Share Folder...

2003-11-12 Thread Kim Steinhaug
You wrote in email : How to find the Drive letters and Drive Types of remote system WNT, i have system administrator password too.. this all work done by PHP, when my client give IP, user /password then my PHP scirpt show him system drive/ folders... how it possible Plz help...

[PHP] Re: How to find the Drive letters

2003-11-12 Thread Kim Steinhaug
Check my reply under Share folder. From what I know you cant get hold of the accuall drive letter on a remote machine without hacking it, and therefore my short answer will be that U cant do it. U can get the shares, and access them as explained in the other post - but not the physical drive

Re: [PHP] Help with scripts to add records to a database

2003-11-12 Thread Kim Steinhaug
Important to mention, that the reason why the $variable probably doesnt work is that your service provider has turned off the globals. In this case you would need, as Zhuravlev mentions, use $_POST[variable] to insert the records. All in all, since the factory setting in the new versions of PHP

[PHP] PHP5 interfaces

2003-11-12 Thread William Bailey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, I am currently starting a new personal project and thought that i would start to implement it in PHP5. Now the new object model in PHP5 is really nice and haveing objects bassed by reference by default saves a lot of head aches :)

[PHP] Re: sorting files by date

2003-11-12 Thread Kim Steinhaug
U wouldnt need to timestamp it, split the filename insert into 2 dimensional array, and use the sort() command and you have it. Se examples her, theres also examples of sorting into more levels, meaning you can sort first by date, then by filename aslong as you do your splitting right, :)

[PHP] Re: Time problem

2003-11-12 Thread Kim Steinhaug
Well, If your into your programming, have a look at this one : http://www.phpclasses.org/browse.html/package/1199.html It does something else, but the same approach can be used to format your readable dates. This wheel has surely been invented already, so you probably should do some googling to

RE: [PHP] First test release of BTportal made!!!!

2003-11-12 Thread Jay Blanchard
[snip] The honest truth Bas, if you're reading this, is that announcements for heavyweight, respected products are OK on this list. For products like portalBT (and BTML), I don't think many (any?) people are interested. [/snip] Or he could put [ANNOUNCE] in the subject line. Seems there was a

[PHP] newbie question about scope

2003-11-12 Thread news.comcast.giganews.com
I am an experienced web developer who is just getting into php. I have had a php project fall into my lap and wanted a little advice. Here is the scoop: A client moved their site from a server (unknown details) to a hosting facility (php 4.3.2). Now none of the scripts work. I have

Re: [PHP] newbie question about scope

2003-11-12 Thread Derek Ford
news.comcast.giganews.com wrote: I am an experienced web developer who is just getting into php. I have had a php project fall into my lap and wanted a little advice. Here is the scoop: A client moved their site from a server (unknown details) to a hosting facility (php 4.3.2). Now none of

RE: [PHP] newbie question about scope

2003-11-12 Thread Jay Blanchard
[snip] A client moved their site from a server (unknown details) to a hosting facility (php 4.3.2). Now none of the scripts work. I have guessed that they are coming from an earlier version of apache/php. [/snip] It is likely then that register_globals is set to OFF in the php.ini. In

[PHP] Re: newbie question about scope

2003-11-12 Thread pete M
things to check.. check the register_globals flag in php.ini - you can also set this using ini_set() Check the short_open_tags are either on/off - again this chan be changes in ini_set() pete News.Comcast.Giganews.Com wrote: I am an experienced web developer who is just getting into php. I

[PHP] mssql_bind() couldn't process string parameter longer than 254 characters

2003-11-12 Thread Miroslav I.
Hi, people - the first time in the list, - subscribed only for few minutes and already have 7 messages :-) this is promising!! #The problem: mssql_bind() (PHP Version 4.3.2-RC) couldn't pass string parameter longer than 254 characters to the stored procedure (MSSQL2000 server) ##Is there

RE: [PHP] mssql_bind() couldn't process string parameter longer than 254 characters

2003-11-12 Thread Jay Blanchard
[snip] ##Is there a way to call stored procedure ( from PHP ) with long string parameters? There is a bug in MSSQL Client Libraries that avoid sending varchar parameters for more than 255 characters to a stored procedure.Use mssql_query instead. [/snip] You already answered your own question :)

[PHP] Show total records based on criteria

2003-11-12 Thread Tim Winters
Hello, Sorry for the probably newbie question. Is there a way to show the number of records in a recordset based on a specific criteria? For example, if I create a record set of all male employees regardless of eye color and then I want to create a table showing the totals of people of each

RE: [PHP] Show total records based on criteria

2003-11-12 Thread Jay Blanchard
[snip] For example, if I create a record set of all male employees regardless of eye color and then I want to create a table showing the totals of people of each eye color. Is there a way to do this with out creating several different recordsets. [/snip] Yes, you handle it in the query; $sql =

[PHP] multiple table rows into an array, and creating a calendar

2003-11-12 Thread Dave G
PHP Gurus, I have a database of events which happen on various dates. I've set up a query to select all the dates within the current month. I've got a calendar which shows one month at a time, as a table, on which to display the relevant dates as links. My problem is that I can't

Re: [PHP] shell_exec with pipes

2003-11-12 Thread Mario Ohnewald
ok, i am running the script like this now: START - $var=shell_exec(/home/lansinplayer/server/apache/htdocs/lansinplayer/getfilelength.sh /tmp/pitstop.mpeg); echo --$var--; STOP - Where echo returns nothing. I did a chmod 777 on the

[PHP] Re: Show total records based on criteria

2003-11-12 Thread pete M
Tim Winters wrote: select EyeColor, count(eyeColor) from males group by eyecolor ;-) Hello, Sorry for the probably newbie question. Is there a way to show the number of records in a recordset based on a specific criteria? For example, if I create a record set of all male employees

RE: [PHP] Show total records based on criteria

2003-11-12 Thread Jay Blanchard
[snip] Another newbie question but how do I get the info out of a query when I do a group by? How is it presented to me? Would you mind taking your example 1 step farther and show me how I would echo, say, the total of blue eyed people? $sql = SELECT COUNT(eyeColor) AS colorCount, eyeColor FROM

RE: [PHP] Show total records based on criteria

2003-11-12 Thread Jay Blanchard
[snip] If you want blue eyes only you would handle that in the query; SELECT COUNT(eyeColor) FROM theTable WHERE sex = 'male' AND eyeColor = 'blue' And if your are returning one row ... $result = mysql_fetch_object($db); // no while loop echo We have . $result-colorCount . guys with .

Re: [PHP] newbie question about scope

2003-11-12 Thread news.comcast.giganews.com
Derek Ford [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] news.comcast.giganews.com wrote: I am an experienced web developer who is just getting into php. I have had a php project fall into my lap and wanted a little advice. Here is the scoop: A client moved their site

Re: [PHP] Re: Delete Temporary Internet Files

2003-11-12 Thread Mark
--- Kim Steinhaug [EMAIL PROTECTED] wrote: Hmm.. This shouldnt be a problem from what I know. Though it woldt be a perfect system, all you would need to do, is have a script that does : 1: Read the IE cache directory and puts all the entries into an array (all the files), How do

[PHP] Somewhat-OT: Notation style

2003-11-12 Thread Chris Boget
What is the name of the notation that has variable names prefixed with the first letter of the type of the variable? eg. int iVar; float fVar; string sVar; thnx, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Somewhat-OT: Notation style

2003-11-12 Thread Jay Blanchard
[snip] What is the name of the notation that has variable names prefixed with the first letter of the type of the variable? eg. [/snip] Hungarian notation -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Somewhat-OT: Notation style

2003-11-12 Thread Chris Shiflett
--- Chris Boget [EMAIL PROTECTED] wrote: What is the name of the notation that has variable names prefixed with the first letter of the type of the variable? eg. int iVar; float fVar; string sVar; I believe that's called Hungarian notation. I might be wrong, though. Chris = My Blog

Re: [PHP] imagejpeg

2003-11-12 Thread Egil Berntsen
Thanks. This is exactly what I needed. Never save the file, just put it into the db. egil - Original Message - From: Jason Wong [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Wednesday, November 12, 2003 9:17 AM Subject: Re: [PHP] imagejpeg On Wednesday 12

Re: [PHP] multiple table rows into an array, and creating a calendar

2003-11-12 Thread Burhan Khalid
Dave G wrote: PHP Gurus, Why hello young pedawan I guess what I really am asking is, what is the most efficient way for me to compare the dates on the calendar with the dates in my database and display matches as links. If you have an array of dates (events) -- and you want to create a

Re: [PHP] Re: Delete Temporary Internet Files

2003-11-12 Thread Kim Steinhaug
The original question didnt consert the OS, or where the user was at. Concerning cleaning the IE directory I would assume that he's installed PHP and IIS / Apache on his local machine. Using a webpage online on the internet to fix your local machine doesnt sound logical to me, therefore I assume

[PHP] ignoring case

2003-11-12 Thread Adam Williams
Hi, does anyone happen to know off hand the function that will ignore case for data inputted via text from a form/form? I don't remember it off hand and can't find it in the function list on php.net. Basically it changes the text in the string from a character to [a-Z] for each character. I

[PHP] New Orleans PHP Users Group

2003-11-12 Thread John Nichel
With all the talk about local php user groups, I figured that, When in Rome. So if there are any interested South Louisiana / Mississippi people, let's set something up...off list of course. -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List

RE: [PHP] New Orleans PHP Users Group

2003-11-12 Thread Jay Blanchard
[snip] With all the talk about local php user groups, I figured that, When in Rome. So if there are any interested South Louisiana / Mississippi people, let's set something up...off list of course. [/snip] This makes me homesick! :( When I move back to New Orleans I am there! GEAUX

Re: [PHP] ignoring case

2003-11-12 Thread Rolf Brusletto
Adam Williams wrote: Hi, does anyone happen to know off hand the function that will ignore case for data inputted via text from a form/form? I don't remember it off hand and can't find it in the function list on php.net. Basically it changes the text in the string from a character to [a-Z]

Re: [PHP] ignoring case

2003-11-12 Thread Marek Kilimajer
It might be strtolower and strtoupper, but they do not make string case insensitive, functions can be CI, not strings. Adam Williams wrote: Hi, does anyone happen to know off hand the function that will ignore case for data inputted via text from a form/form? I don't remember it off hand

Re: [PHP] Somewhat-OT: Notation style

2003-11-12 Thread Burhan Khalid
Chris Boget wrote: What is the name of the notation that has variable names prefixed with the first letter of the type of the variable? eg. int iVar; float fVar; string sVar; That's Hungarian notation (named after a guy that worked at MS that came up with it, iirc). The $VarNameLikeThis is

Re: [PHP] ignoring case

2003-11-12 Thread Adam Williams
Hi, I finally found it in my notes, it was sql_regcase() Rolf Brusletto wrote: Adam Williams wrote: Hi, does anyone happen to know off hand the function that will ignore case for data inputted via text from a form/form? I don't remember it off hand and can't find it in the function list on

RE: [PHP] newbie question about scope

2003-11-12 Thread Jay Blanchard
[snip] Unless I'm misunderstanding something, PHP does not implement scoping (at least in the sense that many other programming languages do) prior to PHP5. [/snip] Actually it does implement scoping, see http://us2.php.net/language.variables.scope -- PHP General Mailing List

[PHP] form action=?

2003-11-12 Thread Alan Lord
Hi all, can I put a function_name() in the form action=... place holder? I know I can use a file name, but it would be much better (for me) if I could use a function name. Thanks in advance Al -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] form action=?

2003-11-12 Thread Jay Blanchard
[snip] can I put a function_name() in the form action=... place holder? I know I can use a file name, but it would be much better (for me) if I could use a function name. [/snip] Have you tried it? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] form action=?

2003-11-12 Thread Chris Shiflett
--- Alan Lord [EMAIL PROTECTED] wrote: can I put a function_name() in the form action=... place holder? I think you can do this with JavaScript, yes. Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses

[PHP] Need OSC guru for some overflow...

2003-11-12 Thread Brian V Bonini
I've got some overflow work that requires some modifications to the functionality of OSC. Would prefer to work with someone who's already VERY VERY familiar with OSC. Please contact me @ [EMAIL PROTECTED]dotcom if interested. Thanks! -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] form action=?

2003-11-12 Thread Pablo Gosse
On Wednesday, November 12, 2003 8:23 AM Alan and Chris wrote: --- Alan --- can I put a function_name() in the form action=... place holder? --- Chris --- I think you can do this with JavaScript, yes. What is it that you hope to achieve by using a function instead of a url? You could, as

Re: [PHP] form action=?

2003-11-12 Thread Marek Kilimajer
Alan Lord wrote: Hi all, can I put a function_name() in the form action=... place holder? I know I can use a file name, but it would be much better (for me) if I could use a function name. Thanks in advance Al form action=script.php?action=edit script.php: switch($_GET['action']) {

Re: [PHP] OOP clarification: Messages between objects

2003-11-12 Thread Robert Cummings
On Wed, 2003-11-12 at 04:31, Robert Ian Smit wrote: I am trying to implement a generic form handler that is capable of printing the form and checking the user input. I want this application to be useful in the end, but I also use it to explore OOP in PHP. The working code at the moment is

[PHP] testing a variable

2003-11-12 Thread Adam Williams
Hello, I need to test a variable to see if it contains a value or not, and if not, do something. My php is a little rusty, so which would be better? if ( !$var ) { echo do something;} or if ( !isset($var ) { echo do something;} or are both of those wrong, and if so, how hsoudl I check if a

RE: [PHP] testing a variable

2003-11-12 Thread Jay Blanchard
[snip] if ( !isset($var ) { echo do something;} [/snip] self answering questions, gotta' love 'em! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] form action=?

2003-11-12 Thread Wouter van Vliet
-Original Message- From: Chris Shiflett [mailto:[EMAIL PROTECTED] Sent: woensdag 12 november 2003 17:23 To: Alan Lord; [EMAIL PROTECTED] Subject: Re: [PHP] form action=? --- Alan Lord [EMAIL PROTECTED] wrote: can I put a function_name() in the form action=... place holder? For

Re: [PHP] testing a variable

2003-11-12 Thread CPT John W. Holmes
From: Adam Williams [EMAIL PROTECTED] I need to test a variable to see if it contains a value or not, and if not, do something. [snip] if ( !isset($var ) { echo do something;} That's the correct way. What I am doing is checking a field in an sql table, and if the field is null, empty,

[PHP] Installing mcrypt

2003-11-12 Thread Mike At Spy
I am installing mcrypt on a linux server. I first installed libmcrypt 2.5.7 and now am working on mcrypt 2.6.4. When I do a ./configure for mcrypt 2.6.4, it gives me this error: checking for libmcrypt - version = 2.5.0... *** 'libmcrypt-config --version' returned 2.5.7, but LIBMCRYPT (2.5.6)

Re: [PHP] Re: Delete Temporary Internet Files

2003-11-12 Thread Mark
--- Kim Steinhaug [EMAIL PROTECTED] wrote: The original question didnt consert the OS, or where the user was at. Concerning cleaning the IE directory I would assume that he's installed PHP and IIS / Apache on his local machine. Using a webpage online on the internet to fix your local

Re: [PHP] testing a variable

2003-11-12 Thread R'twick Niceorgaw
Adam Williams said the following on 11/12/2003 11:37 AM Hello, I need to test a variable to see if it contains a value or not, and if not, do something. My php is a little rusty, so which would be better? if ( !$var ) { echo do something;} or if ( !isset($var ) { echo do something;} or are

Re: [PHP] Installing mcrypt

2003-11-12 Thread John Nichel
Mike At Spy wrote: I am installing mcrypt on a linux server. I first installed libmcrypt 2.5.7 and now am working on mcrypt 2.6.4. When I do a ./configure for mcrypt 2.6.4, it gives me this error: checking for libmcrypt - version = 2.5.0... *** 'libmcrypt-config --version' returned 2.5.7, but

RE: [PHP] multiple table rows into an array, and creating a calendar

2003-11-12 Thread Dave G
Burham why don't you do an in_array() check for each date that you print. Hope this helps. Yes, this helps a lot! However, I'm still stuck on how to get my list of dates into the array. I've been searching around on the Internet, and it seems that one has to construct a for() loop in order

[PHP] Explode a string

2003-11-12 Thread Erin
Any ideas how to do this, I have a string 734088+3+734132+9+734138+80+781007+1+ I need to place the string into a multi-array like so array[0][0] = 734088 array[0][1] = 3 array[1][0] = 734132 array[1][1] = 9 array[2][0] = 734138 array[2][1] = 80 etc... Now ive tried everything i know any

RE: [PHP] help create community newbie guide to security

2003-11-12 Thread Chris W. Parker
Chris Shiflett mailto:[EMAIL PROTECTED] on Monday, November 10, 2003 8:21 PM said: It would probably need to be either very short or very long. Yes, I would prefer very long so as to be as complete as possible. 2. The session id should not be stored on the client. I'm not sure I agree

Re: [PHP] testing a variable

2003-11-12 Thread Chris Shiflett
--- Adam Williams [EMAIL PROTECTED] wrote: I need to test a variable to see if it contains a value or not, and if not, do something. My php is a little rusty, so which would be better? This is a good page for understanding how things like isset(), is_null(), and empty() work:

[PHP] index.php4 broken

2003-11-12 Thread Michael Seely
HI -- I just broke something simple and I'm stuck. I've been using index.php3 as the start file in each directory for a long time. I just set up a new site using php4 and the index.php4 pages are not displayed as the default page for the directory. I see the text version directory listing. If

RE: [PHP] form action=?

2003-11-12 Thread Chris Shiflett
--- Wouter van Vliet [EMAIL PROTECTED] wrote: I think you can do this with JavaScript, yes. No, Chris. For as far as I know you cannot even do this with JavaScript. You can. I just said, I think, to be polite. I knew the answer. :-) Of course, as someone else pointed out, this is a terrible

RE: [PHP] Explode a string

2003-11-12 Thread Jay Blanchard
[snip] Any ideas how to do this, I have a string 734088+3+734132+9+734138+80+781007+1+ I need to place the string into a multi-array like so array[0][0] = 734088 array[0][1] = 3 etc... Now ive tried everything i know any ideas? [/snip] start with explode $arrString = explode(+,

RE: [PHP] Explode a string

2003-11-12 Thread Chris W. Parker
Erin mailto:[EMAIL PROTECTED] on Wednesday, November 12, 2003 9:13 AM said: 734088+3+734132+9+734138+80+781007+1+ I need to place the string into a multi-array like so array[0][0] = 734088 array[0][1] = 3 [snip] Now ive tried everything i know any ideas? Yes. You need to somehow

RE: [PHP] Explode a string

2003-11-12 Thread Chris W. Parker
Chris W. Parker on Wednesday, November 12, 2003 9:19 AM said: Without knowing any other way to do this I would use a regex to skip the first + and change second one, repeating this until the end of the string. Considering Jay's answer for this question, do I always do things the hard way

RE: [PHP] index.php4 broken

2003-11-12 Thread Jay Blanchard
[snip] HI -- I just broke something simple and I'm stuck. I've been using index.php3 as the start file in each directory for a long time. I just set up a new site using php4 and the index.php4 pages are not displayed as the default page for the directory. I see the text version directory

RE: [PHP] Installing mcrypt

2003-11-12 Thread Mike R
There has only been one version of libmcrypt (new server), so I'm not sure why it thinks there is a 2.5.6 version on it. Where do I find the LD_LIBRARY_PATH enviroment variable to change it? Or is there another solution? I had a similiar problem recently when trying to install

RE: [PHP] Explode a string

2003-11-12 Thread Jay Blanchard
[snip] Considering Jay's answer for this question, do I always do things the hard way or what?? [/snip] Young Grasshopper...there is more than one way to do things, a lot of them are rightsome are just harder than others. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] index.php4 broken

2003-11-12 Thread John Nichel
Michael Seely wrote: HI -- I just broke something simple and I'm stuck. I've been using index.php3 as the start file in each directory for a long time. I just set up a new site using php4 and the index.php4 pages are not displayed as the default page for the directory. I see the text version

Re: [PHP] Installing mcrypt

2003-11-12 Thread John Nichel
Mike R wrote: That was it. :) Problem is, I'm getting a different error now: *** Could not run libmcrypt test program, checking why... *** The test program compiled, but did not run. This usually means *** that the run-time linker is not finding LIBMCRYPT or finding the wrong *** version of

[PHP] Re: index.php4 broken

2003-11-12 Thread pete M
Why not save the file as index.php Michael Seely wrote: HI -- I just broke something simple and I'm stuck. I've been using index.php3 as the start file in each directory for a long time. I just set up a new site using php4 and the index.php4 pages are not displayed as the default page for the

RE: [PHP] Installing mcrypt

2003-11-12 Thread Mike R
-Original Message- From: John Nichel [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2003 12:33 PM To: Mike R Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Installing mcrypt Mike R wrote: That was it. :) Problem is, I'm getting a different error now: ***

[PHP] Help with Javascript

2003-11-12 Thread Payne
First thanks with the help I got yesterday with php and javascript problem, I have a problem with javascript and I need to know if anyone know of a javascript mailing like this, so some strange reason if I add the tag taget to this line... a href=javascript:gotoAd() target=_top Any of my

Re: [PHP] Help with Javascript

2003-11-12 Thread Payne
Pablo, Ok, I have it the page called top.php right now, are you that I need to place this in my index.html? Payne Pablo Gosse wrote: Hi Payne. The problem here is indeed the target attribute. You say that if you remove the target attribute it works, but is lost due to frames. What exactly

Re: [PHP] Installing mcrypt

2003-11-12 Thread John Nichel
Mike R wrote: snip -Original Message- From: John Nichel [mailto:[EMAIL PROTECTED] You can put where-ever you installed libmcrypt into /etc/ld.so.conf...ie, if you used '--prefix=/usr/local' when configuring libmcrypt, put /usr/local into /etc/ld.so.conf, and run 'ldconfig' Did that.

[PHP] overriding string concatenation '.'

2003-11-12 Thread tirumal b
Hello All I have an ip addr in a variable. I use 'ssh'.$ipaddr.'command' in a php file The dots in ipaddr variable are considered to be string concatenations. can it take the literal meaning in this case. Please let me know Thank you Tirumal __ Do you Yahoo!?

Re: [PHP] overriding string concatenation '.'

2003-11-12 Thread CPT John W. Holmes
From: tirumal b [EMAIL PROTECTED] I have an ip addr in a variable. I use 'ssh'.$ipaddr.'command' in a php file The dots in ipaddr variable are considered to be string concatenations. No they are not. Show some examples. ---John Holmes... -- PHP General Mailing List

[PHP] Why is this code not working?

2003-11-12 Thread Dave G
PHP Gurus, I'm trying to put the results of a query into an array. My code looks like this: ?php $query = SELECT datecolumn FROM table WHERE MONTH(datecolumn) = . $currentMonth; $result = mysql_query($query); $numRows = mysql_num_rows($result); for($i = 0; $i$numRows; $i++) {

RE: [PHP] overriding string concatenation '.'

2003-11-12 Thread Chris W. Parker
CPT John W. Holmes mailto:[EMAIL PROTECTED] on Wednesday, November 12, 2003 10:43 AM said: The dots in ipaddr variable are considered to be string concatenations. No they are not. Show some examples. What am I missing here? How is the dot operator not considered concatenation?

RE: [PHP] Why is this code not working?

2003-11-12 Thread Jay Blanchard
[snip] I'm trying to put the results of a query into an array. Is there some simple error that I'm over looking? What's going on? [/snip] Have you tried mysql_fetch_array()? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] overriding string concatenation '.'

2003-11-12 Thread Jay Blanchard
[snip] No they are not. Show some examples. What am I missing here? How is the dot operator not considered concatenation? $concatenatedString = 'a'.'concatenated'.'string'; [/snip] $ipaddr = 192.34.123.122; . is not a concatenator, it is part of the string. $myFileName = barkLikeAdog.txt; .

[PHP] Calendar

2003-11-12 Thread Steve Marquez
Hi, I am looking for a simple easy to edit php calendar program. Does anyone know where I can find one? Thanks for your help. -- Steve Marquez [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Calendar

2003-11-12 Thread Jay Blanchard
[snip] I am looking for a simple easy to edit php calendar program. Does anyone know where I can find one? [/snip] Several http://www.google.com/search?hl=enie=UTF-8oe=UTF-8q=PHP+calendar -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Calendar

2003-11-12 Thread Pablo Gosse
On Wednesday, November 12, 2003 10:50 AM, Steve wrote: I am looking for a simple easy to edit php calendar program. Does anyone know where I can find one? Pear is always a good place to start: http://pear.php.net/package/Calendar Cheers, Pablo -- PHP General Mailing List

Re: [PHP] overriding string concatenation '.'

2003-11-12 Thread Chris Shiflett
--- tirumal b [EMAIL PROTECTED] wrote: I have an ip addr in a variable. I use 'ssh'.$ipaddr.'command' in a php file The dots in ipaddr variable are considered to be string concatenations. That's wrong, which makes me think that you didn't bother trying this before you asked your question.

  1   2   3   >