Re: [PHP] Re: ArrayInterator always true

2012-01-28 Thread Fatih P.
2012/1/28 Mihai Anghel If you enable notices you will see that PHP outputs this : Notice: ArrayIterator::next(): Array was modified outside object and internal position is no longer valid.This line seems to be the problem //Test if next stream is an option for ( $iterator->next(); $iterator->vali

Re: [PHP] What's Your Favorite Design Pattern?

2012-02-07 Thread Fatih P.
mostly MVC, Singleton and Factory. depends on requirements.

Re: [PHP] how to execute Exe file in system

2012-02-17 Thread Fatih P.
On Fri, Feb 17, 2012 at 1:26 PM, Negin Nickparsa wrote: > I have a Gams application< > http://interfaces.gams-software.com/doku.php?id=env%3aspawning_gams_from_php > > > which I want to run it through php code after trying many things finally I > found that for running in commmand line I should g

Re: [PHP] how to execute Exe file in system

2012-02-17 Thread Fatih P.
give the full path of trnsport_php.gms too. shell_exec should be working fine on windows as well.

Re: [PHP] how to execute Exe file in system

2012-02-17 Thread Fatih P.
replace \ in path with / then should work fine on windows too.

Re: [PHP] how to execute Exe file in system

2012-02-17 Thread Fatih P.
On Fri, Feb 17, 2012 at 2:19 PM, Stuart Dallas wrote: > On 17 Feb 2012, at 12:12, Negin Nickparsa wrote: > > if (($out = system(' "C:/Program Files/GAMS23.7/gams.exe "C:/Program > > Files/GAMS23.7/trnsport_php.gms')) !== FALSE) > > { > > print('Not error!'); > > printf('Output is "%s"', $out); >

Re: [PHP] how to execute Exe file in system

2012-02-17 Thread Fatih P.
ERRORNULL maybe program Files which has space should have something like \ which I don't know ha? or because of Null It is correct? means false.. it cannot find the path. you have problem with path.

Re: [PHP] how to execute Exe file in system

2012-02-17 Thread Fatih P.
;dir') > shows me files of C:\Program Files\GAMS23.7 > then it shoud run the command gams.exe transport.gms without giving > pathfiles > > what's wrong here? > what reason is here for setting path files? > > > On Fri, Feb 17, 2012 at 5:06 PM, Fatih P. wrote:

Re: [PHP] how to execute Exe file in system

2012-02-17 Thread Fatih P.
well then fix it. i m not using editor.

Re: [PHP] Test

2012-02-20 Thread Fatih P.
On Mon, Feb 20, 2012 at 8:57 PM, Jay Blanchard < jay.blanch...@sigmaphinothing.org> wrote: > Does this work? > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > it works

Re: [PHP] Selecting checkboxes based on SQL query

2012-02-23 Thread Fatih P.
On Thu, Feb 23, 2012 at 8:49 PM, Rick Dwyer wrote: > Hello all. > > I perform a SQL query like the following: > > $sql = 'select * from my_table where id="10" > > It returns the the following array for 3 records: > > > Array ( [0] => Array ( [cb] => 2 ) [1] => Array ( [cb] => 6 ) [2] => Array > (

Re: [PHP] Selecting checkboxes based on SQL query

2012-02-23 Thread Fatih P.
So, to use my existing function, how do I get the following array to look > like the above one: > > > Array ( [0] => Array ( [cb] => 2 ) [1] => Array ( [cb] => 6 ) [2] => Array > ( [cb] => 1 ) ) > > > --Rick > > > > On Feb 23, 2012, at 2:08 PM

Re: [PHP] Apache 2.4.1 and php?

2012-02-24 Thread Fatih P.
On Fri, Feb 24, 2012 at 3:58 AM, Daniel Fenn wrote: > Hi, > > Just a quick question, will I be able to run Apache 2.4.1 and php > 5.3.10 together? Or will I need to wait for php to be updated? I'm > setting this up on CentOs 6.2 > > Regards, > Daniel Fenn > > -- > PHP General Mailing List (http:/

Re: [PHP] time/task reporting

2012-03-01 Thread Fatih P.
On Thu, Mar 1, 2012 at 10:43 AM, Robert Nilsson wrote: > Hi, > Ok, I admit -I'm lazy! > Been asked to make a reporting tool, what and how many hours spent on > Possible with a save option, to enable continuously adding during the > week, before sending off by mail to manager and one self. > >

Re: [PHP] Mime Mail problem

2012-03-28 Thread Fatih P.
On Wed, Mar 28, 2012 at 9:26 PM, Alexis wrote: > I am hitting my head over a problem with Mime Mail...which i am hoping > some kind some can help me out on please > > The email is sent out fine and when viewing the source, appears to be > fine, however neither the body of the email, nor the attac

Re: [PHP] Mime Mail problem

2012-03-28 Thread Fatih P.
On Wed, Mar 28, 2012 at 11:44 PM, Alexis wrote: > If I insert the full stop after the \n then the output stops just before > the fullstop. > > Currently I have \r\n \r\n > That is a space between the two sets of \r\n's. I tried it without any > spaces and still got the same result. > > Would it

[PHP] Cannot find MySQL header files under

2004-05-31 Thread Jough P
Greetings, when compiling PHP with the 'with-mysql' option I get an warning against using the built-in mysql support. So, I tried '--with-mysql=/path/to/mysql.so and got the following error: Cannot find MySQL header files under... What are the names of the mysql header files this message is tal

[PHP] PEAR/MySQL woes: Function registration failed - duplicate name

2004-06-01 Thread Jough P
Installed a new PHP last night because I wanted to start using PEAR. When I use 'pear' from the command line a few funny things happen. Among them are a bunch of errors like the following: PHP Warning: Function registration failed - duplicate name - mysql_connect in Unknown on line 0 PHP Wa

Re: [PHP] PEAR/MySQL woes: Function registration failed - duplicate name

2004-06-01 Thread Jough P
Hrm, I restarted apaches and got the following: [warn] module php4_module is already loaded, skipping Is there a way to restart the PHP DSO? On Jun 1, 2004, at 8:56 AM, Jough P wrote: Installed a new PHP last night because I wanted to start using PEAR. When I use 'pear' from the comm

[PHP] addslashes

2004-06-11 Thread Jough P
Greetings all, I'm doing all my PHP development on my iBook running OS X. I'm currently working on a messaging tool for a website. When the messages are posted on my iBook the single quotes are escaped properly. When I upload the same *.php files to the server the single quotes are preceded

[PHP] No MySQL in Fedora?

2004-06-25 Thread Jough P
Greetings all, just installed Fedora with the bundled PHP Version 4.3.4. Upon calliing mysql_* functions I get errors like: Fatal error: Call to undefined function: mysql_pconnect() blah blah blah A call to phpinfo() reveals it was configured with: --with-mysql=shared,/usr' And doing a "locate m

[PHP] PHP 5 Install problem:[sapi/cli/php] Error 1 ?

2004-07-02 Thread Jough P
Hi all, I'm having trouble installing PHP 5 on a Fedora Core 2 box. I get through ./configure fine but during the make I get errors like this: ext/pcre/php_pcre.lo(.text+0x2e38):/home/jough/php-5.0.0RC3/ext/pcre/ php_pcre.c:1482: undefined reference to `php_pcre_exec' collect2: ld returned 1

Re: [PHP] PHP 5 Install problem:[sapi/cli/php] Error 1 ?

2004-07-02 Thread Jough P
. After looking at the output of phpinfo() I saw that pcre was still enabled. Don't know why it was causing errors though. But at least it's solved!! On Jul 2, 2004, at 1:19 PM, Jough P wrote: Hi all, I'm having trouble installing PHP 5 on a Fedora Core 2 box. I get thro

[PHP] ImageCopyResized works on JPG but not PNG?

2004-07-09 Thread Jough P
Greetings all, I have a real simple function. I works well on JPG images but ImageCopyResized(), or ImagePNG() doesn't seem to be working. When I view the uploaded file it is still it's original size. Here is the function. I hope someone can help me, I'm pretty stumped. function transfor

Re: [PHP] SOLVED: ImageCopyResized works on JPG but not PNG?

2004-07-09 Thread Jough P
yup, you were right. I was naming the image "image.png.png". DOH! been a long week Thanks!! On Jul 9, 2004, at 6:42 PM, Jason Wong wrote: On Saturday 10 July 2004 06:38, Jough P wrote: Greetings all, I have a real simple function. I works well on JPG images but ImageCopyRes

[PHP] Update mysql.so problems

2004-07-20 Thread Jough P
Greetings all, I upgraded to MySQL 4 on a Redhat Enterprise box. I recompiled PHP 4.3.6 and a look at phpinfo() reveals that the old mysql client API is still being used. So, I moved the mysql.so to my home directory hoping that when did ./configure and make again it would create a new one.

Re: [PHP] Update mysql.so problems

2004-07-21 Thread Jough P
using the mysql 3.23 client API. I've upgraded the dev server and my laptop to have PHP5 and MySQL 4 successfully but can't manage to get PHP5 to use the MySQL 4 client API. On Jul 20, 2004, at 6:47 PM, Jough P wrote: Greetings all, I upgraded to MySQL 4 on a Redhat Enterprise box. I

Re: [PHP] PHP-MYSQL Error: Can't connect to MySQL socket. Can someonehelp me out please?

2008-05-10 Thread Rahul P
Thanks. I just stopped mysql and when I try to start it again it throws another set of errors: chown: changing ownership of `/home-public/mysql6': Operation not permitted So I guess something is messed up completely. I wish I installed it better. Now the installing is messed up I guess with all s

Re: [PHP] PHP-MYSQL Error: Can't connect to MySQL socket. Can someonehelp me out please?

2008-05-10 Thread Rahul P
oding something :) On Sun, May 11, 2008 at 12:27 AM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Sun, May 11, 2008 at 1:22 AM, Rahul P <[EMAIL PROTECTED]> wrote: > >> Thanks. I just stopped mysql and when I try to start it again it throws >> another set of errors: >

Re: [PHP] PHP-MYSQL Error: Can't connect to MySQL socket. Can someonehelp me out please?

2008-05-10 Thread Rahul P
On Sun, May 11, 2008 at 12:42 AM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Sun, May 11, 2008 at 1:29 AM, Rahul P <[EMAIL PROTECTED]> wrote: > >> Oh... This is the fourth time I'm doing that except that this time yum >> installed mysql6 instead of older

Re: [PHP] PHP-MYSQL Error: Can't connect to MySQL socket. Can someonehelp me out please?

2008-05-10 Thread Rahul P
Ok I removed mysql using yum remove mysql. But is there a special way to tell yum to install that version of mysql? On Sun, May 11, 2008 at 12:44 AM, Rahul P <[EMAIL PROTECTED]> wrote: > > > On Sun, May 11, 2008 at 12:42 AM, Nathan Nobbe <[EMAIL PROTECTED]> > wrote: >

Re: [PHP] Can I make EasyPHP on Windows allow remote connections?

2008-05-10 Thread Rahul P
Well I thought it has something to do with EasyPHP because I'm able to use Remote Desktop Connection of Windows. Actually I've been using EasyPHP through RDC but I thought I could use it directly... On Sun, May 11, 2008 at 12:44 AM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Sun, May 11, 2008 a

Re: [PHP] PHP-MYSQL Error: Can't connect to MySQL socket. Can someonehelp me out please?

2008-05-10 Thread Rahul P
Ok. I apologize for the mix. When I'm mailing someone, I simply don't get Google into mind. :) Thanks, Rahul On Sun, May 11, 2008 at 12:53 AM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Sun, May 11, 2008 at 1:46 AM, Rahul P <[EMAIL PROTECTED]> wrote: > >> O

Re: [PHP] Can I make EasyPHP on Windows allow remote connections?

2008-05-10 Thread Rahul P
Looks like it is closed... Thanks. I will pay a visit to the Root... You've been of great help... Thanks Rahul On Sun, May 11, 2008 at 1:00 AM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Sun, May 11, 2008 at 1:48 AM, Rahul P <[EMAIL PROTECTED]> wrote: > >> Well

[PHP] system, exec, shell_exec, passthru

2006-08-14 Thread p . willis
Hello, I am trying the run an external application with command line arguments using PHP under linux. ie: $command="myprog $arg1 $arg2 > textfile.txt"; system("echo \"$command\" > test.txt"); system($command); $handle=fopen("textfile.txt","r"); if($handle!=NULL) { while(!feof($handle))

Re: [PHP] Re: system, exec, shell_exec, passthru

2006-08-14 Thread p . willis
Yes, that is a similar problem and sounds very much like what I am experiencing. Peter Quoting Michael Jonsson <[EMAIL PROTECTED]>: > Hi, > > I can run any external program like ls, cp, uptime... > But if a try to run my shell script a get error. > > $passwdexe = "sudo /usr/bin/webpa

Re: [PHP] Re: system, exec, shell_exec, passthru

2006-08-14 Thread p . willis
Quoting Adam Zey <[EMAIL PROTECTED]>: > > Looking at your $command, there is no path in front of it. It's likely > that PHP's shell doesn't have the program in its PATH. Try manually > specifying the full path to the command: > > $command="/home/peter/myprog $arg1 $arg2 > textfile.txt"; > > (

[PHP] system, exec, shell_exec, passthru [RESOLVED]

2006-08-15 Thread p . willis
Hello, This problem has now been resolved. The problem as described below was NOT caused by PHP. The problem was actually a file permissions/ownership problem. A.) The apache webserver runs as a user with specific priviledges. On this particular server the webserver runs as user 'apache'. B.) Th

[PHP] Error in php doc?

2006-12-03 Thread MS P
Hi. There seems to be a minor error in the page http://www.php.net/manual/en/features.file-upload.php. In Example 38-2 "Validating file uploads", there is a line: $uploadfile = $uploaddir . basename($_FILES['userfile']['name']); It looks like basename() is not required there. Because i found t

Re: [PHP] Error in php doc?

2006-12-05 Thread MS P
Hi. First thanks for the replies. Can anyone confirm that the php 5.2.0 engine takes the file name from the path automatically and so basename() can be omitted? I understand that leaving basename() in the code won't hurt, but I need the info for other purpose. Thanks. > Hi. There seems to b

[PHP] headers already sent.

2006-04-07 Thread P. Guethlein
(Know enough to be dangerous beginner...) Routine for a web login asked user name and password. User Name is entered correctly. Password is Incorrect. Next Try. User Name is enter correctly. Password is Entered Correctly. PHP notifies me on the html output that I am logged in. However, an

Re: [PHP] headers already sent.

2006-04-08 Thread P. Guethlein
27;m using? Using EnginSite. Is there a better one for a Windows Environment ? ( head banging against wall ) -Pete P. Guethlein wrote: (Know enough to be dangerous beginner...) Routine for a web login asked user name and password. User Name is entered correctly. Password is Incorrect.

[PHP] Beginner Help - Array

2006-04-13 Thread P. Guethlein
This seems like it should work, but the option statement is just filling in one line of datahm... the names have multiple territories (ID's), so I want to have one name associated with one territory ID ( other stuff happens elseware...). //building list of names and their territory ma

[PHP] Protecting index.php

2006-04-25 Thread P. Guethlein
Initial index.php file: = Hackers seem to be able to call a remote script by appending the URL to the href= command line . ( $include ) What buttons do I need to push to stop this? Does PHP have a setting to allow only local calls? or do I have to do it in the ind

[PHP] Uploading Files

2006-05-21 Thread P. Guethlein
I'm at one of those frustration levels can't seem to get a script working that will post and upload a file to the server. I"m working with the below. Can you help? 0) print "Your file(s) has been uploaded."; echo ' Send this file: '; ?> -- PHP General Mai

Re: [PHP] Uploading Files - Beginner

2006-05-21 Thread P. Guethlein
offer any other insight before my laptop sails into the wall ? Thanks, -Pete At 02:03 PM 05/21/2006, tedd wrote: At 1:52 AM -0700 5/21/06, P. Guethlein wrote: I'm at one of those frustration levels can't seem to get a script working that will post and upload a file to the s

Re: [PHP] Uploading Files - SOLVED

2006-05-21 Thread P. Guethlein
It worked perfectly! ES Simple Uploader Script located at http://www.hotscripts.com/PHP/Scripts_and_Programs/File_Manipulation/Upload_Systems/index.html If anyone else is on their learning curve... -Pete At 04:56 PM 05/21/2006, P. Guethlein wrote: I'm still very frustrated trying to f

RE: [PHP] Uploading Files - Beginner

2006-05-21 Thread P. Guethlein
Jay, Thanks for the response. I finally found a script that actually worked immediately. I posted the link in an earlier message. I found the authors directly link here http://www.energyscripts.com/Products/product2.html for others that may need help. -Pete At 05:23 PM 05/21/2006, you wr

[PHP] Windows/Apache Shopping Cart Software

2006-05-22 Thread P. Guethlein
Anyone have any recommendations/Links to Shopping Cart Software that will run on Windows/Apache/PHP ? Thanks, -Pete -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Image Quality Depreciation with GD

2004-02-17 Thread Jough P
Greetings, all. I'm trying to upload and crop an image. I'm not able to do it without the quality of the image suffering. I've fiddled with the quality parameter in the imagejpeg function but it seems to have no effect. I've tried varying values and leaving the parameter out altogether. An

Re: [PHP] Image Quality Depreciation with GD

2004-02-17 Thread Jough P
imagecreatetruecolor() helps a lot! thanks very much!! On Feb 17, 2004, at 4:48 PM, craig wrote: Greetings, all. I'm trying to upload and crop an image. I'm not able to do it without the quality of the image suffering. I've fiddled with the quality parameter in the imagejpeg function but i

[PHP] Undefined offset

2004-03-01 Thread Jough P
Greetings all, I'm getting "Notice: Undefined offset" regarding this line of code while inside a for loop: if($this->inputs[$i] == "user") I assume the 'offset' that is undefined is $i. But $i is defined is the for statement above it. Here's the while function: function draw() { e

Re: [PHP] Undefined offset

2004-03-01 Thread Jough P
Oops, in my previous email I meant to say "Here's the WHOLE function". sorry about the typo, hope I didn't confuse... On Mar 1, 2004, at 9:58 AM, Jough P wrote: Greetings all, I'm getting "Notice: Undefined offset" regarding this line of code while ins

Re: [PHP] Undefined offset

2004-03-01 Thread Jough P
I've used both the 'sizeof' functions and 'count' On Mar 1, 2004, at 10:03 AM, Stuart wrote: Jough P wrote: Greetings all, I'm getting "Notice: Undefined offset" regarding this line of code while inside a for loop: if($this->inputs[$i] == &q

[PHP] Re: SOLVED: [PHP] Undefined offset

2004-03-01 Thread Jough P
10:15 AM, Raditha Dissanayake wrote: could be your $i > length of array Jough P wrote: Greetings all, I'm getting "Notice: Undefined offset" regarding this line of code while inside a for loop: if($this->inputs[$i] == "user") I assume the 'offset' that is

[PHP] Back Button produces Parse Error

2004-03-08 Thread Jough P
Anyone else had this problem where one of your PHP pages produces some output for a user to click on. The user clicks on one of these links which causes some behavior, then clicks their browsers BACK button. Now the original PHP page is producing a parse error. My particular parse error says:

Re: [PHP] Back Button produces Parse Error

2004-03-11 Thread Jough P
Just in case anyone is interested, this problem with the BACK button happens with the Safari browser on a Mac OS X machine. I've discovered that the problem can be solved by emptying the browsers cache. On Mar 8, 2004, at 7:43 PM, Jough P wrote: Anyone else had this problem where one of

[PHP] postgres-embedded images via php. two issues...

2004-11-02 Thread P. George
i am storing images in a postgres database and i have set up a little php file to retrieve them in such a way that i can do: echo ""; ...from another php file. it's working great, BUT i've noticed two things that bother me: [1] if someone wants to download an image, they can, but it will be dow

Re: Re: [PHP] Problem with fopen(...) -

2004-11-06 Thread P M
Well, since I'm using the latest version of the PHP plugin, it can't be that I'm using the $_FILES variable ($HTTP_POST_FILES is for older versions of php as far as I know). Nevertheless, I tried it.. and it didn't work. To clarify my problem.. I'm using a form to get a file name and some other

[PHP] ini_set doesn't work

2004-12-07 Thread Joerg P
hello, what do I have to change in php.ini, to allow thr ini_set("memory_limit",-1); command? It doesn't work in my script... regards Joerg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: is there way to pass an array( or variables) to another page without sessions or cookies?

2005-07-05 Thread H P
Try sending them via POST ""Ross"" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > Can you give me a quick emaple of how this would work, with an array. > > I have an array of errors ($errors[]) for a form, when the errors are > trigger, I am trying to send them to a window which t

Re: [PHP] Little Problem with my Guestbook

2005-09-14 Thread Florian P.
. Florian P. "Jasper Bryant-Greene" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > Florian Paucke wrote: > > I need some help from you, because, I'm creating a > > guestbook. But I have a little problem. > > > > I

[PHP] Re: Webservices and PHP?

2005-09-14 Thread Florian P.
Hi. What kind of webservices do you mean??? Do you mean Guestbooks? Or do you mean Forums? Or what else? Greets ""Gustav Wiberg"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > Hi there! > > I want to learn about creating webservices with PHP? (Is it possible with > PHP 4.

[PHP] xml first special char

2005-09-16 Thread Joerg P
hello, I have some words with german special chars in mysql. When I print those strings direct as xml to the browser, everything seems fine. But there is one 'ä' that makes me crazy. It always appears as a ? in Firefox and even makes an error in ie. But other 'ä's are ok. What could I d

RE: [PHP] Strange problem

2001-01-30 Thread johnny p.
Sounds like there's no swap space left to me... -jp > -Original Message- > From: Dustin Butler [mailto:[EMAIL PROTECTED]] > Sent: Friday, January 26, 2001 11:11 PM > To: 'Jeroen Jochems'; php-general (E-mail) > Subject: RE: [PHP] Strange problem > > > There are FTP functions if it's an F

RE: [PHP] Unable to fork???

2001-01-31 Thread johnny p.
to something higher by typing 'ulimit -u '. If you're using a different shell, do a man on the shell and look up ulimit. johnny p. > -Original Message- > From: Daniel Williams [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 31, 2001 8:57 AM > To: [E

RE: [PHP] Is correct ??

2001-01-31 Thread johnny p.
,2300,2500,2600,2700) { if ((($year == $key) && ($month > 2)) || ($year > $key)) { $day_count--; } } If anyone cares to translate into php, might be nice to have, but doesn't php have a pretty good set of calendaring func

RE: [PHP] copy() ??

2001-01-31 Thread johnny p.
the maximum filesize accepted. The value is in bytes. johnny p. > -Original Message- > From: Fredrik Arild Takle [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 31, 2001 12:00 PM > To: [EMAIL PROTECTED] > Subject: [PHP] copy() ?? > > > I'm trying to

RE: [PHP] Symbolic link fails when User Authentication comes in

2001-01-31 Thread johnny p.
Add the FollowSymLinks to your httpd.conf file for that directory. I don't recommend doing this, tho, since it *is* a security hole. Options Indexes FollowSymLinks johnny p. > -Original Message- > From: david klein [mailto:[EMAIL PROTECTED]] > Sent: Wednesd

RE: [PHP] Symbolic link fails when User Authentication comes in

2001-02-01 Thread johnny p.
ntry/ http://www.bastille-linux.org/ Just my humble and paranoid opinion from past experiences. :) johnny p. > -Original Message- > From: david klein [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 31, 2001 2:04 PM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject

RE: [PHP] Chopping up a comand line return.

2001-02-02 Thread johnny p.
ile); $files[$some_dir."/".$file] = $mtime; } } closedir($DIR); asort ($files); reset ($files); ** PHP's filemtime is equivalent to perl's (stat())[9], which returns the modification time of a file. PHP's filetype($file) is equivalent to the grep

RE: [PHP] Pricing for PHP programming???

2001-02-02 Thread johnny p.
what they're looking for. Look at what the client thinks they're getting. Use anything you can to find out what the client's price range is and then set your prices in the middle. And also, everything can be negotiated. my 2 cents... johnny p. > -Original Message---

RE: [PHP] Pricing for PHP programming???

2001-02-02 Thread johnny p.
I agree. I have a separate maintenance agreement for additional changes and updates and charge them a pre-specified hourly rate. thanks for the advice... been bit a couple times before, tho. good for others to read. johnny p. > -Original Message- > From: Jeff Oien [mailto:

RE: [PHP] Pricing for PHP programming???

2001-02-02 Thread johnny p.
Hah! My wife has a formal education in graphics design. My web sites would look like crap without her extensive layout skills. :) I'm so lucky... johnny p. > -Original Message- > From: Jerry Lake [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 01, 2001 12:11 P

RE: [PHP] PHP evaluates an expression function?

2001-02-02 Thread johnny p.
Well, I think the equivalent PHP function to VB's eval() function is... eval(). go to: http://www.php.net/manual/en/function.eval.php HTH, johnny p. > -Original Message- > From: ¹æÃ¢Çö [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 02, 2001 8:11 PM > To:

RE: [PHP] Which Regex library?

2001-02-05 Thread johnny p.
What is the expression that seems to be failing? give an example, perhaps it's your code. johnny p. > -Original Message- > From: Shawn J. Wallace [mailto:[EMAIL PROTECTED]] > Sent: Monday, February 05, 2001 8:09 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Which Rege

RE: [PHP] Which Regex library?

2001-02-05 Thread johnny p.
If that works, then just use that. johnny p. > -Original Message- > From: Shawn J. Wallace [mailto:[EMAIL PROTECTED]] > Sent: Monday, February 05, 2001 8:17 AM > To: johnny p. > Cc: [EMAIL PROTECTED] > Subject: RE: [PHP] Which Regex library? > > > Ok, this is from

RE: [PHP] Parse error on blank line...

2001-02-05 Thread johnny p.
I'm not sure where it is, but I agree that you are missing a curly brace somewhere. Take a break from your code for a bit, come back to it, and start matching braces. I suggest getting a coffee or some tea. johnny p. > -Original Message- > From: April [mailto:[EMAIL PROTECT

[PHP] date queries

2002-11-24 Thread Michael P. Carel
Hi to all, Sorry for this post I know this is a mysql related question, i just wanna have other comments.suggestions from this list. I have a problem regarding date queries in mysql. Im creating inventory reports in PHP. I want to query from the date field a weekly report for a specific month, ye

[PHP] Upload problem - PC, *nix, and Max EOL characters

2002-11-26 Thread Lee P. Reilly
change the Unix EOL chars to PC EOL chars? Thanks in advance. - Best regards, Lee Reilly *[http://216.239.33.100/search?q=cache:GwerlDVFv8wC:linux.sarang.net/ftp/mirror/development/language/php_cvs/php4/php.ini-dist+MAC+EOL+character+PHP&hl=en&ie=UTF-8] -- Lee P. Reilly,

Re: [PHP] Upload problem - PC, *nix, and Max EOL characters

2002-11-26 Thread Lee P. Reilly
.e. > $fp = fopen($file) > while ($filerow = fgets($fp,1024)) /* Read 1024 bytes or to EOL, whichever > is first) */ > { -- Lee P. Reilly, ms:G758 Szilard Resource, tel:505-665-7025 Bioscience Division, SM-30 Bikini

Re: [PHP] Upload problem - PC, *nix, and Max EOL characters

2002-11-26 Thread Lee P. Reilly
> $size = strlen($filerow); > $row_split = preg_split("/\s+/", $filerow); > > $value1 = $row_split[0]; > $value2 = $row_split[1]; > $value3 = $row_split[2]; > } > > Matt > - Original Message - > From: Lee P. Reilly <[EMAIL P

Re: [PHP] Upload problem - PC, *nix, and Max EOL characters

2002-11-26 Thread Lee P. Reilly
t is binary safe. > > Matt > - Original Message - > From: Lee P. Reilly <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Tuesday, November 26, 2002 4:09 PM > Subject: Re: [PHP] Upload problem - PC, *nix, and Max EOL characters > > > > &g

[PHP] php/mysql report builder

2002-11-26 Thread Michael P. Carel
hi to all; sorry for posting this mysql question again. im searching for a report builder for mysql specifically for creating reports for invoice/receipt..etc. just like crystal reports and oracle report builder. or is there any suggestion to do it in PHP . any idea? thanks in advance Regard

[PHP] page auto reload after new window closed

2002-12-02 Thread Michael P. Carel
Hi to all, Sorry for this kind of post but i cant find a better mailing list for javascript. I have a problem in refreshing my php page script. Im using javascript to open new window for editing purposes. But i want my opener opener page to auto reload upon submit in my new window. Any idea? tha

[PHP] Red Hat 8 Apache problem - stumped :-(

2002-12-02 Thread Lee P. Reilly
Hi there, This might be better suited for an Apache newsgroup, but I thought I'd try here first. I installed Apache and PHP on RH8 a few weeks ago following the instructions on [URL 1, below], and both were running with absolutely no problems. Today however, I rebooted my machine and http://localh

[PHP] Passthru / exec question - '127' returned

2002-12-05 Thread Lee P. Reilly
Hi, I've ran into a problem using the passthru/exec commands with RH8. When I try and run my program (or even "pwd", "ls", etc) the number '127' is returned every_time. With passthru, the size of the optional return array is 0. Can anyone fathom a guess at the problem? Is the 127 value signifcant?

[PHP] Re: Passthru / exec question - '127' returned

2002-12-05 Thread Lee P. Reilly
Ahhh... no reply necessary. safe_mode :-o -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] external program execution error

2002-12-09 Thread Lee P. Reilly
Hi there, I am having problems with passthru, exec, etc. on Red Hat 8 (w/ PHP 4.2.3; Apache 1.3.27). When I use passthru / exec to execute "pwd" or "ls-al" I have no problems executing & viewing the output. However, when I try and execute a program using the command line e.g "./lee54 < GNOM_FILE_g

[PHP] $HTTP_POST_VARS problem

2002-12-16 Thread Lee P. Reilly
Hi there, I'm currently using PHP 4.2.2 and I am have encountered some problems when trying to access $HTTP_POST_VARS. The following statements have the following return values: echo $HTTP_POST_VARS['userfile']; => C:\\Documents and Settings\\Administrator\\Desktop\\IR Files\\gmp1.ir echo $userf

Re: [PHP] $HTTP_POST_VARS problem

2002-12-16 Thread Lee P. Reilly
Thanks for all the replies. However, I still have problems as the following code produces the following output: -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= echo "0: " . $userfile . ""; echo "1: " . $HTTP_POST_FILES['userfile']['size'] . ""; echo "2: " . $HTTP_POST_FILES['userfil

Re: [PHP] $HTTP_POST_VARS problem

2002-12-16 Thread Lee P. Reilly
Problem solved: I forgot to add the enctype to the original FORM tag. Cheers, Lee, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] 4.2.3 and XML...

2002-12-28 Thread Russell P Jones
My sysadmin just complied 4.2.3 on my Apache web server but is out of town for the next few weeks. Problem is, all my PHP/domxml stuff is SHOT and won't work at all anymore. Does anyone know where I can track down the documentation for 4.2.3, specifically the code changes in domxml. The changelog's

[PHP] OOP confused

2003-02-05 Thread Michael P. Carel
Hi to all; Just a little question about OOP. I'm just confused with the symbol '->' . In the article that i've red : #this reads "change the value of the variable $head within this class to black $this->head="black" #how do i read this line $this->head->prev=NULL I'm just confused with this li

[PHP] php-cli

2003-02-10 Thread Michael P. Carel
Hi to all, Is there anyone who could help me regarding php-cli in windows. What should be the syntax to make the screen clear before echoing something? Is there a good reference in php-cli? Thanks in advance for the replies. mike -- PHP General Mailing List (http://www.php.net/) To unsubs

Re: [PHP] php-cli

2003-02-10 Thread Michael P. Carel
t should do it for you... > > example: > > exec( "cls" ); > > That should do it for you... > > Ray > > On Mon, 2003-02-10 at 21:20, Michael P. Carel wrote: > > Hi to all, > > > > Is there anyone who could help me regarding php-cli in windows

[PHP] Database problem - works in Windows - not Linux

2003-02-12 Thread Lee P. Reilly
Hi there, I'm moving an application from Windows -> Linux, and am having a problem with the database. I have the following script to test my database connection (Linux): -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= $connection = mysql_connect("localhost","","") or die

[PHP] image creation error

2003-02-13 Thread Michael P. Carel
Hi to all, Im receiving a Fatal error: Call to undefined function: imagecreatefromjpeg() . Do i need to recompile PHP? mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] image creation error

2003-02-13 Thread Michael P. Carel
Re: [PHP] image creation error > This one time, at band camp, > "Michael P. Carel" <[EMAIL PROTECTED]> wrote: > > > Hi to all, > > > > Im receiving a Fatal error: Call to undefined function: > > imagecreatefro

Re: [PHP] image creation error

2003-02-14 Thread Michael P. Carel
i've already installed gd but still recieving Fatal error: Call to undefined function: imagecreatefromjpeg() . - Original Message - From: "Michael P. Carel" <[EMAIL PROTECTED]> To: "Kevin Waterson" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent

<    1   2   3   4   5   6   7   >