[PHP] script execution stops after mail()

2001-08-16 Thread Vincent
n advance. I'm using PHP 4.0.6 on Apache/1.3.20 and sendmail -t -i. Just in case that helps. Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

RE: [PHP] How to do a dynamic UPDATE SET

2001-10-01 Thread Vincent
ields($db, $tbl); $columns = mysql_num_fields($fields); for ($i = 0; $i < $columns; $i++) { $fld = mysql_field_name($fields, $i); $set .= "$fld='$".$fld."', "; } btw: mysql_query("UPDATE ..."); works and saves a

RE: [PHP] How to do a dynamic UPDATE SET

2001-10-01 Thread Vincent
g the single quotes should do the trick. Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] backticks vs Safe Mode

2002-11-24 Thread Vincent Starre
I can think of no security reason why you would want to allow anyone to display output from a command, but wouldnt want them to be able to assign that output to a variable. Can someone explain a situation where that would be useful? Arent any security concerns addressed by the safe_mode_exec_dir

Re: [PHP] does //commenting reduce performance?

2002-11-24 Thread Vincent Vandemeulebrouck
o implement a "stripcomment" script, that you run when you move your script from your development server to your production server. And anyway, this would not be significant, unless you recompile a custom PHP version where you remove the comment parsing. This would be intereting if your c

[PHP] Bug with register_globals on versus 1 and php_value vs php_flag?

2002-11-26 Thread Daevid Vincent
I don't know if this is a known bug or it's supposed to work like this, but after randomly trying things, this finally worked: DocumentRoot /home/interact/public_html ServerName interact ServerAlias www.interact.com *.interact.* ErrorLog logs/interact-error_log CustomLog logs/

[PHP] Resizing a png tranparent image.

2002-12-28 Thread Vincent M.
Hello, I am trying to resize a png file, my autograph ;-) Good result thanks to gimp: http://boxfly.free.fr/test/test1.jpg Bad result with php: http://boxfly.free.fr/test/test2.jpg This is my PHP code to resize the autograph: $newAuto = imagecreatetruecolor( $widthImgAu, $heightImgAu) ; imagec

RE: [PHP] include "problem" -- how to use an external 'template' file and still use PHP variables?

2002-12-30 Thread Daevid Vincent
I have a similar question/problem. However, I want to use an external "email template" as it were, so that the sales guys can edit it as they like and simply shuffle the three variables around that they need $username, $password, $code (either with or without the tags). I don't want them mucking

Re: [PHP] PHP & PostgreSQL

2003-01-01 Thread Vincent Oostindie
> complaint about it, in fact... Have you installed the recent PostgreSQL version 7.3 already? This new version allows the use of ALTER TABLE much like you'd want it. Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Possible bug with PHP v4.1.1 and bits?

2003-01-03 Thread Daevid Vincent
I'm not even sure how to classify this... Given: Where $Enabled is either a 0 or 1 as read from a database ( TINYINT(1) ); And echo "action = ".$_POST[action].""; if ($_POST[action] == "1" || $_POST[action] == "0") echo = "UPDATE Company SET Enabled = ".!(intval($_POST[action]))." WHERE Com

[PHP] [announce] AtomicBoard v0.6.1

2003-01-05 Thread Vincent Vollers
://cal007300.student.utwente.nl/atomicboard/ cheers, - Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Unexpected $end error?

2003-01-05 Thread Vincent Bouret
Can someone tell me why I keep getting that error: Parse error: parse error, unexpected $end in D:\Program Files\Apache Group\Apache2\htdocs\proxy\acc_new.php on line 62 line 62 refers to Thanks for your help Vincent Here is the content of acc_new.php Account Management Tools - Add a new

RE: [PHP] locally enabling register_globals?

2003-01-05 Thread Daevid Vincent
This might help... Put this at the top of each page: reset ($_POST); while (list ($key, $val) = each ($_POST)) { //echo "$key => $val\n"; $$key = $val; } You could do the same for $_GET if you need to as well. DÆVID. > -Original Message---

RE: [PHP] building web album - design questions

2003-01-10 Thread Daevid Vincent
Why re-invent the wheel. There are plenty of these out there... Two I suggest are [1] mine... http://daevid.com/photo_album.phtml And [2] http://www.andymack.com/freescripts/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] how can I use an external 'template' file and still use PHP variables?

2003-01-10 Thread Daevid Vincent
I've posted this a few weeks ago with no response. I want to use an external "email template" as it were, so that the sales guys can edit it as they like and simply shuffle the variables around that they need $username and $password (either with or without the tags). I don't want them mucking aro

RE: [PHP] how can I use an external 'template' file and still use PHP variables? [solved]

2003-01-10 Thread Daevid Vincent
Benjamin, you are my father! Dude! That worked perfectly... In case you all didn't understand what I was trying to do, attached are some examples... This worked thanks to "Benjamin Vincent" ;-) snip 'customer_email.php' -- Untit

RE: [PHP] Re: Favorite Email validation routine?

2003-01-14 Thread Daevid Vincent
I just use a simple Javascript function. I figure if it's remotely close, then good, if not then it's going to be an invalid email address most likely anyways: function emailCheck(str) { var at="@" var dot="." var lat=str.indexOf(at)

RE: [PHP] Making alternate rows of different colour

2003-01-17 Thread Daevid Vincent
> > > Can someone please help me with the code? > >$cols = array('#ff','#00ff00'); >$i = 0; >while(your_loop_to_output_each_row) { > echo '$row_data'; >} -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub

RE: [PHP] Sessions or Cookies?

2003-01-17 Thread Daevid Vincent
Agreed. Sessions are much more secure and convienient to use too. Since it's not reliant on the client to have cookies enabled, that's another benefit. Plus it's MUCH harder for a client to spoof/alter a session variable if you use the $_SESSION['myvar'] > -Original Message- > From: Chris

[PHP] How to make id/name table into array?

2003-01-21 Thread Daevid Vincent
Is there a better way to do this in PHP? It seems that a single number (key) and single name (value) would lend itself perfectly to an (indexed or associative) array. I would think there is some PHP API call that I'm unaware of that will just take the whole result set and stuff it into an array for

[PHP] Strange anomolie with each() and mysql_fetch_array()

2003-01-23 Thread Daevid Vincent
How come I *can* do these commands: $row = mysql_fetch_array($result,MYSQL_ASSOC); while(list($myVariableName,$sqlFieldName)=each($row)) { $$myVariableName = $sqlFieldName; } But I can't do this command? while(list($myVariableName,$sqlFieldName)=each(mysql_fetch

RE: [PHP] Strange anomolie with each() and mysql_fetch_array()

2003-01-24 Thread Daevid Vincent
tement shouldn't work just as the first. > - Original Message - > From: "Daevid Vincent" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, January 23, 2003 11:38 PM > Subject: [PHP] Strange anomolie with each() and mysql_fetch_array()

RE: [PHP] Webyog Releases SQLyog 3.02

2003-02-06 Thread Daevid Vincent
Dude. That freakin' form that asks for my email/name EVERY time has to go. Make that shit voluntary. It's annoying as hell, and is just forcing me (and others) to enter bunk info everytime we want an update to this product. > -Original Message- > From: Insanely Great [mailto:[EMAIL PROTECT

RE: [PHP] jumping between php and html or using echo for printing html-tags.

2003-02-06 Thread Daevid Vincent
Fatal error: Call to undefined function: floatval() in /home/dae51d/public_html/examples/echotest.php on line 14 > -Original Message- > From: Chris Shiflett [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 06, 2003 2:40 PM > To: anders thoresson; [EMAIL PROTECTED] > Subject: Re: [PH

[PHP] How do I force a 'timeout' in a loop for that itteration, or conversley how to timeout a 'ping" request?

2003-02-07 Thread Daevid Vincent
I'm trying to automate finding pingable domains given an IP or a domain. The problem is that some domains don't actually return "pings", and on Linux, it just sits there forever (ugh!). So... Can someone tell me how to 'abort' or 'timeout' an itteration of a loop. Maybe start a timer and then check

RE: [PHP] Re: How do I force a 'timeout' in a loop for that itteration, or conversley how to timeout a 'ping" request?

2003-02-10 Thread Daevid Vincent
1 PM > To: Daevid Vincent > Cc: [EMAIL PROTECTED] > Subject: [PHP] Re: How do I force a 'timeout' in a loop for > that itteration, or conversley how to timeout a 'ping" request? > > > Not sure on linux, but on freebsd ping's man page says: > >

[PHP] How to use fopen() with protected directory (i.e .htaccess)

2003-02-10 Thread Daevid Vincent
How can I pass in a user/pw to an fopen() (or something similar)? I am trying to render a dynamic db/php page into a static .html page -- or more specifically, I'm trying to email me back an html version of a report page on remote servers. The reports are located behind an https:// Apache user/pas

[PHP] How can I have PHP set the linux system date/time?

2003-02-13 Thread Daevid Vincent
Yep, I am trying to have a php web page change the linux system date/time, but obviously running into the snag that /bin/date, while "chmod 775" doesn't allow a user to set the date/time. Why is that, given the permissions? Sure it makes sense, but it's annoying. Ideas on how to circumvent this pro

RE: [PHP] How can I have PHP set the linux system date/time?

2003-02-13 Thread Daevid Vincent
Feb12 0:01 /www/bin/httpd -D So What is the problem? Ideas? > -Original Message- > From: Marek Kilimajer [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 13, 2003 3:43 AM > To: Daevid Vincent > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] How can I have PHP s

[PHP] I need examples of WRITING to XML wth PHP

2003-02-13 Thread Daevid Vincent
I see tons of examples of how to read in an xml schema and use the variables and such, but how do I then change values and re-save the schema again? Can someone point me at a simple but function form that simply reads a .xml file, populates the form, and allows you to change values in the form and

[PHP] How do I set the timezone on redhat via PHP? Ie. How to convert GMT to symbolic link?

2003-02-14 Thread Daevid Vincent
Given that I have a GMT offset via the select box below, how the hell do I turn that into a symbolic link to one of these files? How do I know which file to link too?!!! UGH. This is such a stupid way to set the timezone, why didn't RedHat just have a file with the offset in it? Something like "ech

[PHP] Sessions and phplib.

2003-02-17 Thread Vincent M.
t;perm"] == "admin" ;// and others privilege checks... $sess->delete() ; $auth->unauth(); $auth->logout(); etc... What do you think I should use instead of the phplib, do you think I should change what I use at this time which works full well :-/ I do want to use a libra

[PHP] DBA / DB2/3/ GDBM Failures

2003-02-21 Thread Mitch Vincent
I've tried all of the DB libs and I can't get any of them to compile/work properly.. For GDBM I get : Driver initialization failed for handler: gdbm: Bad magic number For the rest I just get Driver initialization failed for handler: Where is db2 db3 etc.. Can anyone tell me what the the tric

[PHP] 2 questions !

2003-03-01 Thread Vincent M.
Hello, I didn't find in the doc how to: - Know the full path of the current directory. Like /var/www/to/the/path - Know under which user work apache, to know when I create a file whose file it is... Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php

[PHP] Re: 2 questions !

2003-03-01 Thread Vincent M.
Greg Beaver wrote: "Vincent M." <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hello, I didn't find in the doc how to: - Know the full path of the current directory. Like /var/www/to/the/path try using dirname(__FILE__) or dirname($_SERVER['PATH_TRANS

[PHP] What ?

2003-03-01 Thread Vincent M.
image" "Chargement de l'image en cours...Veuillez patienter" -> "Loading image in progress...Please wait" Have you ever seen such a good gallere browser ? And look at my future concurent: http://www.photopost.com/ See photopost in action: http://www.fordf150.net/p

[PHP] Re: Php and JavaScript

2003-03-02 Thread Vincent M.
Valentin wrote: Hi, Is any way to write JavaScript code into PHP function or to send PHP's variables values to the JScript variables? Thanks, Of course, you can create dynamicaly javascript via php, ie: echo " var yourvar = $onephpvar ; " ; Is that what you were asking

[PHP] Re: Php and JScript

2003-03-02 Thread Vincent M.
Valentin wrote: Hi, Is any way to write JavaScript code into PHP function or to send PHP's variables values to the JScript variables? Thanks, Yes, I think there is a way to do so! ;-) Vincent. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] define variables.

2003-03-05 Thread Vincent M.
Hello, I do a lot of define like that: define ("_LANG1", "Server options"); define ("_LANG1", "Manage your system"); etc... And stuff like that: if($num == 1) { $mgs = _LANG1 ; }else if($num == 2) { $mgs = _LANG2 ; } etc... But I do want to avoid all these if and else, is there a way

Re: [PHP] define variables.

2003-03-05 Thread Vincent M.
t directly, it works: $num = "_LANG".$num ; echo constant($num) ; //It display the constant variable. Anyway it works :-) Thanks, Vincent. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] RedHat 8.0 MySQL Problem

2003-03-05 Thread Daevid Vincent
Wouldn't that technically be "downgrade", since RH8 ships with Apache 2.0 *smirk* But yes, however, keep in mind that when you do 'downgrade' you will run into the constant annoyance that up2date will always want to install a newer php and httpd (they don't even call it apache for the rpm grrr), s

[PHP] Global VARS.

2003-03-07 Thread Vincent M.
quot; ; ... And many others variables. And magic_quotes seems to work for global vars too. Is there a way to modify no_magicquotes() to make this function works with all global vars ? Another for...each...but how ? Thanks, Vincent. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] wont display anything but a white page!!!

2003-03-08 Thread Daevid Vincent
I have the same problem, and I've found that if you set error_reporting(E_ALL); at the top of the page you're working on, you will at least get some info. You may also set that in the /etc/php.ini file I also suggest you make a "phpinfo.php" page wich contains simply: And browse that to see al

[PHP] Easy Way.

2003-03-09 Thread Vincent M.
"".$i ; } else if( ($i>9)&&($i<100)) { $i = "000".$i ; } else if( ($i>99)&&($i<1000)) { $i = "00".$i ; } etc... Thanks :-) Vincent. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Easy Way.

2003-03-09 Thread Vincent M.
Jason Sheets wrote: Hello, Use str_pad, the manual page is available at http://www.php.net/str_pad, a short example would be: $i = 3; $i = str_pad($i, 5, "0", STR_PAD_LEFT); This function is described in the PHP manual in the string functions section, the manual is an excellent place to go first w

[PHP] HTTP_POST_VARS empty!

2003-03-12 Thread Vincent M.
VARS)) { echo "$key => $val"; } echo "Here we are...!!!..." ; It displays, "Here we are...!!!..." but nothing at all for $key and for $val How should I do to simulate get_magic_quotes_gpc to 0 without emptying HTTP_POST_VARS ? Thanks, Vincent. PS: If I d

[PHP] Re: HTTP_POST_VARS empty!

2003-03-12 Thread Vincent M.
Vincent M. wrote: Hello, I don't understand this code empty my HTTP_POST_VARS variable: if ((get_magic_quotes_gpc() == 1)) { switch ($REQUEST_METHOD) { case "POST": while (list ($key, $val) = each ($HTTP_POST_VARS)) { $$key = stripslashes($val); } bre

[PHP] Re: HTTP_POST_VARS empty!

2003-03-12 Thread Vincent M.
Vincent M. wrote: Vincent M. wrote: Hello, I don't understand this code empty my HTTP_POST_VARS variable: if ((get_magic_quotes_gpc() == 1)) { switch ($REQUEST_METHOD) { case "POST": while (list ($key, $val) = each ($HTTP_POST_VARS)) { $$key = stripslashes($val);

RE: [PHP] how can I logout autamaitcally (using session)

2003-07-01 Thread Daevid Vincent
Did you even read the docs on sessions? http://us4.php.net/manual/en/function.session-destroy.php http://us4.php.net/manual/en/function.session-unset.php http://us4.php.net/manual/en/function.session-unregister.php *sigh* Please people, think and at least do the simplest of searching on the si

[PHP] Removed the bundled MySQL client library. (Sterling)

2003-07-01 Thread Vincent Bouret
I found this in the ChangeLog of PHP5: Removed the bundled MySQL client library. (Sterling) What does that mean? We can't access MySQL anymore from PHP? Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] DHCP web interface. New version.

2003-07-28 Thread Daevid Vincent
Heya. I've just put up a new version of the DHCP web front end if anyone is using it or has a need for this type of thing. Major feature of this version: * a bug where if the arp table showed an "(incomplete)", I ignored the entry since the MAC is the hash key, many machines wouldn't show up as

RE: [PHP] DHCP web interface. New version.

2003-07-29 Thread Daevid Vincent
uot;arp" to rebuild it's cache. > -Original Message- > From: Tom Rogers [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 29, 2003 1:51 AM > To: Daevid Vincent > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] DHCP web interface. New version. > > > Hi, >

RE: [PHP] DHCP web interface. New version.

2003-07-29 Thread Daevid Vincent
re for you if you want to see/play/use it. d > -Original Message- > From: Chris W. Parker [mailto:[EMAIL PROTECTED] > Sent: Monday, July 28, 2003 10:56 PM > To: Daevid Vincent; [EMAIL PROTECTED] > Subject: RE: [PHP] DHCP web interface. New version. > > > Daevid V

RE: [PHP] DHCP web interface. New version.

2003-07-29 Thread Daevid Vincent
> > Pretty straight forward setup. Almost none in fact. Edit the .ini > > file with your mac addresses and icons you want to use (if any). > > Does this mean it doesn't go out, search your network, and then report > back with everything it's found? Do you mean that I have to manually > specify eac

RE: [PHP] System() works on /usr/sbin commands

2003-07-31 Thread Daevid Vincent
Add an entry to /etc/sudoers like so: nobody ALL=NOPASSWD: /bin/date Daevid Vincent http://daevid.com > -Original Message- > From: Marek Kilimajer [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 31, 2003 3:02 AM > To: tirumal b > Cc: [EMAIL PROTECTED] >

RE: [PHP] Re: Password storage system

2003-08-08 Thread Daevid Vincent
Thanks, but I guess I forgot to mention it should be web-interface... http://passwordms.sourceforge.net/index.php For anyone wanting to look. > -Original Message- > Try PMS: Password Management System. I believe it can be found on > sourceforge. -- PHP General Mailing List (http://www

[PHP] REQ: Password storage system

2003-08-14 Thread Daevid Vincent
I'm in search of an 'enterprise level' password storage system. I have looked at phpMyPass and it looks promising, but the demo doesn't seem to have everything I want. http://freshmeat.net/releases/127316/ While this one says v2.0 http://www.phpmypass.paniris.com/ Says 1.0 ?? I need it to be mul

RE: [PHP] Use PHP or MySQL for MD5 function

2003-08-25 Thread Daevid Vincent
o a single MD5 check because I think looping 1 mysql MD5 calls will be slower automatically since there is the connection to the db and stuff to contend with, so keep that in mind. Daevid Vincent http://daevid.com --- test --- blah version one: \t$time1 seconds\n"; ec

[PHP] Searching for a file.

2003-03-17 Thread Vincent M.
that: ls montreal_13* without using the passthru function, I am looking for a native php function doing ls $mychar* Thanks, Vincent. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Zip Way of life.

2003-03-19 Thread Vincent M.
file, I tried for exemple: $retour = readgzfile(dirname($_SERVER['PATH_TRANSLATED'])."/zip/zipfile.zip"); But as mentionned in the php doc it outputs the content of the zip file in the browser :-( How to uncompress a zip file in a directory ? I just want all the files which ar

Re: [PHP] Zip Way of life.

2003-03-19 Thread Vincent M.
Marek Kilimajer wrote: readgzfile is for *.gz files. Either use zip file functions (rarely supported) or PclZip (http://www.phpconcept.net/pclzip/index.en.php) No, it works with .zip files too, I just don't know how to manage it :-( -- PHP General Mailing List (http://www.php.net/) To unsubscr

RE: [PHP] Zip Way of life.

2003-03-19 Thread Daevid Vincent
You could use the exec() or shell_exec() and just do it via command line method... > -Original Message- > From: Vincent M. [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 19, 2003 12:36 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Zip Way of life. > > >

Re: [PHP] Zip Way of life.

2003-03-19 Thread Vincent M.
David T-G wrote: Vincent, et al -- ...and then Vincent M. said... % % Marek Kilimajer wrote: % >readgzfile is for *.gz files. ... % No, it works with .zip files too, I just don't know how to manage it :-( You mentioned wanting the "files" (note the plural) in the zip file

Re: [PHP] Zip Way of life.

2003-03-19 Thread Vincent M.
Daevid Vincent wrote: You could use the exec() or shell_exec() and just do it via command line method... Yes but gunzip does not work when there are more than one file in the zip file and unzip is not installed by default on Unix servers. :-( -- PHP General Mailing List (http://www.php.net

RE: [PHP] Zip Way of life.

2003-03-20 Thread Daevid Vincent
> zip file and unzip is not installed by on Unix servers. :-( So either install it on the servers that need it, or distribute the un/zip exe with your package in your projects local directory -- this also saves you having to deal with different versions on different servers that may not always do

RE: [PHP] Zero Fill -> Number Format

2003-03-20 Thread Daevid Vincent
Just an observer, but I love how you each had a different way of accomplishing this task! ;-) And Mike, looks like you have some re-writing to do now that Martin and Kevin showed you a WAY simpler (and faster) way to accomplish what you did. LOL. http://daevid.com > -Original Message- >

[PHP] Is there a way to access all the variables in my script?

2003-03-20 Thread Daevid Vincent
Is there some global array or something that contains all the variable names (not even values per se) that are used in my script. Here's the scenario. Like most of you, I do a lot of mySQL db work. So I tend to use this: if (mysql_num_rows($result) > 0) { $row = mysql_fetch_array($result,MYSQL

[PHP] Test the server.

2003-03-21 Thread Vincent M.
Hello, Is there anyway to check these two things: - If the server is an Unix server. - If a command is available on the server. For exemple, I need to test if the shell command unzip is avalaible to do: exec("unzip ...something...") ; So I can test if exec is available doing: if(function_exists(

Re: [PHP] Test the server.

2003-03-22 Thread Vincent M.
hell functions I need are available. Vincent. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: how to pass variable for $_GET

2003-03-23 Thread Daevid Vincent
Don't know if you realize this or not, but when you pass the variables, you DO NOT enclose them in ' marks... So... http://blah.com/myscript.php?date=2003-2-1%2000:00:01'%20AND%20'2003-3-1%202 3:59:59&othervar=1234 Then on your myscript.php page, $_GET['date'] will equal "2003-1-3 00:00:01 AN

RE: [PHP] Using include() or require() with PDF module

2003-03-25 Thread Daevid Vincent
Two things come to mind... First, make sure the file is indeed being included/required and you don't have your paths messed up. Second, make sure you have the PDF stuff compiled into PHP. Make a page with as the only thing in it, then load it in your web browser and find the words "PDF" in there

[PHP] What am I not understanding about $GLOBALS['myvar'] vs global $myvar?

2003-03-26 Thread Daevid Vincent
How come this function works, but the one below does not?? function clearContactVars() { global $contact_id; $contact_id = ""; global $contact_timestamp;$contact_timestamp = ""; global $contact_incept; $cont

RE: [PHP] What am I not understanding about $GLOBALS['myvar'] vs global $myvar?

2003-03-26 Thread Daevid Vincent
dn't work right. > -Original Message- > From: Marek Kilimajer [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 26, 2003 1:16 PM > To: Daevid Vincent > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] What am I not understanding about > $GLOBALS['myvar'] v

[PHP] Protecting Code source.

2003-03-27 Thread Vincent M.
uot;Or, make it easy for your customers to run Zend-encoded files by bundling your application with the Zend Optimizer freeware." The only trouble is the price (960$), it's a little expensive for the student I am :-/ Does anyone know any other less expensive way to protect my sourc

Re: [PHP] Protecting Code source.

2003-03-27 Thread Vincent M.
John Wards wrote: On Thursday 27 Mar 2003 7:31 pm, Vincent M. wrote: The only trouble is the price (960$), it's a little expensive for the student I am :-/ Does anyone know any other less expensive way to protect my source code ? http://www.ioncube.com/ They have a web based version tha

RE: [PHP] Microsoft SQL Server varchar(500) field text concatenated at 255 characters.

2003-03-28 Thread Daevid Vincent
http://www.mysql.com/doc/en/CHAR.html VARCHAR can only be 255 characters in length. Here's some useful info: # BIGINTUNSIGNED = 8 Byte = = 18446744073709551615 # INT UNSIGNED = 4 Byte = = 4294967295 # MEDIUMINT UNSIGNED = 3 Byte = FF = 16777215 # SMA

[PHP] So many functions!

2003-04-02 Thread Vincent M.
= "Aller à la page suivante" ; ... And I need to extract "english" and "francais". As it, when I will add another language such as "espanol", it will be automatic... Any idea ? Thanks, Vincent. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Submit Image Button

2003-04-03 Thread Daevid Vincent
Anyone know if this annoying behaviour will ever be 'fixed' in future HTML specs? I can't believe what a glaring oversight this is that the 'value' doesn't get GET/POSTED like with a normal 'submit' button... WTF were they thinking? -- PHP General Mailing List (http://www.php.net/) To unsubscrib

RE: [PHP] RE: newbie Dynamic Drop down lists using mysql

2003-04-03 Thread Daevid Vincent
Not that this hasn't been coverd a million times already Bobby -- check the archives... function ListboxMatch($size, $name, $query, $matchtothis) { $items = 0; //echo "".$query.""; if ( $qry = mysql_query($query) )

[PHP] Found a bug in 4.2.3 re: and echo vs.

2003-04-04 Thread Daevid Vincent
Here, try this bullshit... I can't upgrade to a more recent version as I'm not in control of the server, but I've tried it with both 4.1.2 and 4.2.3 on linux with a RH install. Can anyone confirm or dispute this bug exists in later versions? How does a parsing error like this go un-noticed for so

RE: [PHP] Re: Found a bug in 4.2.3 re: and echo vs.

2003-04-04 Thread Daevid Vincent
fails, and the other line would be (which works): "); ?> In my book, they're both double echoing the output if you will... Are you with me on that? So again, why does the second one work and the first one doesn't? > -Original Message- > From: Philip Hallstrom [mailt

RE: [PHP] Re: Found a bug in 4.2.3 re: and echo vs. [solved]

2003-04-05 Thread Daevid Vincent
HH! Now that makes perfect sense. Thank you Rasmus for that indepth reply and also the , vs . "trick" > -Original Message- > From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED] > Sent: Friday, April 04, 2003 10:11 PM > To: Daevid Vincent > Cc: [EMAIL PROTE

RE: [PHP] RE: newbie alternate row colours in dynamic table

2003-04-05 Thread Daevid Vincent
Wow you guys are going about that way more complicated than it needs to be: $i = 0; echo ""; Then it just alternates and takes care of itself (plus you get a nice little index counter as well as a bonus if you want to use $i DÆVID. "A good friend will come and bail you out of jail...but a tru

RE: [PHP] RE: newbie alternate row colours in dynamic table -- timed tests

2003-04-05 Thread Daevid Vincent
I had to know... ;-) Output: version one:0.56761503219604 seconds version two:0.3099730014801 seconds version three: 0.36320495605469 secondss So the boolean (V2)is faster: Mine is slightly slower by a 'smidge' (0.06 seconds) Top one is cleanest but slower. --- test --- \n"; $time_

[PHP] Timing test of the parser... Makes no difference

2003-04-05 Thread Daevid Vincent
It seems that it makes almost no difference if you switch in and out of the parser or stay within it... Does this seem like a fair test? Having said that, I would suggest always using the first method as it's much cleaner to read and color coding works in most editors. -- output --- version one:

[PHP] How to secure a download ?

2003-05-31 Thread Vincent M.
Hello, Is there any way to launch a download of a Zip file to the user without a link. The user must not know where the file is on the server. The transfert of the file must be made by a php file with special headers, no ? header("Content-type: zip"); or something... Thanks. -- PHP General

[PHP] Downloading a file.

2003-06-11 Thread Vincent M.
ite.com/thanks.html";) ; I does not work :( Does anyone know how change the location and is there is anyway to know if the download has been perfomed 'till the end... Thanks, Vincent. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] need config file parsing code.

2003-06-16 Thread Daevid Vincent
I am writing an open source web page that I can't believe doesn't exist already. basically i want to see all the DHCP clients on my network AND their nice windows names -- that is the tricky part -- I can't find a tool that does that part. GRRR... Anyways, here is what I have so far if you want t

RE: [PHP] need config file parsing code.

2003-06-16 Thread Daevid Vincent
> Sent: Monday, June 16, 2003 2:45 AM > To: Daevid Vincent > Cc: 'PHP-General' > Subject: Re: [PHP] need config file parsing code. > > > On Mon, 2003-06-16 at 01:14, Daevid Vincent wrote: > > So my question is, does anyone have some code (PHP > preferred obv

[PHP] preg_replace problem

2003-06-17 Thread Vincent Bouret
;A dog jumped over a ladder". I **don't** want: "A dog jumped over a ladder" to become "A dog jumped over a ladder". You understand what I mean? I can't do that will str_replace, but I know it would be quite easy with preg_replace. Can someone help me? Thanks Vince

[PHP] How do I get the exit code of an external program?

2003-06-22 Thread Daevid Vincent
I wish to use Ping to test if some IP addresses are up... Now I could run the command and parse to find various string components like this: [EMAIL PROTECTED] bin]# ping -n -c 3 -w 2 -q 192.168.1.60 PING 192.168.1.60 (192.168.1.60) from 192.168.1.1 : 56(84) bytes of data. --- 192.168.1.60 ping sta

FW: [PHP] How do I get the exit code of an external program?

2003-06-22 Thread Daevid Vincent
-Original Message- From: Daevid Vincent [mailto:[EMAIL PROTECTED] Sent: Sunday, June 22, 2003 8:05 PM To: 'Don Read' Subject: RE: [PHP] How do I get the exit code of an external program? > -Original Message- > From: Don Read [mailto:[EMAIL PROTECTED] > Se

[PHP] DHCP client web page

2003-06-23 Thread Daevid Vincent
Okay, my dhcp client web page is pretty much done... http://daevid.com/examples/dhcp/ The .tgz file is linked at the bottom if you want it. This was also an extreme amount of work just to simply see the active leases and 'client-hostname' associated with an IP/MAC?! Seems to me there should have b

RE: [PHP] free web host needed.

2003-06-24 Thread Daevid Vincent
On a 'non sarcastic' note... Perhaps the original poster should just set up their own linux box and run it off their home cable/dsl line. I've been doing it for years and it works wonderfully. I'm even now a free-node on the Seattlewireless.net network for people in the hood who need a quick bit-fi

RE: [PHP] PHP script in C SHELL

2003-06-25 Thread Daevid Vincent
Do this: snip- #!/bin/php(or wherevery you have the php executable binary stored) >8)&0xFF; } ?> snip- chmod 755 myfile.php Then just execute "myfile.php" as any other program. > -Original Message- > From: Marcos [mailto:[

RE: [PHP] Forms

2003-06-30 Thread Daevid Vincent
Additionally, you could put this in a header file or the top of your page: reset ($_GET); while (list ($key, $val) = each ($_GET)) { //echo "$key => $val\n"; $$key = $val; } reset ($_POST); while (list ($key, $val) = each ($_POST)) { //echo "$key => $val\n"; $$key = $val;

[PHP] Apache 2 support broken?

2002-07-23 Thread Mitch Vincent
With php 4.2.2 I get this when trying to compile with apache 2 support: Making all in apache2filter /bin/sh /usr/local/download/apache/php-4.2.2/libtool --silent --mode=compile gcc -I. -I/usr/local/download/apache/php-4.2.2/sapi/apache2filter -I/usr/local/download/apache/php-4.2.2/main -I/usr/lo

RE: [PHP] Credit Card Validation With Expiration Date

2002-07-30 Thread Craig Vincent
algorithm attached to it...as long as it is past the present date there's no way to consider it invalid without cross-referencing against a database of active cards. Sincerely, Craig Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Need help with Apache and .htaccess vs. directive. -- SOLVED

2002-08-09 Thread Daevid Vincent
apply. Just a guess. > > - Tim > > > -Original Message- > > On Thu, Aug 08, 2002 at 06:16:03AM -0700, Daevid Vincent wrote: > > > > I'm baffled. Using the example I found here: > > http://www.devarticles.com/content.php?articleId=143&page=3

RE: [PHP] Help needed about queries with MySQL, thanks.

2002-08-18 Thread Craig Vincent
nID = '$sessionID' Although if $sessionID contains an integer (which I assume is would) the quotes aren't needed, you never know. Some OSes are quirky. Also you may want to add an echo mysql_error(); line after your initial mysql_query to see if perhaps there's a problem

  1   2   3   4   5   6   7   8   9   >