[PHP] strtotime bad logic or strtotime bug?

2003-11-14 Thread Gnik
Greetings, One of my servers required a PHP upgrade. Afterwards one of the PHP projects stopped functioning. When it would run one section would scroll endlessly. I can't figure out if it's a 'bug' or if it's bad logic in the coding. I isolated the problem to be in the 'strtotime' function. Here

Re: [PHP] 0-T- - - -> PHP Contest

2003-11-14 Thread Ryan A
Hey, /* What version of Outlook? I have outlook also and I've never had to open the attachment to get to the message. */ Am using version 6 (6.00.2800.1123) guess its got to do something with my settings, any ideas tell me... cheers, -Ryan > P.S Any idea why I always get your mail as an att

Re: [PHP] Re: [PHP-DB] Re: [PHP] Mulitpart form posts and mysql blobs

2003-11-14 Thread John W. Holmes
John Ryan wrote: cURL can send files when given the filename, so I have to write the filename from the database and then give cURL the path. Kind of begs the question of why you're storing files in the database in the first place... -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry

Re: [PHP] can I license a php script?

2003-11-14 Thread Robert Cummings
On Fri, 2003-11-14 at 22:13, Chris wrote: > Why wouldn't I be able to charge for the software? > > Quoted from the GNU General Public License: > "When we speak of free software, we are referring to freedom, not price. Our > General Public Licenses are designed to make sure that you have the freedo

RE: [PHP] can I license a php script?

2003-11-14 Thread Chris W. Parker
Chris on Friday, November 14, 2003 7:13 PM said: > Why wouldn't I be able to charge for the software? [snip] Sounds good to me! :) Chris. -- Don't like reformatting your Outlook replies? Now there's relief! http://home.in.tum.de/~jain/software/outlook-quotefix/

[PHP] Want to install and link gd extension to PHP

2003-11-14 Thread Manisha Sathe
On Linux / PHP, for one third party software (moregroupware), I need gd PHP extension. Initially I tried to uncomment the line in php.init as extension=php_gd2.dll but it did not work, i tried to find files for gd but only one file php_gd.h exists, so i tried with that extension=php_gd.h (I tried

Re: [PHP] can I license a php script?

2003-11-14 Thread Chris
Why wouldn't I be able to charge for the software? Quoted from the GNU General Public License: "When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge

Re: [PHP] Re: [PHP-DB] Re: [PHP] Mulitpart form posts and mysql blobs

2003-11-14 Thread Raditha Dissanayake
Hi John, Your new information does make my previous post redundant :-) However I disagree when you say. "cURL can send files when given the filename, so I have to write the filename from the database and then give cURL the path. But thats messy" IMHO this is a lot less messier than the current a

[PHP] Re: [PHP-DB] Re: [PHP] Mulitpart form posts and mysql blobs

2003-11-14 Thread John Ryan
Sorry, I should have said. Im trying to send this file to an external multipart form script which converts the file to the desired format. Im using cURL to do this. cURL can send files when given the filename, so I have to write the filename from the database and then give cURL the path. But thats

Re: [PHP] PHP fopen function

2003-11-14 Thread Sushmita Roy
I just set the register_global to On. But that does not seem to make a difference. I know the parameters are being passed correctly because I am printing an error message when the file cannot be opened with the filename which is passed a parameter, and that is exactly what I had passed. Raditha D

Re: [PHP] Mulitpart form posts and mysql blobs

2003-11-14 Thread Raditha Dissanayake
Hi, Haven't really done much work with blobs ( i always prefer to save just the file name in the databse) obviously this is a scenario where that approach is advantages. multipart/form-data isn't a very complex encoding scheme. Essentially what it does is combine all the files and other form f

Re: [PHP] PHP fopen function

2003-11-14 Thread Raditha Dissanayake
Hi, what's your register global settings? If this is off (which is the most likely) the parameters that you pass across may not be intepreted correctly. Are you by any chance on any of these virtual hosting schemes like cpanle or ensim? their handling of file paths are rather wierd and that too

Re: [PHP] msession - giving me a hard time

2003-11-14 Thread John W. Holmes
Guillaume Dupuis wrote: This is now my initial page: And it returns nothing to me. Heh... okay, let's start over. From Server1: If you create a link like this: Server 2 Do you see the session ID appended to that URL? If you do, then a simple session_start() on the server2/page.php will be

Re: [PHP] Mulitpart form posts and mysql blobs

2003-11-14 Thread John W. Holmes
John Ryan wrote: How are files encoded when theyre sent in mulitpart forms??? Is it the same as blob fields in mySQL databased when you use the LOAD_FILE() command?? If not, is it easy to convert from one to the other?? At the moment, Im taking the blob from mySQL and writing it to a file and then

RE: [PHP] can I license a php script?

2003-11-14 Thread Robert Cummings
On Fri, 2003-11-14 at 18:54, Chris W. Parker wrote: > Robert Cummings > on Friday, November 14, 2003 1:34 PM said: > > > Be careful though, if your code incorporates other peoples code, for > > instance Smarty, or PEAR::DB then it may fall under their license. For >

Re: [PHP] PHP fopen function

2003-11-14 Thread Sushmita Roy
Yes, I am calling the fopen with two parameters. The filename is also a string. The problem is when I pass a string variable the fopen fails but succeeds when I pass a constant string. Raditha Dissanayake wrote: Hi, fopen usually takes two arguments, the filenames is expected to be a string and ch

Re: [PHP] Executing CRON from a WebForm..

2003-11-14 Thread Raditha Dissanayake
Hi, reply without trying your code: You might need suexec to achieve this, else i don't belive one user can set the cron jobs for another user. Remember apache is usually running as a non privileged user. Andres Villalobos Camacho wrote: Sorry. The problem is that I cannot get the "crontab" comm

Re: [PHP] can I license a php script?

2003-11-14 Thread Raditha Dissanayake
Hi Kim, You do raise a lot of valid points about protecting your software. However we must also keep in mind that over protection makes a software very difficult to use. Unless we balance the two there will not be any sales. Kim Steinhaug wrote: Robert has some interesting thoughts aswell here.

Re: [PHP] PHP fopen function

2003-11-14 Thread Raditha Dissanayake
Hi, fopen usually takes two arguments, the filenames is expected to be a string and check your register_globals settings. Sushmita Roy wrote: Hi, I am developing a web application using PHP and I am facing a funny kind of problem with the PHP fopen function. I have a webscript, which has a functi

Re: [PHP] can I license a php script?

2003-11-14 Thread Eugene Lee
On Fri, Nov 14, 2003 at 03:54:33PM -0800, Chris W. Parker wrote: : : Robert Cummings : on Friday, November 14, 2003 1:34 PM said: : : > Be careful though, if your code incorporates other peoples code, for : > instance Smarty, or PEAR::DB then it may fall under their

[PHP] Re: greek in php-xml

2003-11-14 Thread pnp
I tried that, but still i got weird symbols. The xml, the xmlparser are set for utf-8 and so are the html pages. I used the code which is in the chm file ... Any ideas? "Lucian Cozma" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I've encountered this problem when developing for

Re: [PHP] 0-T- - - -> PHP Contest

2003-11-14 Thread Ryan A
Hey again David, % >Just did; didn't see it. Got a full URL? % % yep, http://www.bestwebhosters.com % heheheeh ?*snort* That's not good enough. Hehe maybe not, but you gotto admit, pretty funny :-) % theres a contest link on the top right.. under resources,showcase etc >Well, I saw that, a

Re: [PHP] 0-T- - - -> PHP Contest

2003-11-14 Thread David T-G
Ryan -- ...and then Ryan A said... % % Hey David, Hi! % % >Just did; didn't see it. Got a full URL? % % yep, http://www.bestwebhosters.com % heheheeh *snort* That's not good enough. % % theres a contest link on the top right.. under resources,showcase etc Well, I saw that, and it too

RE: [PHP] can I license a php script?

2003-11-14 Thread Chris W. Parker
Robert Cummings on Friday, November 14, 2003 1:34 PM said: > Be careful though, if your code incorporates other peoples code, for > instance Smarty, or PEAR::DB then it may fall under their license. For > instance if your code "depends" and I believe the key here is

[PHP] Mulitpart form posts and mysql blobs

2003-11-14 Thread John Ryan
How are files encoded when theyre sent in mulitpart forms??? Is it the same as blob fields in mySQL databased when you use the LOAD_FILE() command?? If not, is it easy to convert from one to the other?? At the moment, Im taking the blob from mySQL and writing it to a file and then uploading that f

RE: [PHP] msession - giving me a hard time

2003-11-14 Thread Chris Shiflett
--- Guillaume Dupuis <[EMAIL PROTECTED]> wrote: > session_start($_GET['SID']); > echo SID; > ?> I think SID is a constant that will be something like this: ?PHPSESSID=12345 or nothing. It is this way so that you can use it to append to a URL, and it will not add anything to the URL if there is

RE: [PHP] Having fits with input to array

2003-11-14 Thread Susan Ator
Actually, what I need to do is: $var1 = $Array2[1] $var2 = $Array2[2] etc... but I just seem to get Array as the output of $var1, $var2, etc... susan -Original Message- From: CPT John W. Holmes To: Susan Ator; 'Lowell Allen'; PHP Sent: 11/14/03 4:01 PM Subject: Re: [PHP] Havin

RE: [PHP] msession - giving me a hard time

2003-11-14 Thread Guillaume Dupuis
Quote from PHP Manual: "PHP is capable of transforming links transparently. Unless you are using PHP 4.2 or later, you need to enable it manually when building PHP. Under UNIX, pass --enable-trans-sid to configure. If this build option and the run-time option session.use_trans_sid are enabled, rel

RE: [PHP] msession - giving me a hard time

2003-11-14 Thread Guillaume Dupuis
This is now my initial page: And it returns nothing to me. I must be retarded, your explanation is s simple! Thanks again, Guillaume -Original Message- From: CPT John W. Holmes [mailto:[EMAIL PROTECTED] Sent: Friday, November 14, 2003 5:57 PM To: Guillaume Dupuis; [EMAIL PROTECTED]

Re: [PHP] 0-T- - - -> PHP Contest

2003-11-14 Thread Ryan A
Hey David, >Just did; didn't see it. Got a full URL? yep, http://www.bestwebhosters.com heheheeh theres a contest link on the top right.. under resources,showcase etc HTH. Cheers, -Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] msession - giving me a hard time

2003-11-14 Thread CPT John W. Holmes
From: "Guillaume Dupuis" <[EMAIL PROTECTED]> > I've tried your suggestion and yes, I am transferring the SID variable to > the next page... but I don't know if I am doing the this right. > > This is the code I use: > --- > session_start(); > $SID = session_id(); > echo $SID; > ?> > > LinuxBox2 > -

[PHP] PHP fopen function

2003-11-14 Thread Sushmita Roy
Hi, I am developing a web application using PHP and I am facing a funny kind of problem with the PHP fopen function. I have a webscript, which has a function in which a file has to be opened in the directory of the webserver. The function takes the file path as a parameter. The fopen function fail

Re: [PHP] Re: get some part of text

2003-11-14 Thread Chris Hayes
Could you please adjust your computer time or the timezone setting? Your mail arrives as if it was send tomorrow morning. Quite confusing when replies arrive at an earlier time and hard to follow this list. At 07:24 15-11-2003, you wrote: I can not understand very well, shoul I write something

RE: [PHP] msession - giving me a hard time

2003-11-14 Thread Guillaume Dupuis
Hi John, I've tried your suggestion and yes, I am transferring the SID variable to the next page... but I don't know if I am doing the this right. This is the code I use: --- LinuxBox2 --- This seems to work, since when I open the page on LinuxBox2, will return me the same SID, without doing

Re: [PHP] Executing CRON from a WebForm..

2003-11-14 Thread Andres Villalobos Camacho
Sorry. The problem is that I cannot get the "crontab" command executed. I did try with the backsticks, but it didn't work either. I have different users, login in to the website using phpSecurePages, how can I let them change their "crontab"? Is my approach too wrong?? Any ideas?? Thanx.. On Fri,

[PHP] Re: get some part of text

2003-11-14 Thread Kim Steinhaug
Well, still no problem. If there are only one instance of the "job_resp errorCode" you just alter the explode() abit. Else, the clever part with array_push() Let me do some online coding here, might contain some errors though, :) $error = new array(); $yourstring = 'job_resp errorCode="4194337"

Re: [PHP] Executing CRON from a WebForm..

2003-11-14 Thread Chris Hayes
At 22:52 14-11-2003, you wrote: Hi!!. I'm trying to give users the chance to modify its cron from a webform. The webform let's the users choose the day, month and minutes after hour, then, using PHP I made one long string and save it into a file ($tmpnam), it looks like this: $content = "$m

[PHP] Re: get some part of text

2003-11-14 Thread QT
dear Kim, Thanks for your clever soltion but; If string will have another errorCode before 'job_resp errorCode=" It will use first one value. What can we do better than this one? "Kim Steinhaug" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > You could ofcourse to the "easyway ou

[PHP] Executing CRON from a WebForm..

2003-11-14 Thread Andres Villalobos Camacho
Hi!!. I'm trying to give users the chance to modify its cron from a webform. The webform let's the users choose the day, month and minutes after hour, then, using PHP I made one long string and save it into a file ($tmpnam), it looks like this: $content = "$min $hour $day * * /tmp/parse_ma

Re: [PHP] can I license a php script?

2003-11-14 Thread Kim Steinhaug
Robert has some interesting thoughts aswell here. I just wanted to complement the stuff about securing your scripts. Zend has Zend Encoder, rather expensive - and with windows GUI. IonCube also has encoder, much more affordable, CommandLine. www.zend.com The first encodes and optimizes your code

Re: [PHP] 0-T- - - -> PHP Contest

2003-11-14 Thread David T-G
Ryan -- ...and then Ryan A said... % % Hey all, % Check out Bestwebhosters.com for a free PHP contest. Just did; didn't see it. Got a full URL? TIA & HAND :-D -- David T-G * There is too much animal courage in (play) [EMAIL PROTECTED] * society and not sufficient moral

[PHP] Re: get some part of text

2003-11-14 Thread Kim Steinhaug
You could ofcourse to the "easyway out" splitting, hehe. example : $yourstring = 'job_resp errorCode="4194337" description="Originator you"'; $temp = explode('errorCode="',$yourstring); $temp2=explode('"',$temp[0]); echo $temp2[0]; Voila! Should always work, aslong as there there are always " ar

RE: [PHP] can I license a php script?

2003-11-14 Thread Robert Cummings
On Fri, 2003-11-14 at 16:33, Dan Joseph wrote: > Hi, > > Its like any program written in any language. You are licensing the > product you created with the language, the functionality, the int property, > etc.. Stick a price on it, and sell it. There are some tools for > protecting your s

RE: [PHP] can I license a php script?

2003-11-14 Thread Dan Joseph
Hi, Its like any program written in any language. You are licensing the product you created with the language, the functionality, the int property, etc.. Stick a price on it, and sell it. There are some tools for protecting your source of the code too. Check www.zend.com, I don't remem

[PHP] can I license a php script?

2003-11-14 Thread Chris
I am planning on writing a program in PHP and, hopefully sell it for a few dollars. Are there any licensing issues I should be concerned about when I distribute the program. What confuses me is, I'm not distributing PHP only code that uses PHP, so what am I to license, my intellectual property? Th

Re: [PHP] Installing PHP on HP

2003-11-14 Thread Chris Shiflett
--- Christopher Weaver <[EMAIL PROTECTED]> wrote: > For learning purposes, can I install and run PHP on my XP Home Edition > machine? If not that, how about an NT 4.0 Workstation? Yes, there is even a Windows mailing list. http://www.php.net/mailing-lists.php http://marc.theaimsgroup.com/?l=php-w

Re: [PHP] Having fits with input to array

2003-11-14 Thread CPT John W. Holmes
From: "Susan Ator" <[EMAIL PROTECTED]> > Perfect! That did exactly what I needed. Good... > Now, *ahem*, I thought I knew how to assign variables to the elements in > Array2 but *cough* I'm somewhat befuddled. I've not been able to find > anything in the online php manual. Could you point me in

Re: [PHP] variables from perl cgi into a php

2003-11-14 Thread CPT John W. Holmes
From: "mailing" <[EMAIL PROTECTED]> > I have a multiuser web based image managment application (the Perl script) and I want to add some accounting scripts (to be written in php). The guy that wrote the perl script is unavailable to work it in the perl script due to time constraints - so I was won

[PHP] Installing PHP on HP

2003-11-14 Thread Christopher Weaver
For learning purposes, can I install and run PHP on my XP Home Edition machine? If not that, how about an NT 4.0 Workstation? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Having fits with input to array

2003-11-14 Thread Susan Ator
Perfect! That did exactly what I needed. Now, *ahem*, I thought I knew how to assign variables to the elements in Array2 but *cough* I'm somewhat befuddled. I've not been able to find anything in the online php manual. Could you point me in the right direction for that? Thank you, susan -Or

Re: [PHP] variables from perl cgi into a php

2003-11-14 Thread mailing
Thanks for your reply John... To embelish a bit... I have a multiuser web based image managment application (the Perl script) and I want to add some accounting scripts (to be written in php). The guy that wrote the perl script is unavailable to work it in the perl script due to time constraints

Re: [PHP] get some part of text

2003-11-14 Thread CPT John W. Holmes
[snip] job_resp errorCode="4194337" description="Originator you" I need to take only errorCode value from this string. I am thinking and thinking and can not find how to to. I can split with "=" but allways erroCode place is changing in the string. [/snip] How about this, also... $pos = strpos('

[PHP] Re: get some part of text

2003-11-14 Thread QT
I can not understand very well, shoul I write something like that $NewError = /errorCode=\"([~\"]+)\"/; "Rob Adams" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Try a regular expression. > > /errorCode=\"([~\"]+)\"/ > > I'm not good at that kind of syntax, but something very si

Re: [PHP] variables from perl cgi into a php

2003-11-14 Thread CPT John W. Holmes
From: "mailing" <[EMAIL PROTECTED]> > I wonder if any one can help with this problem. > I have a script working really well (not my scripting but my script) written in perl /cgi. > I would like to write some simple scripts using the variables and data from the cgi script. > Is there a way that I ca

[PHP] Re: get some part of text

2003-11-14 Thread Rob Adams
Try a regular expression. /errorCode=\"([~\"]+)\"/ I'm not good at that kind of syntax, but something very similar to that should work. -- Rob "Qt" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > dear Sirs, > > I have this string; > > job_resp errorCode="4194337" description="

RE: [PHP] get some part of text

2003-11-14 Thread Jay Blanchard
[snip] job_resp errorCode="4194337" description="Originator you" I need to take only errorCode value from this string. I am thinking and thinking and can not find how to to. I can split with "=" but allways erroCode place is changing in the string. [/snip] If the line always begins with job_res

[PHP] variables from perl cgi into a php

2003-11-14 Thread mailing
Hi I wonder if any one can help with this problem. I have a script working really well (not my scripting but my script) written in perl /cgi. I would like to write some simple scripts using the variables and data from the cgi script. Is there a way that I can extract the variables in the cgi scri

[PHP] get some part of text

2003-11-14 Thread QT
dear Sirs, I have this string; job_resp errorCode="4194337" description="Originator you" I need to take only errorCode value from this string. I am thinking and thinking and can not find how to to. I can split with "=" but allways erroCode place is changing in the string. Any idea Best Regards

Re: [PHP] Having fits with input to array

2003-11-14 Thread CPT John W. Holmes
From: "Susan Ator" <[EMAIL PROTECTED]> > For example, the command: > > ps -C bash --no-headers -o fname,state,vsz,start_time,flag,user,cputime,args > --cols 200 > > gives me the output of: > bash S 4396 Nov13 000 sator 00:00:00 -bash > bash S 4392 Nov13 000 sator 00:00:00 -bash > bash S 4396 Nov13

[PHP] RE: Changing case

2003-11-14 Thread Jeremy Shovan
Use the strtoupper() function $var = strtoupper($var); -Original Message- From: Robert Sossomon [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2003 8:29 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Changing case I have a form that allows for an item to be entered, the

RE: [PHP] upload file size

2003-11-14 Thread Johnson, Kirk
> this could really kill my bandwidth. is there a way to check > the file size > without fully uploading the file? Although it has been called an "urban legend" :), you could try the old MAX_FILE_SIZE trick. For this, add a hidden tag before the tag: This is an instruction to the browser to r

RE: [PHP] Random Function

2003-11-14 Thread Pablo Gosse
Teren wrote: > Anyways, it works fine if I put 0 in for 1 on line 9 where it > uses the rand(), but it include 0 and I can't have 0. Why not just change the following: > if($ran == $sh) { > $add = "no"; > } to: > if($ran == $sh || $ran == 0) { > $add = "no"; >

Re: [PHP] upload file size

2003-11-14 Thread Gerard Samuel
On Friday 14 November 2003 12:48 pm, joe wrote: > is there a way to check the file size > without fully uploading the file? > No there isnt, well at least not via php... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Random Function

2003-11-14 Thread Teren
Sorry, i copied a little extra stuff from console. This is what it is, Anyways, it works fine if I put 0 in for 1 on line 9 where it uses the rand(), but it include 0 and I can't have 0. Is there some way to fix that? If you need to see the demo of it working with the 0 in place, i can do that. 0

RE: [PHP] Having fits with input to array

2003-11-14 Thread Susan Ator
Well, my understanding is the array($ps2); bit takes care of that. What I need to do is call the ps command with the options listed for each program I'm interested in tracking, take each line output and treat it as an element in an array. Then, for each array element I need to create another array

Re: [PHP] Random Function

2003-11-14 Thread CPT John W. Holmes
You're code doesn't make sense. You're looking for 3 random numbers, between 1 and 3 inclusive. Umm.. 1,2,3. Do you want them in a random order, or something? Maybe the upper limit of rand() and how many numbers you're looking for ($n), should be different?? ---John Holmes... - Original Mes

[PHP] Random Function

2003-11-14 Thread Teren
Hi, I have the following function that generates a random number, but the key is it only generates the number once within the range you specify. So, if you want a range of 5 numbers, it will give you 5 different numbers. My problem is the function was set to start at 0, but I need it to start at

Re: [PHP] File permissions on Windows, IIS

2003-11-14 Thread CPT John W. Holmes
From: "Chris Shiflett" <[EMAIL PROTECTED]> --- Marius Røstad <[EMAIL PROTECTED]> wrote: > > I have a Windows XP pro > [snip] > > How do I change file permissions to make it "identical" to the > > chmod 777 on Unix systems. > > With Windows, you probably right-click the file and go to properties, th

[PHP] upload file size

2003-11-14 Thread joe
Hi i really need help with an upload script. right now i use if ($HTTP_POST_FILES['userfile']['size']>$maxsize) { echo "File too big"; exit; } to determine if the file is larger than allowed. but the problem is, that if the file IS larger, it is still first fully uploaded and then checked. i tested

Re: [PHP] Problem with is_array() and empty() for $_SESSION...

2003-11-14 Thread Chris Shiflett
--- Scott Fletcher <[EMAIL PROTECTED]> wrote: > One question though, wouldn't it make more sense to have the result be > either as 0 or 1 (or true or false) instead of blank or 1. I first > interpret the blank as something is wrong with the script or functions. I agree that 1 and 0 would be more i

Re: [PHP] Problem with is_array() and empty() for $_SESSION...

2003-11-14 Thread Scott Fletcher
Sorry for the duplicate... MS-Outlook Express returned an error message saying it had socket problem with PHP newsgroup. "Scott Fletcher" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Thanks for jogging my memory. I seem to be so focus on this for a couple of > hours and didn't h

Re: [PHP] Problem with is_array() and empty() for $_SESSION...

2003-11-14 Thread Scott Fletcher
Thanks for jogging my memory. Found the problem, I forgot to increment the column count on the odbc_result so, left the rest of the column off by 1 count when I added 6 columns (odbc_result) to the $_SESSION. How goofy of me! Anyway, I first thought that data returned as blank meant something is

Re: [PHP] Problem with is_array() and empty() for $_SESSION...

2003-11-14 Thread Scott Fletcher
Thanks for jogging my memory. I seem to be so focus on this for a couple of hours and didn't happen to see that I make one minor typo with adding the six $_SESSION data. I assign the odbc_result() to it, so forgot to increment the number on one of them, so the rest after it was off by one. So, it

Re: [PHP] Having fits with input to array

2003-11-14 Thread Lowell Allen
> I have a series of commands like so (with different programs on each line): > > display_pgm("bash"); > > Here is the bare bones of the function 'display_pgm': > > function display_pgm ($pgm) { > $cmd = " -C $pgm --no-headers -o > pid,fname,state,vsz,start_time,flag,user,cputime,args --cols 200

[PHP] Having fits with input to array

2003-11-14 Thread Susan Ator
I am sending this again as it seems like it didn't go the first time. I have a series of commands like so (with different programs on each line): display_pgm("bash"); Here is the bare bones of the function 'display_pgm': function display_pgm ($pgm) { $cmd = " -C $pgm --

Re: [PHP] Problem with is_array() and empty() for $_SESSION...

2003-11-14 Thread Chris Shiflett
--- Scott Fletcher <[EMAIL PROTECTED]> wrote: > session_start(); > > print_r($_SESSION); > //This one work because it spitted out datas from previous webpage > > echo (!(is_array($_SESSION))); > //This spitted out result as a blank This is because echo deals with strings. The boolean false is th

Re: [PHP] Headers Sent Message

2003-11-14 Thread Marek Kilimajer
Mark Roberts wrote: Could someone help me out with this. I had this problem about a year ago with another site and I can't for the life of me remember what I had to do to fix it. I am in a oscommerce application, however I think it is really a php problem. I get this message when ever I try to upd

[PHP] Problem with is_array() and empty() for $_SESSION...

2003-11-14 Thread Scott Fletcher
Hi Everyone! I'm a little bit baffled by this problem. The sample script below showed that it should work but it doesn't because most of them returned false... --snip-- session_start(); print_r($_SESSION); //This one work because it spitted out datas from previous webpage... echo (!(is_ar

Re: [PHP] File permissions on Windows, IIS

2003-11-14 Thread Chris Shiflett
--- Marius Røstad <[EMAIL PROTECTED]> wrote: > I have a Windows XP pro [snip] > How do I change file permissions to make it "identical" to the > chmod 777 on Unix systems. This is a total guess, but... With Windows, you probably right-click the file and go to properties, then you want to grant

[PHP] File permissions on Windows, IIS

2003-11-14 Thread Marius Røstad
I have a Windows XP pro with IIS 5.1 and Php 4.3.3 which I use for local development, and I'm trying to use a bunch of the file commands for making a very simple file manager application. However, I can't seem to get most of them to work, i.e. mkdir(). I get a permission denied message. I have res

Re: [PHP] Headers Sent Message

2003-11-14 Thread Chris Shiflett
--- Mark Roberts <[EMAIL PROTECTED]> wrote: > Warning: Cannot modify header information - headers already sent by > (output started at /home/virtual/site1/fst/var/www/html/admin3/includes/application_top.php:267 > ) in > /home/virtual/site1/fst/var/www/html/admin3/includes/functions/general.php > o

Re: [PHP] date()

2003-11-14 Thread Chris Shiflett
--- Chris Mach <[EMAIL PROTECTED]> wrote: > Does date() give the local time of the Server? date() formats a timestamp, and it uses the current timestamp (whatever time() would return) when you don't specify one. Yes, an incorrect server time will give you an incorrect formatted date. Hope that he

[PHP] Re: Headers Sent Message

2003-11-14 Thread pete M
If the files are included then one of the "catch me's" is when theres a space before or after the tags pete Mark Roberts wrote: Could someone help me out with this. I had this problem about a year ago with another site and I can't for the life of me remember what I had to do to fix it. I am in

Re: [PHP] date()

2003-11-14 Thread Eugene Lee
On Fri, Nov 14, 2003 at 10:51:57AM -0500, Chris Mach wrote: : : Does date() give the local time of the Server? or is it based on : something else? The server. : Because I have this code: : : echo date ("F n, Y"); : : and it should say November 14, 2003 but it echos November 11, 2003. : 3 days

Re: [PHP] Headers Sent Message

2003-11-14 Thread CPT John W. Holmes
From: "Mark Roberts" <[EMAIL PROTECTED]> > Could someone help me out with this. I had this problem about a year ago > with another site and I can't for the life of me remember what I had to do > to fix it. I am in a oscommerce application, however I think it is really a > php problem. I get this m

RE: [PHP] date()

2003-11-14 Thread Jay Blanchard
[snip] echo date ("F n, Y"); [/snip] Should be; echo date("F d, Y"); n - Numeric representation of a month, without leading zeros read carefully http://www.php.net/date -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] 0-T- - - -> PHP Contest

2003-11-14 Thread Ryan A
Hey all, Check out Bestwebhosters.com for a free PHP contest. Prize is 1 year of free webhosting on a 200mb space account and 1 domain name of your choice for a year. Cheers, -R -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Headers Sent Message

2003-11-14 Thread Mark Roberts
Could someone help me out with this. I had this problem about a year ago with another site and I can't for the life of me remember what I had to do to fix it. I am in a oscommerce application, however I think it is really a php problem. I get this message when ever I try to update the admin portion

[PHP] date()

2003-11-14 Thread Chris Mach
Does date() give the local time of the Server? or is it based on something else? Because I have this code: echo date ("F n, Y"); and it should say November 14, 2003 but it echos November 11, 2003. 3 days behind. Is the date wrong on the server? or is this something I can fix? -- PHP General M

[PHP] Having fits with input to array

2003-11-14 Thread Susan Ator
I have a series of commands like so (with different programs on each line): display_pgm("bash"); Here is the bare bones of the function 'display_pgm': function display_pgm ($pgm) { $cmd = " -C $pgm --no-headers -o pid,fname,state,vsz,start_time,flag,user,cputime,args --co

Re: [PHP] PHP 4 SESSION ONLY COOKIE - 1 attachment

2003-11-14 Thread Dominik W.
1.) i have tested my browser in all security moeds... in NO mode i can recognize a resutl! 2.) session.use_trans_sid = on but only the serveradmin can change this. could i not avoid the script from adding the SID to the relating links by setting session.user_only_cookies = on ? Is it poss

Re: [PHP] PHP 4 SESSION ONLY COOKIE - 1 attachment

2003-11-14 Thread Chris Shiflett
--- "Dominik W." <[EMAIL PROTECTED]> wrote: > With the following script, i cannot create a session with > session.use_only_cookies 'on' > When i login, the server NEVER set a cookie with the sessionID on my > client... and he adds the SID to all my relating links on page. I'm going to make a gue

[PHP] CGI error when loading iFRAME

2003-11-14 Thread Miroslav I.
Hi, people #The problem: There is an error message that stops proper loading of one iFRAME, I couldn't understand what is the problem. Complete error message issued: >>CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are

Re: [PHP] include/require not allowed in classes?

2003-11-14 Thread Ryan A
Hey guys, Thanks for replying. This is the solution that actually works. class ads_DB extends DB_Sql { var $Host = ""; var $Database = ""; var $User = ""; var $Password = ""; /* public: constructor */ function ads_DB($query = "") { global $MR_Host,$MR_Database,$MR_User,$MR_

Re: [PHP] include/require not allowed in classes?

2003-11-14 Thread Boyan Nedkov
Ryan, Pavel, Pavel Jartsev wrote: Ryan A wrote: ... > class ads_DB extends DB_Sql { var $Host = $MR_Host; var $Database = $MR_Database; var $User = $MR_User; var $Password = $MR_Password; } > I think, Your problem is here. If i remember correctly, then PHP4 doesn't allow to

[PHP] Session only cookies???

2003-11-14 Thread Dominik W.
i Wrote my own login, based on session, usong session_start(); I want the script to save the SessionID in a cookie @ the cients pc... but it doesnt work! It never set a cookie but it ever add the session id as a variable to all relating links in the script! What i want is, to save the sessionID

[PHP] PHP 4 SESSION ONLY COOKIE - 1 attachment

2003-11-14 Thread Dominik W.
With the following script, i cannot create a session with session.use_only_cookies 'on' When i login, the server NEVER set a cookie with the sessionID on my client... and he adds the SID to all my relating links on page. What i want is a session, that saves the sid in a cokkie at the clients pc

RE: [PHP] Why would this eregi() function not work?

2003-11-14 Thread Dave G
> The last part of your pattern needs to be changed because it > allows for a top-level domain to contain numbers and hyphens. > Currently, such a thing does not exist. Okay... I can change that... (!eregi('[EMAIL PROTECTED]', $email)) > Also, the 2nd part of your pattern allows for a 2nd-level

Re: [PHP] Why would this eregi() function not work?

2003-11-14 Thread David T-G
Dave -- ...and then Dave G said... % % > ... escaping isn't necessary. % % Thanks so much for all the helpful advice! You're quite welcome :-) % Okay, included the + character, and removed the escaping. And I know I'm Good! % supposed to checking into preg_match, but I'm looking at this as

Re: [PHP] next,key,current question

2003-11-14 Thread Marek Kilimajer
Sara Daugherty wrote: I am having trouble with creating a list box. I am attaching the code. I am not sure the code in the for loop close to the end of the program is correct. If someone could take a look at it I would appreciate it. Thanks, Sara I like to use foreach: foreach($Classes as $Clas

  1   2   >