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

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

[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

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
; I think this should make it: > > ob_start(); > include("/pathto/customer_email.php"); > $message = ob_get_contents(); > ob_end_clean(); > > - Original Message - > From: "Daevid Vincent" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]>

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

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

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

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

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. > > > Hello, > > I'd like to uncompr

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

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

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

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

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

[PHP] About the code display on php.net

2002-10-29 Thread Daevid Vincent
Could someone please fix the function pages on http://www.php.net, so that when people submit code all nice and formatted, it retains that formatting in the contributed notes section? There are some really intricate examples, and it just makes it that much easier to read. Not to mention, the left a

RE: [PHP] Who can tell me where I can get the cracked Zend Encoder3.0 ?

2002-10-31 Thread Daevid Vincent
I have it. You can download it from my website here: http://www.siia.net/piracy/ idiot. > -Original Message- > From: jianking [mailto:liaus@;10mail.net] > Sent: Thursday, October 31, 2002 7:00 AM > > > Who can tell me where I can get the cracked Zend Encoder 3.0 ? -- PHP General Mai

[PHP] How do I convert an array into a mask?

2002-11-05 Thread Daevid Vincent
Does anyone know of a nice efficient way to convert an array of values into a "mask"... Here's the deal. Given an array such that: $purchitem[0] = 1; $purchitem[1] = 3; $purchitem[2] = 4; I want to end up with a variable like this: $mask = "10110"; Additionally, my theory is that then the pers

RE: [PHP] How do I convert an array into a mask?

2002-11-06 Thread Daevid Vincent
Michael, I like your idea, and had I designed this site, I would have the bitmask simmilar to what you suggest. However, I'm a contractor modding an existing/legacy site. Basically the way they have it, is that each user has a field in the db that is simply a string/mask of which books a person has

RE: [PHP] How do I convert an array into a mask?

2002-11-06 Thread Daevid Vincent
That's the EASY part John! The hard part is converting the array (which was a checkbox array from a form submission) into the binary string (as per the original post) > Here's the deal. Given an array such that: > $purchitem[0] = 1; //purchased book #1 checkbox enabled > $purchitem[1] = 3; //pu

RE: [PHP] How do I convert an array into a mask?

2002-11-06 Thread Daevid Vincent
:28 AM > To: [EMAIL PROTECTED] > Subject: RE: [PHP] How do I convert an array into a mask? > > > At 10:18 06.11.2002, Daevid Vincent said: > [snip] > >doesn't lend itself nicely to expansion, but may be my only > way. I jus

RE: [PHP] How do I convert an array into a mask?

2002-11-06 Thread Daevid Vincent
Oooh! I think you're on to something there. Nice! Hey, what's the "@" symbol for? I see in the manual the "&" is a reference (like a pointer in C I assume), but I can't find the "@" explained. > if(@$purchitem[$y] == $x) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] For ... <= max($myArray) vs For ... <= $max

2002-11-08 Thread Daevid Vincent
Is PHP smart enough to optimize loops? That is, are these two 'for...loops' equivalent or is one slower than the other? $max = max($myArray); for( $x = 1; $x <= $length; $x++ ) {} -- OR -- for( $x = 1; $x <= max($myArray); $x++ ) {} My gut instinct tells me since PHP is interpreted, that the

RE: [PHP] For ... <= max($myArray) vs For ... <= $max

2002-11-08 Thread Daevid Vincent
> From: Kjartan Mannes [mailto:kjartan@;zind.net] > > Friday, November 8, 2002, 12:13:01 PM, Daevid Vincent wrote: > > $max = max($myArray); > > for( $x = 1; $x <= $length; $x++ ) {} > > > -- OR -- > > > for( $x = 1; $x <= max($myArray); $x++ ) {}

[PHP] How I Got PHP4.2.2, Apache 2.0, mySQL and RedHat 8.0 to work

2002-11-18 Thread Daevid Vincent
Well, it seems there are some glitches with and snags and other fun stuff to deal with when doing a straight RedHat 8.0 install. It turns out you have to edit your /etc/php.ini and uncomment out the "extension=mysql.so" line for starters. It also helps to set "short_open_tag = On". Another fun thi

[PHP] How do I split an alphabetical list (array) into A-M and N-Z?

2002-07-03 Thread Daevid Vincent
Anyone have a function that will take an alphabetical list of names (in an array already) and split it into two 'chunks' (arrays) A-M and N-Z? So, let's say I have: Abby Road BobbyCraft Darren's doodads Farenheit 456 generic name MyCom.com

[PHP] Need to convert seconds to DD:HH:MM:SS

2003-09-19 Thread Daevid Vincent
urn $hh."h:".$mm."m:".$ss."s"; } Daevid Vincent http://daevid.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How can I populate or bypass the mod_auth_mysql prompt

2003-09-19 Thread Daevid Vincent
t time). I tried to set these PHP variables, but I still am prompted. Is there some other trick or way to do this? $_SERVER['PHP_AUTH_USER'] = $login; $_SERVER['PHP_AUTH_PW'] = $password; Daevid Vincent http://daevid.com -- PHP General Mailing List (http://www.p

RE: [PHP] How can I populate or bypass the mod_auth_mysql prompt

2003-09-19 Thread Daevid Vincent
bject: Re: [PHP] How can I populate or bypass the > mod_auth_mysql prompt > > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On Friday 19 September 2003 09:36 pm, Daevid Vincent wrote: > > I am using mod_auth_mysql to protect some directories. All > works

[PHP] How to achieve bi-directional communication between two servers?

2003-09-22 Thread Daevid Vincent
it is mission critical that it works. I'll be tunneling through SSL too, but that should be transparent I'd think. Daevid Vincent http://daevid.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] What is the proper way to use mysql db on a multipage site?

2003-09-26 Thread Daevid Vincent
I sent this to php-db with no reply, so I'll try it here then... -Original Message- From: Daevid Vincent [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 4:21 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] What is the proper way to use mysql db on a multipage site? I&#x

RE: [PHP] where are the good examples of using OOP?

2003-09-28 Thread Daevid Vincent
http://daevid.com/examples/dhcp/index.php Was my first try with php's OOP. Source linked at bottom of page. > -Original Message- > From: anders thoresson [mailto:[EMAIL PROTECTED] > Sent: Sunday, September 28, 2003 3:53 AM > To: [EMAIL PROTECTED] > Subject: [PHP] where are the good examp

php-general@lists.php.net

2003-10-10 Thread Daevid Vincent
sets their up/down flags. My php scheduler page queries to get the ones that are up. So as you see, I don't want to wait for a return code, I know the status via the db and how many rows are done/need to be done. Daevid Vincent. http://daevid.com -- PHP General Mailing List (h

php-general@lists.php.net

2003-10-10 Thread Daevid Vincent
Re: How to fire off a unix command WITHOUT > waiting for it to return (I want to use &) > > On Fri, 10 Oct 2003 16:07:54 -0700, Daevid Vincent > <[EMAIL PROTECTED]> > wrote: > > > How can I cause PHP to fire off a unix program and NOT wait > for a reply.

[PHP] BUG: sprintf(%u) and ip2long

2003-10-14 Thread Daevid Vincent
Could be my not understanding of something, but I think there is a bug in using ip2long() and sprintf(%u) as indicated on this page: http://us4.php.net/manual/en/function.ip2long.php Look at the example below: //this conversion seems broken // $startIP_long = sprintf("%u",ip2long($QR

RE: [PHP] BUG: sprintf(%u) and ip2long

2003-10-14 Thread Daevid Vincent
ctober 14, 2003 2:25 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] BUG: sprintf(%u) and ip2long > > * Thus wrote Daevid Vincent ([EMAIL PROTECTED]): > > Could be my not understanding of something, but I think > there is a bug in > > using ip2long() and sprintf(%u) as in

php-general@lists.php.net

2003-10-14 Thread Daevid Vincent
r the IP address subnet. Furthermore, calculating the list of IP's to put in the db doesn't take more than a second or two in all cases. And I don't think that the mySQL overhead is taking up the other time. Daevid. > -Original Message- > From: Marek Kilimajer [mailto:[E

RE: [PHP] variables in e-mail 2nd

2003-10-17 Thread Daevid Vincent
o $message; $to = "Daevid Vincent <[EMAIL PROTECTED]>"; //$to .= ", "."Daevid Vincent <[EMAIL PROTECTED]>"; // note the comma $headers = "MIME-Version: 1.0\r\n"; //$headers .= "Content-type: text/plain; ch

[PHP] Sending htaccess auth information through php

2003-10-17 Thread Daevid Vincent
for media, try this... http://$username:[EMAIL PROTECTED]/protected/mymovie.wmv Daevid Vincent http://daevid.com > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 15, 2003 7:06 PM > To: [EMAIL PROTECTED] > Subject: [PHP] S

[PHP] What's a good regex to validate an email address? ;)

2003-10-17 Thread Daevid Vincent
r.indexOf(dot,(lat+2))==-1){ return false } if (str.indexOf(" ")!=-1){ return false } return true } Daevid Vincent http://

RE: [PHP] variables in e-mail 2nd

2003-10-17 Thread Daevid Vincent
protects the entire /crimson/ tree at the apache level. Using the method below, I can use graphics, includes, .css, .js, etc all found in that dir tree in my template email. Then when I send it, the user does NOT have to authenticate/login just to read the email :-) Daevid Vincent http://daevid.com

RE: [PHP] there has to be a better way...

2003-10-22 Thread Daevid Vincent
# "dhcp_map.ini" file # MAC ADDRESS: GIF IMAGE: NAME: 00:09:12:86:48:54 linux LINUX 00:0B:AD:31:AA:A6 tivoThad's 00:0B:AD:08:38:C3 tivoDaevid's Daevid Vincent http://daevid.com > -Original Message- > Fro

RE: [PHP] there has to be a better way...

2003-10-22 Thread Daevid Vincent
> -Original Message- > From: Walter Torres [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 22, 2003 3:27 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] there has to be a better way... > > > "Daevid Vincent" <[EMAIL PROTECTED]> wrote in mess

[PHP] BUG: require_once() or die(); = fatal error

2003-11-26 Thread Daevid Vincent
Using PHP 4.2.2 on Linux RH8: In a PHP script run from command line, require_once("gibberator_data.php") or die("No Data file found\n"); Causes: [EMAIL PROTECTED] gibberator]# ./gibberator.php Fatal error: Failed opening required '1' (include_path='.:/php/includes;/usr/share/phpwebto

RE: [PHP] BUG: require_once() or die(); = fatal error

2003-11-28 Thread Daevid Vincent
y since I'm running my script on the command line, and your stock fatal error message uses HTML tags. Not a critical bug or a show stopper, but I do still feel it is a bug. > -Original Message- > From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 26

RE: [PHP] BUG: fatal error uses html in cgi version (WAS: require_once() or die(); = fatal error)

2003-11-30 Thread Daevid Vincent
mus Lerdorf [mailto:[EMAIL PROTECTED] > Sent: Saturday, November 29, 2003 10:48 PM > To: Daevid Vincent > Cc: [EMAIL PROTECTED] > Subject: RE: [PHP] BUG: require_once() or die(); = fatal error > > By default the CLI version turns off the html in the error > messages. And

[PHP] PEAR: HTML_Progress -- how do I actually use this now?!

2003-12-01 Thread Daevid Vincent
re complicated than it should be. But perhaps that's the way PEAR is and since I've never used it, I've been blissfully ignorant building my own things. Daevid Vincent http://daevid.com > -Original Message- > From: Burhan Khalid [mailto:[EMAIL PROTECTED] > Sent: Th

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

2003-12-03 Thread Daevid Vincent
. http://daevid.com/examples/dhcp/ Daevid. > -----Original Message- > From: Daevid Vincent [mailto:[EMAIL PROTECTED] > Sent: Monday, July 28, 2003 9:41 PM > To: [EMAIL PROTECTED] > Subject: [PHP] DHCP web interface. New version. > > Heya. I've just put up a new

[PHP] How do I apt-get newer php4 cgi with mysql on debian?

2003-12-08 Thread Daevid Vincent
I am setting up a Soekris box (256MB CF card) that needs a newer PHP with mySQL support. I followed some instructions I googled and finally got a v4.1.2 of PHP that has mysql working even though phpinfo() says '--without-mysql' (?!). But this is a pretty old version of PHP. I do NOT need the web

RE: [PHP] how and when to use ->

2003-12-10 Thread Daevid Vincent
o. Basically I think of it this way, if I need to store 'records' like with a database, but don't need a database per se, OOP is perfect. For a great example, I would refer you to my simple DHCP web page project: http://daevid.com/examples/dhcp/ you can download the .tgz file at the bot

RE: [PHP] problems with starting session

2003-12-10 Thread Daevid Vincent
You can't print any output before you start the session AFAIK. Daevid Vincent http://daevid.com > -Original Message- > From: obsidianchrysalis [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 09, 2003 3:51 PM > To: [EMAIL PROTECTED] > Subject: [PHP] problems w

[PHP] PHP Internship job (Seattle, WA)

2003-12-10 Thread Daevid Vincent
Sorry if this is a repost, but I never saw it come through the list. Maybe prefixing "OT:" caused it to get /dev/null'd?? -Original Message----- From: Daevid Vincent [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 09, 2003 3:59 PM To: '[EMAIL PROTECTED]' Subjec

[PHP] Help with associative array in a PHP class. Not working as I'd expect it to?!

2003-12-10 Thread Daevid Vincent
I'm pulling out my hair on this. I don't think I'm doing anything wrong and I've tried it with PHP 4.3.4 (cli) (built: Nov 7 2003 03:47:25) AND also v4.1.2 on Linux. With the line commented as shown, I get this output: -- [daevid=pts/4]6:[EMAIL PROTECTED]:{/home/daevid}> ./test.php pa

RE: [PHP] Help with associative array in a PHP class. Not working as I'd expect it to?!

2003-12-10 Thread Daevid Vincent
EMAIL PROTECTED] > Sent: Wednesday, December 10, 2003 6:54 PM > To: Daevid Vincent > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] Help with associative array in a PHP > class. Not working as I'd expect it to?! > > Daevid Vincent wrote: > > > myPacket: > &

RE: [PHP] rss/rdf feed classes

2003-12-11 Thread Daevid Vincent
We have pretty good luck with http://www.fase4.com/rdf/ Daevid Vincent http://daevid.com > -Original Message- > From: Matt Matijevich [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 11, 2003 10:46 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] rss/rdf feed clas

RE: [PHP] Palm OS Processor

2003-12-11 Thread Daevid Vincent
Dunno about Palm, but you could get a Sharp Zaurus (which runs linux) and put mysql, apache, php etc on there. It also has a Palm emulator... Daevid Vincent http://daevid.com > -Original Message- > From: Galen [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 11, 2003

  1   2   3   4   5   6   >