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

2003-11-14 Thread Dave G
... escaping isn't necessary. Thanks so much for all the helpful advice! Okay, included the + character, and removed the escaping. And I know I'm supposed to checking into preg_match, but I'm looking at this as an opportunity to learn about regular expressions, so I still have a question. I'm

Re: [PHP] Sessions within new windows

2003-11-14 Thread Lucian Cozma
Olinux [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] If, as Chris wrote, this is indeed a feature/bug of IE, then it must be configurable somewhere, though I'm lost as to where that might be. Does anyone have any ideas how this could be controlled via IE's settings?

[PHP] Re: greek in php-xml

2003-11-14 Thread Lucian Cozma
I've encountered this problem when developing for a greek company. Do you create a html output from it ? If you do, make sure that you have meta http-equiv=Content-Type content=text/html; CHARSET=utf-8 / in the head tag of the html output. Lucian Pnp [EMAIL PROTECTED] wrote in message

[PHP] php/mysql/jpeg/rtf

2003-11-14 Thread Egil Berntsen
Mayby this is the wrong place to ask, I'll try anyway. I have some jpeg pictures in my MySQL-db that I want to put into a rtf file. Is there anyone out there that have done something like this? egil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] auto_prepend/append in htaccess....

2003-11-14 Thread Eugene Lee
On Thu, Nov 13, 2003 at 11:32:34AM -0600, Jonathan Villa wrote: : : I want to prepend a configuration file which is located outside of my : document root into my scripts. I can use auto_prepend_file, but I'm not : sure how do it with an htaccess file or a virtual host entry.. I would : prefer

[PHP] Problem using substr() and strpos() functions

2003-11-14 Thread rich
Hello List, I'm trying to extract the sub-string from a string which appears between a pair of brackets, e.g. from Mozart Requiem (15) I want to extract the string 15 I tried this: substr($s, (strpos($s, () + 1), (strpos($s, )) - strpos($s, () - 1)) but it returned the error: Parse error:

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

2003-11-14 Thread Eugene Lee
On Fri, Nov 14, 2003 at 04:32:35PM +0900, Dave G wrote: : : ... escaping isn't necessary. : : Thanks so much for all the helpful advice! : Okay, included the + character, and removed the escaping. And I know I'm : supposed to checking into preg_match, but I'm looking at this as an : opportunity

Re: [PHP] Problem with Apache 1.3.28 / PHP 4.3.3

2003-11-14 Thread Boyan Nedkov
[EMAIL PROTECTED] wrote: I had problem in the configuration of Apache 1.3.28 and PHP 4.3.3 as SAPI module, they are run well as CGI module, I put this lines for it: ScriptAlias /php/ D:/PHP4.3.3/ AddType application/x-httpd-php .php Action application/x-httpd-php /php/php.exe as SAPI module, I

[PHP] Re: Problem using substr() and strpos() functions

2003-11-14 Thread rich
Oh, sorry I've worked it out! The bug was on a different part of the line! Cheers, Richard -- UEA/MUS -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2003-11-14 Thread Pavel Jartsev
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 initialize var-s with non-constant

[PHP] Session Errors

2003-11-14 Thread G . Zimmermann
Hi all, I get the follwing error when i try to use sessions: [13-Nov-2003 22:51:55] PHP Warning: Unknown(): open(/tmp/sess_022cf8e8c691e69c9cc6aa5bce152c0b, O_RDWR) failed: Invalid argument (22) in Unknown on line 0 [13-Nov-2003 22:51:55] PHP Warning: Unknown(): Failed to write session data

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

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] 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

[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

[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

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

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_Password;

[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] 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 guess at

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

[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 --cols

[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

[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

[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

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

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 message

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

[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 ?php ? 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

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

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 on line

[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

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 read,

[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

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

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 the empty

[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] 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; $ps =

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,

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

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 happen

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

[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] 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, then you want to

[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

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

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

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.

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 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 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 input type=file tag: input type=hidden

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 000 sator

[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 --

[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

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_resp

[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=Originator you

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 can

[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 similar to that

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 =

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

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

[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] 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

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 the

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

[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?

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

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 source

[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 around the

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

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

[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 * *

[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 out

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 =

[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 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,

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: --- ?php session_start(); $SID = session_id(); echo $SID; ? a href=http://192.0.1.7/use.session.php?SID=?php echo

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

[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

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: --- ?php session_start(); $SID = session_id(); echo $SID; ? a

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 Guillaume Dupuis
This is now my initial page: ?php session_start($_GET['SID']); echo SID; ? 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

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,

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]

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

2003-11-14 Thread Chris Shiflett
--- Guillaume Dupuis [EMAIL PROTECTED] wrote: ?php 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] can I license a php script?

2003-11-14 Thread Chris W. Parker
Robert Cummings mailto:[EMAIL PROTECTED] 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

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

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,

[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 a

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 mailto:[EMAIL PROTECTED] : 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

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

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] 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

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

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 mailto:[EMAIL PROTECTED] 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

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

2003-11-14 Thread John W. Holmes
Guillaume Dupuis wrote: This is now my initial page: ?php session_start($_GET['SID']); echo SID; ? And it returns nothing to me. Heh... okay, let's start over. From Server1: If you create a link like this: a href=server2/page.php??php echo SID; ?Server 2/a Do you see the session ID appended

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] 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

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

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

  1   2   >