Re: [PHP] forking off in php

2005-11-21 Thread matt VanDeWalle
ah ok thanks, am reading it now On Mon, 21 Nov 2005, Marcus Bointon wrote: On 21 Nov 2005, at 17:39, matt VanDeWalle wrote: I have what may seem like a small problem but its not obvious to me. I have a script that I forked and that part works fine, it forks, tells me the pid like I wanted

[PHP] forking problem and logging off - solved

2005-11-21 Thread matt VanDeWalle
now to run my chat now with nohup, something like this /* my script to start server */ #!/usr/bin/bash nohup ./server.php of course i have to be in the right directory to do this but it works and finally, i can log off of my account without the server going down yay! matt -- PHP General Mailing

[PHP] new to sessions, but learning

2005-11-20 Thread matt VanDeWalle
the signup info and then when the user clicks continue, it would have their info. I know session vars work between two pages but will sessions work across 3 and 4 pages or not? thanks matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Validating Email addrs

2005-11-15 Thread Matt Stone
emails. How do you all validated emails on form submission? There's a good article on validating e mails here: http://tinyurl.com/9k5jh Cheers Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] wanting to get host name instead of ip

2005-11-10 Thread matt VanDeWalle
yes, you assume right, I really did mean socket_getpeername() its about midnight here and my brain shuts down at about 10:30 :p thanks for the reply matt On Thu, 10 Nov 2005, Curt Zirzow wrote: On Thu, Nov 10, 2005 at 11:35:06PM -0600, matt VanDeWalle wrote: hello, I was wondering

RE: [PHP] Select and $_POST

2005-11-09 Thread Matt Babineau
$query = SELECT * FROM login WHERE username = '.$_POST['username'].' AND pass = '. $_POST['pass'].'; What is the correct syntax for $query = SELECT * FROM login where username='$_POST['username']' AND pass ='$_POST['pass']'; Thought this would work. R. -- PHP General Mailing

[PHP] comment more than a question

2005-11-08 Thread matt VanDeWalle
I don't really have a question, I just have noticed in working with php for about a year off and on, so you could probably say i'm a bit new still, what an error says it is, or what line it is on, is hardly ever the case, e.g, several different times until i figured out what this meant, i

[PHP] small windows odd problem

2005-11-03 Thread matt VanDeWalle
hello all, I have just installed php-4.4.0 on my windows xp system and added the directory to the path c:/php-4.4.0-Win32 but I am having problems with the cli version of php. I can get into the program but after i type a bit of code, I try the following keys to get output but it never parses

Re: [PHP] data move from mssql to mysql via php

2005-10-07 Thread Matt Darby
it in but I am not sure if this is the best option so am looking for suggestions Thanks! You can easily do this; you could also cut out the middleman and use the ODBC driver to import/export directly. HTH Matt Darby -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] possibly buffer problem, including a bit of code this time

2005-10-04 Thread matt VanDeWalle
but what? matt ps, hope that is enough of the code to tell -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Image resizing...

2005-10-03 Thread Matt Darby
in your case. HTH! Matt Darby -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Image resizing...

2005-10-03 Thread Matt Darby
;) Matt Darby -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] buffer problem having a mind of its own

2005-10-02 Thread matt VanDeWalle
hello again I was writing and rewriting my user function for my chat server trying to crush this bug but its beyond me whats going on. basically I have it so if a new user comes on, we know that if they type new at the prompt so it goes to the newuser function, asks for a username, accepts

[PHP] would this be a buffer problem or something else

2005-10-01 Thread matt VanDeWalle
is some big code problem on my part or i just need to somehow clear the input buffer, which i assume is just stdin, do i need something like flush($sock); or did i just hit the nail on the head with that question matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] problem half-solved, however have another

2005-10-01 Thread matt VanDeWalle
hello again I have been battling this mysterious char thats showing up in the buffer when i first log onto my chat, or else try to add new things to the logon function, I am getting the code not to fall through to the next prompt however, using $varname = socket_recv($sock, $read, 1024, 0)

[PHP] Re: File Upload Max Size

2005-09-30 Thread Matt Palermo
Well, I would like to at least be able to upload a 10mb - 15mb file. I don't need it to upload files that are HUGE, just a reasonable size. zzapper [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Fri, 30 Sep 2005 01:19:01 -0400, wrote: Hello everyone. I'm basically building a

Re: [PHP] PDF Thumbnails

2005-09-29 Thread Matt Darby
I wrote a script for this; it's designed to run from the command line in *nix, but can be triggered via exec(): Usage: ./pdf2thumb.php source_dir out_dir [code] #!/usr/local/bin/php ? function getDirFiles($dirPath){ $filesArr=array(); if ($handle = opendir($dirPath)){ while

[PHP] Re: FTP Chmod problem

2005-09-29 Thread Matt Palermo
I'm using 5.0.something. Al [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Matt Palermo wrote: Hello everyone. I have a script where I am using FTP functions to chmod files/folders. I'm running into a problem with the ftp_chmod() function when trying to change the permissions

[PHP] File Upload Max Size

2005-09-29 Thread Matt Palermo
to upload larger files, and since it's going to an FTP site, there shouldn't be too many size restrictions. Thanks, Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] array simple question

2005-09-13 Thread matt VanDeWalle
, for an array that has several arrays in it, is there a way to print the array names that are contained in the main array but not the contents of each? thanks matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] array question: fixed

2005-09-13 Thread matt VanDeWalle
hey, thanks for jogging my memory about the array_keys ; that was exactly what i wanted, now I don't have to run the program through the more program now, and i got all the names of the arrays in the big array without having half of the info scrolling off the screen. thanks matt -- PHP

[PHP] turning off echoing of chars

2005-09-12 Thread matt VanDeWalle
it should I must be doing something incorrectly but, what? thanks matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] ran into a seemingly odd problem

2005-09-10 Thread matt VanDeWalle
this little thing odd or am I missing something that it is so simple it already sticks out to others as a big glaring error? any ideas? matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] seemingly odd problem

2005-09-10 Thread matt VanDeWalle
I should have added in my previous message, what my test input was so : ok, i login, this is what I typed to test the little piece of code i previously wrote... /* my input */ .quit goodbye /* just a note, I know that '.quit' by itself is only one word, i guess I just assumed people would know

[PHP] thanks for the help

2005-09-10 Thread matt VanDeWalle
hello, I just wanted to say thank you to the person who basically rewrote the function i seemed to have problems with and it actually now works. thanks again matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: FTP Chmod problem

2005-09-05 Thread Matt Palermo
It doesn't make sense to me that the function would work fine on a file and not work on a directory. Moreover, why would the ftp_site chmod command produce a working result and not the ftp_chmod? This seems strange to me. -Matt Raj Shekhar [EMAIL PROTECTED] wrote in message news:[EMAIL

[PHP] FTP Chmod problem

2005-09-04 Thread Matt Palermo
); This properly changes the folder permissions to 777. Does anyone know why the ftp_chmod() function doesn't work correctly? As a side note, the ftp_chmod() function works correctly on a file, but not a directory. Any help is appreciated. Thanks, Matt Palermo http://sweetphp.com -- PHP

Re: [PHP] Fast count of recordset in php...

2005-08-06 Thread Matt Darby
$num=mysql_num_rows($sql); Gustav Wiberg wrote: Hello there! How do i get a fast count of a recordset in php? Look at this code: $sql = SELECT COUNT(IDVara) cn FROM tbvara WHERE Varunamn LIKE '$checkLev%'; $querys = mysql_query($sql); //Count products in db // $dbArray =

Re: [PHP] how to check http:// or https:// ?

2005-08-05 Thread Matt Blasinski
True, but if you check that it's equal to 'on' and it doesn't exist, you'll get a warning. If you want to avoid the warning, check that it exists first. Matt I mean, if $_SERVER['HTTPS'] exists doesn't mean it's equal to 'on' but if $_SERVER['HTTPS'] == 'on' IT MEANS $_SERVER['HTTPS

Re: [PHP] How to determine if a script instance is already running?

2005-08-02 Thread Matt
Perhaps svscan and its associated daemontools programs could be used to monitor the script instead of relying on cron. http://cr.yp.to/daemontools.html On 8/2/05, André Medeiros [EMAIL PROTECTED] wrote: On Tue, 2005-08-02 at 15:09 +0100, Stut wrote: André Medeiros wrote: Do like some

Re: [PHP] Error Suppression with '@'

2005-08-02 Thread Matt Darby
Idea actually. If he's just looking to hide error output, he should at least edit php.ini to log to an error file. Otherwise, debugging his code would be horrible. The @ is total slop. Matt Darby -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Redirect with referer info

2005-07-30 Thread Matt Darby
Dotan Cohen wrote: Hi list, I need to redirerect a page, and send the referer information along with the redirect. I have tried: header(Location: $url); and printhtmlheadmeta http-equiv='refresh' content='0; URL=$url' //head/html; Both of them redirect as expected, but the browser (Firefox and

Re: [PHP] Running a PHP script everyday

2005-07-30 Thread Matt Darby
in your cron entry with the location of the PHP binary: 0 1 1,15 * * /path/to/php/binary /root/scripts/System_Dump.php Matt Darby -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] is it possible.

2005-07-29 Thread Matt Darby
in the database that this link is no longer valid, and redirect the user's browser to the file (check out the header function). The link in the email will only be valid once (or as many times as you allow). You could even tie this in with a login/password form. HTH! Matt Darby -- PHP General Mailing

Re: [PHP] PHP form not working

2005-07-28 Thread Matt Zandstra
!/spanbr /'; $message_err = 'span class=redPlease enter a message!/spanbr /'; The latter is slightly more efficient, but you won't notice the difference. Incidentally, you should consider separating your presentation from your logic a little more, but that's a whole other issue. HTH Matt On Thu

Re: [PHP] Prepopulating form fields afer an error

2005-07-25 Thread Matt Darby
select name=user $_REQUEST['user']==$curr_user?$select=selected:$select=; echo(option $select$curr_user/option); /select Jack Jackson wrote: Hi, I have a form and it does basic error checking after submission; when the user omits required fields it kicks back the form with highlighted

Re: [PHP] How would you create a tracking pixel?

2005-07-25 Thread Matt Darby
); imagedestroy($im); ? I guess this begs the question, why not use session variables to track activity?? Matt Darby Brian Dunning wrote: I want to create a pixel that can be used to track certain activity on the site. I've got it working fine: I just mod_rewrite spacer.gif to a PHP app that does

Re: [PHP] Affiliate Tracking [Management] program

2005-07-22 Thread Matt Darby
Eugene Voznesensky wrote: I' looking for free PHP/MySQL Affiliate Tracking [Management] program. Would appreciate any advice/idea fd. Have you looked over sourceforge.net? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Konqueror does not like my Website

2005-07-22 Thread Matt Darby
The easiest way to fix this is to validate your output. Konqueror is likely more picky about correct code. Here is validator output: http://validator.w3.org/check?uri=http%3A%2F%2Fmichelle.konzack.home.tamay-dogan.homelinux.net%2Ftdlandmap%2F Michelle Konzack wrote: Hello *, I an developing

Re: [PHP] Rate to charge

2005-07-21 Thread Matt Darby
ideas on how to charge would be great. Thanks I charge $50/hr. Be very careful when you specify a timeline, it will always take at least 10-25% more than you estimate! It's better to over estimate and complete earlier. At least it makes you look good ;) Good Luck! Matt Darby -- PHP General

Re: [PHP] My Project

2005-07-20 Thread Matt Darby
It *is* a great book (I cut my teeth with it as well): PHP and MySQL Development (Welling and Thomson) http://www.amazon.com/exec/obidos/tg/detail/-/0672326728/qid=1121869940/sr=8-1/ref=pd_bbs_1/002-5827183-4477639?v=glances=booksn=507846 Read it, learn it, live it. Matt Darby Jay Blanchard

Re: [PHP] redirecting some values from one page to other in php

2005-07-20 Thread Matt Darby
babu wrote: It will become a big mess up for me if i combine all the files as they are large files. Matt Darby [EMAIL PROTECTED] wrote: babu wrote: I am using header method for redirecting to another php file.I also want to pass some variables to the redirected file. for example

Re: [PHP] redirecting some values from one page to other in php

2005-07-20 Thread Matt Darby
://uk.php.net/manual/en/ref.session.php Mikey So long as you call session_start(); at the very top of your scripts, sessions will work. session.auto_start is fine if your entire site will be using sessions. Matt Darby

Re: [PHP] PHP and MySQL and resouce limits

2005-07-20 Thread Matt Darby
to me sometimes if the query is rather crazy... Matt Darby -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] My Project

2005-07-19 Thread Matt Darby
George B wrote: Jay Blanchard wrote: [snip] $money -= 10; saves some chars ;) [/snip] This actually requires two trips to the database, once to get $money and once to update $money. Do it in the query instead...once. $sqlUpdate = UPDATE `myDatabase`.`myTable` SET `myMoney` =

Re: [PHP] Need help with PHP / MySQL connect problem

2005-07-17 Thread Matt Darby
to in Windows version), and set error_reporting = E_ALL. This will show all notices and warnings generated by your PHP code; extremely usefull in debugging. Matt Darby Linda H wrote: Hi, I'm running MySQL 4.0.21, Apache 2.0.52 and PHP 5.0.2 on a Windows XP system. I can run scripts with PHP and HTML

Re: [PHP] Re: Need help with PHP / MySQL connect problem

2005-07-17 Thread Matt Darby
Try this just for kicks: ? aslkdjfalsd; ? See if this will output errors. It's rather hard to debug without error messages ;) If I remember correctly, isn't php.ini supposed to be in c:/PHP? Linda H wrote: Thanks for the advice, Matt, but it doesn't seem to solve my problem. php.ini

Re: [PHP] Re: Need help with PHP / MySQL connect problem

2005-07-17 Thread Matt Darby
You should definitely see a listing for MySQL in phpinfo()... What order did you install MySQL/PHP/Apache? Linda H wrote: I added the following to the top of my script: ?php echo phpinfo(); ? Got all sorts of environment and path info. Not anything about MySQL, but I didn't see anything

RE: [PHP] HTML - PDF PHP Package

2005-07-15 Thread Matt Babineau
, Matt Babineau Criticalcode 858.733.0160 [EMAIL PROTECTED] http://www.criticalcode.com -Original Message- From: Christian Calloway [mailto:[EMAIL PROTECTED] Sent: Friday, July 15, 2005 10:56 AM To: php-general@lists.php.net Subject: [PHP] HTML - PDF PHP Package Hi Everyone, I am looking

[PHP] Copy Remote File to Local Server

2005-07-15 Thread Matt Palermo
server. Is there a way around something like this? Or perhaps could the script keep time of how long it has been running will reading/writing and then be able to continue writing to the partial file? Does anyone have any suggestions for this problem? Thanks, Matt Palermo http://sweetphp.com

Re: [PHP] Copy Remote File to Local Server

2005-07-15 Thread Matt Darby
Wouldn't something like rsync be better suited for this? I only ask because I've run something like this before... Matt Darby Richard Davey wrote: Hello Matt, Saturday, July 16, 2005, 3:04:29 AM, you wrote: MP I am writing a script that will read a file from a remote server MP and write

[PHP] Getting server information

2005-07-15 Thread Matt Palermo
() function to access the PHP file, that when the remote PHP file gets executed it can log some information about the source server which is accessing it? If so, what kind of code would I need to place in the remote PHP file to obtain some of the information. Thanks, Matt Palermo http

Re: [PHP] Refresh

2005-07-14 Thread Matt Darby
Put this between the page's head tags: meta http-equiv=REFRESH content=1;url=http://somesite_to_refresh_to; The 1 in the above line controls the time to refresh; the higher the number, the longer to refresh. Matt Darby Miguel Guirao wrote: Hello people, I need to have a web page (PHP

Re: [PHP] Tired and feeling dumb...maths question....

2005-07-14 Thread Matt Darby
$average = round(($votes/$pts),2); ;) Ryan A wrote: people vote on a scale of 1-5, so the average should be between 1-5 (right?? am not even sure of this!) Yes. I was thinking of rounding it with a 2 decimal point...eg: round(5.045, 2) Just need to solve this and them am

[PHP] Echo array string index?

2005-07-13 Thread Matt Darby
I have an array setup as such: *$arr['generated text']='generated number';* What would be the best way to echo the key in a loop? Seems pretty easy but I've never attempted... Thanks all! Matt Darby

[PHP] Some CLASS file help, should be a quick answer...

2005-07-11 Thread Matt Babineau
explain this very wellanyone have any thoughts? Thanks, Matt Babineau Criticalcode 858.733.0160 [EMAIL PROTECTED] http://www.criticalcode.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Find largest integer filename

2005-07-06 Thread Matt Blasinski
than mine does, then try adjusting which field cut takes. HTH, Matt Philip Hallstrom wrote: Suppose I have a directory with a HUGE number of filenames, all of which happen to look like integers: ~/nntp/1 ~/nntp/2 ~/nntp/3 . . . ~/nntp/59874 ~/nntp/59875 ~/nntp/59876 Now, in a PHP script, what's

RE: [PHP] PHP vs. ColdFusion

2005-06-27 Thread Matt Babineau
have to even think about the server. I spend about 1 hr a month messing around with the server (daemon restarts or php config changes). That's where LAMP's value really shines through I think you will find. Thanks, Matt Babineau Criticalcode 858.733.0160 [EMAIL PROTECTED] http

RE: [PHP] Something is messing up the php output

2005-06-22 Thread Matt Babineau
I bet if you connect using the IP directly it will solve your problem. Thanks, Matt Babineau Criticalcode 858.733.0160 [EMAIL PROTECTED] http://www.criticalcode.com -Original Message- From: Jonathan Duncan [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 22, 2005 6:27 PM To: php

RE: [PHP] Beautiful HTML Invoice - Prints like crap! I need somesuggestions!

2005-06-09 Thread Matt Babineau
on this? Everything I have read so far has been very helpful and I thank you for that. Matt Babineau Criticalcode w: http://www.criticalcode.com p: 858.733.0160 e: [EMAIL PROTECTED] -Original Message- From: Marcus Bointon [mailto:[EMAIL PROTECTED] Sent: Thursday, June 09, 2005 5:02 AM To: PHP General

RE: [PHP] Beautiful HTML Invoice - Prints like crap! I need somesuggestions!

2005-06-09 Thread Matt Babineau
to print a copy. I've looked into PDFing the invoice but its just a bit easier to hit the print button and be done since Adobe PDF usually crashes your browser :( Matt Babineau Criticalcode w: http://www.criticalcode.com p: 858.733.0160 e: [EMAIL PROTECTED] -Original Message- From: Warren

RE: [PHP] Beautiful HTML Invoice - Prints like crap! I need somesuggestions!

2005-06-09 Thread Matt Babineau
right now - unless I convert the bg images to foreground image which would really suck...but could be done. Matt Babineau Criticalcode w: http://www.criticalcode.com p: 858.733.0160 e: [EMAIL PROTECTED] -Original Message- From: Leif Gregory [mailto:[EMAIL PROTECTED] Sent: Thursday, June

[PHP] Php.net/pdf - Making a PDF from the invoice

2005-06-09 Thread Matt Babineau
. Thx- Matt Babineau Criticalcode w: http://www.criticalcode.com p: 858.733.0160 e: [EMAIL PROTECTED] -Original Message- From: Kristen G. Thorson [mailto:[EMAIL PROTECTED] Sent: Thursday, June 09, 2005 2:05 PM To: php-general@lists.php.net Subject: Re: [PHP] Beautiful HTML Invoice

RE: [PHP] Beautiful HTML Invoice - Prints like crap! I need somesuggestions!

2005-06-09 Thread Matt Babineau
Yikeshas anyone got a url for a good Make PDF From HTML Class that uses my newly installed PDFlib library? Matt Babineau Criticalcode w: http://www.criticalcode.com p: 858.733.0160 e: [EMAIL PROTECTED] -Original Message- From: Leif Gregory [mailto:[EMAIL PROTECTED] Sent: Thursday

RE: [PHP] Three queries. One Form.

2005-06-09 Thread Matt Babineau
Well after the first query you could do this: $art_id = mysql_insert_id(); There is your new unique art_id you just created. Do this for the next table, the do the insert on your 3rd table. Matt Babineau Criticalcode w: http://www.criticalcode.com p: 858.733.0160 e: [EMAIL PROTECTED

[PHP] Beautiful HTML Invoice - Prints like crap! I need some suggestions!

2005-06-07 Thread Matt Babineau
? I'm on a linux box and have php 4.3.10. Thanks for the help! Matt Babineau Criticalcode w: http://www.criticalcode.com p: 858.733.0160 e: [EMAIL PROTECTED]

RE: [PHP] Beautiful HTML Invoice - Prints like crap! I need somesuggestions!

2005-06-07 Thread Matt Babineau
on the server to do the convert work. Thanks, Matt Babineau Criticalcode w: http://www.criticalcode.com p: 858.733.0160 e: [EMAIL PROTECTED] -Original Message- From: Jack Jackson [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 07, 2005 3:21 PM To: php-general@lists.php.net Subject: Re: [PHP

Re: [PHP] Mixed Up Values

2005-04-25 Thread Matt Harnaga
Mark Sargent wrote: Hi All, with the below code, $myrow[1] should = product_name's value, $myrow[2] should = product_model_number's value and $myrow[3] should = product_serial_number's value, but, product_name's value is not being displayed, and the values are being moved to the left 1. Meaning

[PHP] Php + flash, need some help making a small .FLA

2005-04-17 Thread Matt Babineau
, Matt Babineau Criticalcode w: http://www.criticalcode.com p: 858.733.0160 e: [EMAIL PROTECTED]

RE: [PHP] Preorder Modified Tree Traversal

2005-03-24 Thread Matt Babineau
Yeah, I read this article, and it works, but it doesn't set you up for a drill down scenario... Matt Babineau Criticalcode w: http://www.criticalcode.com p: 858.733.0160 e: [EMAIL PROTECTED] -Original Message- From: Chris W. Parker [mailto:[EMAIL PROTECTED] Sent: Thursday, March 24

[PHP] Preorder Modified Tree Traversal

2005-03-23 Thread Matt Babineau
in the methods you used to achieve your success. Thanks All! PS- Thanks to those who suggested the Linux command line HTML 2 PDF package!! Matt Babineau Criticalcode w: http://www.criticalcode.com p: 858.733.0160 e: [EMAIL PROTECTED]

[PHP] HTML - to - PDF

2005-03-22 Thread Matt Babineau
Hi All, I have some reports I need converted from HTML to PDF, I'm on a LAMP box, so does anyone have any free suggestions? Thanks, Matt Babineau Criticalcode w: http://www.criticalcode.com p: 858.733.0160 e: [EMAIL PROTECTED]

Re: [PHP] Forms

2005-03-21 Thread Matt M.
Does anyone know how to get a particular option to display in a drop menu? select name=category id=category option selected=true value=Option ValueOption Value/option option value=line-/option option value=value1 value1/option option value=value2 value2 /option

Re: [PHP] Re: recommending a PHP book?

2005-03-15 Thread Matt Zandstra
As the author, I'm precluded from _recommending_ my book 'PHP 5 Objects Patterns and Practice'. Nevertheless it does cover design patterns in general and enterprise patterns in particular, so it's relevant to the thread. http://www.amazon.com/exec/obidos/tg/detail/-/1590593804 It's worth

Re: [PHP] Newbie question: qutoes?

2005-03-06 Thread Matt Harnaga
Double quotes expand variables, that is, if $a = 2, then echo The value is $a2; will print The value is 2. Single quotes return strings literally. So, echo 'The value is $a2' would print The value is $a2 Cheers rory walsh wrote: Can anyone tell me if there is a difference between double quotes

Re: [PHP] Newbie question: qutoes?

2005-03-06 Thread Matt Harnaga
You might want to check this out as well: http://www.zend.com/zend/tut/using-strings.php rory walsh wrote: Can anyone tell me if there is a difference between double quotes and single quotes? Cheers, Rory. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Bypassing php.ini setting for file uploads?

2005-03-02 Thread Matt Cassarino
appreciated!! Thanks, Matt Cassarino Cell: (206) 484-4626 Web: www.mattcass.com Email: [EMAIL PROTECTED]

Re: [PHP] PHP and Access

2005-02-25 Thread Matt M.
I need to to an application in PHP with graphics creation. The database where i need to go and fetch the values is access. is possible for PHP to fecth values from an access database ?? http://us4.php.net/odbc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Web Browser Timeout on Upload Script

2005-02-23 Thread Matt Cassarino
around this? Ideal solution would be on the server side b/c I don't want to have my users set a browser option. Thanks a lot! Matt Cassarino Cell: (206) 484-4626 Web: www.mattcass.com Email: [EMAIL PROTECTED]

[PHP] Web Browser Timeout on Upload Script

2005-02-23 Thread Matt Cassarino
the set_time_limit code to the HTML page with the form? But how do I do this? Any ideas? Thanks a bundle! Matt - Original Message - From: Matt Cassarino To: php-general@lists.php.net Cc: Matt Cassarino Sent: Wednesday, February 23, 2005 1:01 PM Subject: Web Browser Timeout on Upload

Re: [PHP] FATAL: emalloc()

2005-02-18 Thread Matt M.
FATAL: emalloc() : Unable to allocate 1073741824 bytes I found this at http://us4.php.net/odbc_exec I kept getting FATAL: emalloc() errors when using select statements via odbc for MS SQL. I had no control over the DB as it is a commercial CRM system. I found that by 1st issuing an SQL query

Re: [PHP] Destroying the Session Object

2005-02-18 Thread Matt M.
I am developing an application. When the user signs in a Session ID is created (for argument sake: 123). I have a sign out page that has the script session_destroy() on it. This page directs me to the sign in page. When I sign the same or any other user in again I get the same session id

Re: [PHP] mediator between PHP and Perl (with sessions)

2005-02-15 Thread Matt M.
Is there a way to use sessions variables in PHP shell script (without reading the session file and parse it in the script)? Do you have a database available? You could put the session info in a database. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Delete a file immediately after download

2005-02-15 Thread Matt M.
I have a database that contains encrypted data using Mysql function ENCODE(). Certain users will be allowed to view this data and I will allow them to download a CSV file contain the decrypted data using the Mysql DECODE() function. However I don't want this file to be left on the server, is

Re: [PHP] [NEWBIE] Trying to combine array into one string

2005-02-15 Thread Matt M.
The Problem: I can't quite figure out how to take the results of the mysql_query() and assemble them into a string. In my experiments so far, I either get a mysql_data_seek(): Offset 0 is invalid for MySQL result index error, or my mail function sends to a blank address. no guarantee

Re: [PHP] Re: Image Creation

2005-02-15 Thread Matt M.
get rid of : echo table border='1' cellpadding='0' cellspacing='0' style='border-collapse: collapse' bordercolor='#11' width='200' bgcolor='#FFD1A4' tr td width='100%' colspan='2' align='center'This is a testbr.makepie(20,200)./td /tr /table; and only

Re: [PHP] PHP Array question

2005-02-15 Thread Matt M.
What I want to do is to only show 20 pictures at a time with a Next link and a Previous link. For the first 20 only the Next link would show and whenever the last set would show only the Previous link would. Every other time both would show. Can someone point me in the right direction on

Re: [PHP] Intelligent Forms and Form Processing

2005-02-15 Thread Matt M.
Any feedback will be appreciated. why reinvent the wheel? take a look at: http://pear.php.net/package/Html_quickform -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Fancy Form processing Ideas

2005-02-14 Thread Matt M.
I am looking for interesting approaches to form submissions and error checking in the forms. http://pear.php.net/package/HTML_QuickForm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Primer for working with arrays

2005-02-09 Thread Matt M.
I need a really good primer for working with arrays in PHP and with MySQL. I can do what I need to do without them right now, but I would really like to get arrays figured out. Any have some good ones? http://www.php.net/array http://us4.php.net/mysql -- PHP General Mailing List

Re: [PHP] Parsing pdf file

2005-02-09 Thread Matt M.
For a project of a customer i need to know if a pdf file contains special functions and buttons. Is there a way to parse a PDF file in php? you might be able to find something at http://us3.php.net/pdf -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Parsing pdf file

2005-02-09 Thread Matt M.
did you try this? ?php $test = pdf2string(pathtoPDFfile); echo $test; # Returns a -1 if uncompression failed function pdf2string($sourcefile) { $fp = fopen($sourcefile, 'rb'); $content = fread($fp, filesize($sourcefile)); fclose($fp); # Locate all text hidden within the stream and

Re: [PHP] is_dir is_file bugs?

2005-02-08 Thread Matt M.
$path = 'product_images'; $handle = opendir($path); while (false !== ($file = readdir($handle))) { if ($file != . $file != ..) { echo $file; if (is_dir($file)) { echo ' -- folderbr'; $folders[] =

Re: [PHP] Displaying a html line as html

2005-02-01 Thread Matt Harnaga
problem will go away. -Matt Todd Cary wrote: Jochem - Here is the function: /* Make page path */ function make_page_path($page_string, $script_name) { $parts = explode('|', $page_string); for ($i = 0; $i count($parts); $i++) { if ($i == 0) { $page_path = 'lt;a href

[PHP] RE: Problem with SELECT SQL_CALC_FOUND_ROWS

2005-02-01 Thread Matt Babineau
Ok I installed PHP 4.3.10 and it still has not fixed the problem. If I remove the SQL_CALC_FOUND_ROWS from the query, it works no problems! This is very strange behavior! Matt Babineau Criticalcode w: http://www.criticalcode.com p: 858.733.0160 e: [EMAIL PROTECTED] -Original Message

Re: [PHP] Maxing out sessions?

2005-01-25 Thread Matt
Ok, Right now if I look at a session I see the following... this is on a mail server.. so this is all mail variables and such... There are currently 319 session files and 1.5MB... you know I'm also wondering now if I didn't read things wrong.. .I wonder if it said 2.0MB not GB yesterday..

Re: [PHP] Maxing out sessions?

2005-01-25 Thread Matt
... just someplace to look for solutions... like things to watch on the server... clearly, it seems, disk space and not even files per directory are even a problem... so On Tue, 25 Jan 2005 10:36:34 -0800 (PST), Richard Lynch [EMAIL PROTECTED] wrote: Matt wrote: Ok, Right now if I look

[PHP] Sigh....regex - need to search/replace string for anything but numbers

2005-01-25 Thread Matt Babineau
Ahh so the regex gods are pissed at me. This is simple (I think), but I need to figure out how to strip out everything in a string that is not a number. Any takers? Thanks, Matt Babineau Criticalcode w: http://www.criticalcode.com p: 858.733.0160 e: [EMAIL PROTECTED]

[PHP] Maxing out sessions?

2005-01-24 Thread Matt
right back to the login page as though you had not logged in yet. What are my solutions to rectify this? The machine itself is not overloaded, just seems like the sessions holding tank is overloaded. ~ Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Maxing out sessions?

2005-01-24 Thread Matt
to the login page... if I go and wipe /tmp all is fine... What do you make of this? On Mon, 24 Jan 2005 12:34:21 -0800 (PST), Richard Lynch [EMAIL PROTECTED] wrote: Matt wrote: I have a high load server which will have anywhere between 500 and 700 session files in the /tmp directory at max load

<    1   2   3   4   5   6   7   8   9   10   >