Re: [PHP] mysqli unclonable object

2005-11-23 Thread Matt Monaco
ee if there is already one open, therefore despite the fact that this link wasn't even using the same library (mysql vs mysqli) it didn't matter; only one connection to the database could be made (as root in this case). If this is incorrect or anyone has additional insight, please reply

Re: [PHP] Autodeleting news when it has become yesterdays news

2005-11-23 Thread Matt Stone
yesterdays date? Yup, DELETE FROM your_table WHERE date_column = curdate() -1; Cheers Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] mysqli unclonable object

2005-11-22 Thread Matt Monaco
ect of type Data." However if I create the link with a reference ... $link =& new Data(); ...everything works fine. This error is interesting because it only occurs on the machine mentioned above, in a Windows/MySQL 5.0 environment, everything works fine without the reference

[PHP] Unclonable objects

2005-11-22 Thread Matt Monaco
wever, the code seems to work fine. It still would be better not to use a reference though. Thanks in advance, Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] forking problem and logging off - solved

2005-11-21 Thread matt VanDeWalle
his in a script 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! m

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 off in php

2005-11-21 Thread matt VanDeWalle
script(my php chat server) was crashing at seeminly random times. I finally figured out that when I logged out of my shell in linux, the talker would go down as well. Obviously I don't want that but what do I need to add to the line when i start the script thanks matt ps If it helps,

[PHP] new to sessions, but learning

2005-11-20 Thread matt VanDeWalle
saving 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
ion for validating 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, is there

[PHP] wanting to get host name instead of ip

2005-11-10 Thread matt VanDeWalle
..." instead of "connection: 127.0.0.1" is this possible with the command line interface? I am using php 4.3.10 on linux matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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. > > -- > P

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

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

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

2005-10-04 Thread matt VanDeWalle
word or email) obviously I'm doing something wrong 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
7;t hurt either ;) 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
od in your case. HTH! 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] 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) th

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

2005-10-01 Thread matt VanDeWalle
ything, the code doesn't even wait, it apparently 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

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

[PHP] File Upload Max Size

2005-09-29 Thread Matt Palermo
stions. I really need 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] 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

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 echo("USAGE: pdf2thumb source_folder_path \n\n"); exit; } if(!isset($argv[1])){usage();} substr($a

[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] array simple question

2005-09-13 Thread matt VanDeWalle
ering, 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] turning off echoing of chars

2005-09-12 Thread matt VanDeWalle
mpt is where the no-screen-echo finally works like 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] 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] 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] ran into a seemingly odd problem

2005-09-10 Thread matt VanDeWalle
an integer like it should am I the only one who finds 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] 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]> w

[PHP] FTP Chmod problem

2005-09-04 Thread Matt Palermo
;.$file; ftp_site($connId, $chmodCmd); 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

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' bu

Re: [PHP] Error Suppression with '@'

2005-08-02 Thread Matt Darby
Bad Idea. A Very Bad 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 uns

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

Re: [PHP] Running a PHP script everyday

2005-07-30 Thread Matt Darby
, you will have to preface your script's path 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] 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 print""; Both of them redirect as expected, but the browser (Firefox and Opera) do not send referer information along with the request.

Re: [PHP] is it possible.

2005-07-29 Thread Matt Darby
lag 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 D

Re: [PHP] PHP form not working

2005-07-28 Thread Matt Zandstra
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, 28 Jul 2005, Bruce Gilbert wrote: Here is

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

2005-07-25 Thread Matt Darby
A blank (transparent) pixel would be more difficult, but a simple colored pixel would be easy: In target file: pixel.php 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

Re: [PHP] Prepopulating form fields afer an error

2005-07-25 Thread Matt Darby
$_REQUEST['user']==$curr_user?$select="selected":$select=""; echo("$curr_user 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 errors telling them the error of their ways

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

Re: [PHP] PHP and MySQL and resouce limits

2005-07-20 Thread Matt Darby
correct? This happens 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] redirecting some values from one page to other in php

2005-07-20 Thread Matt Darby
http://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] 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 e

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=glance&s=books&n=507846 Read it, learn it, live it. Matt Darby Jay B

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` = (`myMoney`

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: Got all sorts of environment and path info. Not anything about MySQL, but I didn't see anything that looked obviously wron

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

2005-07-17 Thread Matt Darby
Try this just for kicks: 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 is i

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

2005-07-17 Thread Matt Darby
p.ini: Find php.ini (not sure where it installs 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.

[PHP] Getting server information

2005-07-15 Thread Matt Palermo
t uses the fopen() 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 Pa

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

[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] HTML -> PDF PHP Package

2005-07-15 Thread Matt Babineau
Thanks, 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 Ever

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 hittin

Re: [PHP] Refresh

2005-07-14 Thread Matt Darby
Put this between the page's tags: 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) that displays

[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
uple tutorials but none 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
ething slightly different 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

RE: [PHP] PHP vs. ColdFusion

2005-06-27 Thread Matt Babineau
ment. I don't 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

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

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

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

2005-06-09 Thread Matt Babineau
that good. 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 HT

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

2005-06-09 Thread Matt Babineau
ally up a creek 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:

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

2005-06-09 Thread Matt Babineau
m to be able 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 Messa

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

2005-06-09 Thread Matt Babineau
y more input 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:0

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

2005-06-07 Thread Matt Babineau
run 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

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

2005-06-07 Thread Matt Babineau
a JPG? 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] 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
hanks, 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, Mar

[PHP] Preorder Modified Tree Traversal

2005-03-23 Thread Matt Babineau
tyle menus or whatnot, I'm interested 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? > > > Option Value > - > value1 > value2 > value3 > value4 > add selected="selected" to the option value4 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

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 taking

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: http://www.php.net

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 quote

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

2005-03-02 Thread Matt Cassarino
Any help would be greatly 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: http://

[PHP] Web Browser Timeout on Upload Script

2005-02-23 Thread Matt Cassarino
to add 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

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

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 (1

Re: [PHP] FATAL: emalloc()

2005-02-18 Thread Matt M.
On Fri, 18 Feb 2005 12:10:32 -0500 (GMT-05:00), George A. Balanos <[EMAIL PROTECTED]> wrote: > Thank you Matt, I found that also but to be honest the person who built this > server recently passed away. He was our php specialist and to be honest I > have no clue on how to activ

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

Re: [PHP] Re: Image Creation

2005-02-15 Thread Matt M.
get rid of : echo " This is a test".makepie(20,200)." "; and only have this : makepie(20,200); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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 gua

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

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: http://www.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] Parsing pdf file

2005-02-09 Thread Matt M.
did you try this? "); 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 endstream tags $searchstart = 's

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: http://www.

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] 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 ' <-- folder'; >

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