Re: [PHP] Find MAC Address in PHP

2007-04-20 Thread Satyam
Don't bother, if you manage to get a MAC, it won't be that of the client machine in the majority of cases since the IP you get for the request is not, in most cases, the one for that machine, but that of the proxy, router and zillion of other things that step in the middle and change the IP. S

[PHP] CSS position:absolute for on form

2007-04-20 Thread rwhartung
Hi all, I have an internal project where I need to position input text boxes to simulate a desktop app that i am replacing. Can I define a stylesheet with absolute positioning for s. If so do the calls to class="..." or index="..." work in placed within the statement? My understanding

Re: [PHP] Preventing SQL Injection/ Cross Site Scripting

2007-04-20 Thread Leonard Burton
Hi Dotan, Why not use mysql_escape_string()? On 4/20/07, Dotan Cohen <[EMAIL PROTECTED]> wrote: I've got a comments form that I'd like to harden against SQL Injection / XSS attacks. The data is stored in UTF-8 in a mysql database. I currently parse the data as such: $_POST["commentform"]=str_r

RE: [PHP] running linux

2007-04-20 Thread Haig (Home)
Dual booting on 1 physical drive isn't really bullet proof. Assuming your laptop bios supports booting from a usb drive, you can use a usb stick or a usb hard drive and install linux on that along with putting the boot loader on the usb drive as well. I've installed Suse on a 4g usb stick and hav

[PHP] Preventing SQL Injection/ Cross Site Scripting

2007-04-20 Thread Dotan Cohen
I've got a comments form that I'd like to harden against SQL Injection / XSS attacks. The data is stored in UTF-8 in a mysql database. I currently parse the data as such: $_POST["commentform"]=str_replace ("'", "''", $_POST["commentform"]); //q->qq $_POST["commentform"]=str_replace ("--", ""

Re: [PHP] Appending into associative arrays

2007-04-20 Thread Robert Cummings
On Sat, 2007-04-21 at 00:11 +0200, Tijnema ! wrote: > On 4/17/07, Richard Lynch <[EMAIL PROTECTED]> wrote: > > On Sun, April 15, 2007 2:20 pm, Otto Wyss wrote: > > > I want to sort directories according there modification time and > > > thought > > > accociative arrays would be perfect. But when I

[PHP] Re: first script

2007-04-20 Thread Thufir
Richard Lynch l-i-e.com> writes: > > On Fri, April 20, 2007 2:05 pm, Thufir wrote: > > Please tell me that's not your real name... [...] It's the name I use on the internet. -Thufir -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Appending into associative arrays

2007-04-20 Thread Tijnema !
On 4/17/07, Richard Lynch <[EMAIL PROTECTED]> wrote: On Sun, April 15, 2007 2:20 pm, Otto Wyss wrote: > I want to sort directories according there modification time and > thought > accociative arrays would be perfect. But when I add an element like > > $dirs = array (filemtime($d) => $d) > > the

[PHP] upload file then move between servers

2007-04-20 Thread blackwater dev
I need to allow a user to upload a file. Once the file is up, I need to then move it to another server and wsync it to our webclusters. What's the best way to do this with php? I don't really want php issuing root commands. I've considered storing the file in the db but really need it to be sc

Re: [PHP] Find MAC Address in PHP

2007-04-20 Thread Daniel Brown
Usually arp on Linux requires the user to be logged in as root. If you can run it, try this: On 4/20/07, Nathaniel Hall <[EMAIL PROTECTED]> wrote: Hi all, I am attempting to find the MAC address of systems visiting my page from the local LAN. I have tried several things, but it appear

[PHP] Find MAC Address in PHP

2007-04-20 Thread Nathaniel Hall
Hi all, I am attempting to find the MAC address of systems visiting my page from the local LAN. I have tried several things, but it appears it will not let me run system commands. For example, running system("arp 192.168.200.254"); echo $MAC; ?>" does not give me any output. I have copied a

Re: [PHP] running linux

2007-04-20 Thread Edward Vermillion
On Apr 20, 2007, at 4:09 PM, Richard Lynch wrote: On Fri, April 20, 2007 3:59 pm, Edward Vermillion wrote: On Apr 20, 2007, at 3:10 PM, Daniel Brown wrote: You're exactly right, Richard. MacOS is based on BSD. And if you have any familiarity with linux administration, forget almost

Re: [PHP] running linux

2007-04-20 Thread Richard Lynch
On Fri, April 20, 2007 3:59 pm, Edward Vermillion wrote: > > On Apr 20, 2007, at 3:10 PM, Daniel Brown wrote: > >>You're exactly right, Richard. MacOS is based on BSD. >> >> > > And if you have any familiarity with linux administration, forget > almost everything you know 'cause they changed i

Re: [PHP] retrieve POST body?

2007-04-20 Thread Richard Lynch
On Thu, April 19, 2007 11:58 pm, Justin Frim wrote: > Regarding some discussion a while back about putting in a feature > request for obtaining the POST body... > > I can see the advantage of streaming the POST body directly to disk, > because then you don't have to allocate a huge amount of memory

Re: [PHP] retrieve POST body?

2007-04-20 Thread Richard Lynch
On Thu, April 19, 2007 10:28 pm, Myron Turner wrote: > that should be necessary at this time. For instance, if it's > necessary > to pass in CGI parameters at the same time as sending out a file, > the > parameters can be tacked onto a query string and they will be packed > into both the $_POST

Re: [PHP] first script

2007-04-20 Thread Richard Lynch
On Fri, April 20, 2007 2:05 pm, Thufir wrote: Please tell me that's not your real name... :-) > $query = "SELECT DISTINCT * FROM craigslist ORDER BY id"; > $result = mysql_query($query) >or die ("Couldn't execute query."); > > /* create form containing selection list */ > echo " >

Re: [PHP] running linux

2007-04-20 Thread Edward Vermillion
On Apr 20, 2007, at 3:10 PM, Daniel Brown wrote: You're exactly right, Richard. MacOS is based on BSD. And if you have any familiarity with linux administration, forget almost everything you know 'cause they changed it in OSX... Or maybe it's BSD that's a PITA... but I doubt it... I

Re: [PHP] CSS vs. Tables OT

2007-04-20 Thread Richard Lynch
On Fri, April 20, 2007 9:20 am, Jochem Maas wrote: > Jay Blanchard wrote: >> [snip] >> This site (http://www.soyatec.com/main.php) doesn't seem to use >> table. At least a simple search of the "table" keyword in several >> pages >> has no result. >> [/snip] >> >> The CSS is pretty compact too.

Re: [PHP] warning message to hide

2007-04-20 Thread Richard Lynch
On Thu, April 19, 2007 6:05 pm, Roman Neuhauser wrote: >> >> Here's what happens without E_NOTICE: >> >> >> >> [EMAIL PROTECTED] ~ $ php -r 'var_dump($foo);' >> >> >> >> Notice: Undefined variable: foo in Command line code on line 1 >> >> Sorry. >> >> I meant *with* E_NOTICE > > Yeah, that's what

Re: [PHP] copy file from server to shared network folder

2007-04-20 Thread Richard Lynch
While I don't claim to understand the Windows security model, or lack thereof, when you 2x click on something in Windows, you are you. When php does exec() php is *NOT* you. PHP is running with the permissions of the User setting in httpd.conf, whatever that means under Windows. What it means to

Re: [PHP] Json.php

2007-04-20 Thread Richard Lynch
On Fri, April 20, 2007 3:19 am, Jochem Maas wrote: > Richard Lynch wrote: >> On Thu, April 19, 2007 2:25 am, Roman Neuhauser wrote: >>> I'm at a complete loss then. Richard, what would you advise to >>> someone >>> in such a messy situation? >> >> I don't really see why anybody is getting bent out

Re: [PHP] PHP & Text Messaging

2007-04-20 Thread Richard Lynch
On Fri, April 20, 2007 12:36 pm, Edward Vermillion wrote: > How does Yahoo do it? You can send text messages through YMessenger > and all you need is the number. You can probably do that with others > but that's the only one I've ever used. > > I'd be surprised if they are sending out billions of u

Re: [PHP] PHP & Text Messaging

2007-04-20 Thread Daniel Brown
It really is. That's why I was RFC'ing the list maybe I can reduce some clutter. On 4/20/07, Richard Lynch <[EMAIL PROTECTED]> wrote: On Fri, April 20, 2007 10:27 am, Daniel Brown wrote: > The option that you're discussing is what I've been using for the > last > several years. All

Re: [PHP] PHP & Text Messaging

2007-04-20 Thread Richard Lynch
There are services to look up the carrier for any given phone number. Whether any of them are free or not, is another question entirely. On Fri, April 20, 2007 12:05 pm, Daniel Brown wrote: > I don't really like to, because I run the risk of getting my IP or > even > netblock blacklisted, but

Re: [PHP] PHP & Text Messaging

2007-04-20 Thread Richard Lynch
On Fri, April 20, 2007 10:27 am, Daniel Brown wrote: > The option that you're discussing is what I've been using for the > last > several years. All of the ones you sent look correct, from memory, > but I'd > have to check my scripts to see for sure. When I'm sending a message, > I > just sen

Re: [PHP] PHP & Text Messaging

2007-04-20 Thread Richard Lynch
You are missing about 10 large-scale carriers, and almost a hundred small-scale carriers... The list you have compiled is also compiled online somewhere... I don't recall where, but ran across it just by Googling around for SMS and this kind of stuff... Also note that if you send too many text m

[PHP] first script

2007-04-20 Thread Thufir
adapted from php/mysql for dummies, I'd like it to return the "notes" field, too, pls. I know that I want to echo "notes", but can't figure out where to do so. any pointers would be appreciated :) [EMAIL PROTECTED] ~]$ [EMAIL PROTECTED] ~]$ [EMAIL PROTECTED] ~]$ cat /var/www/html/showapts.php

Re: [PHP] a little math

2007-04-20 Thread Richard Lynch
On Fri, April 20, 2007 4:37 am, Sebe wrote: > $seconds = (($job['run_time'] - 60) * $minutes); This is still just plain wrong... Use what the people are telling you to use, because it's right. :-) -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from som

Re: [PHP] a little math

2007-04-20 Thread Richard Lynch
On Fri, April 20, 2007 3:55 am, Sebe wrote: > maybe someone can figure why sometimes i get negative values for > seconds.. > > $job['finished'] and $job['finished'] are both unix timestamp. > i subtract both to get how many seconds some thing took.. well you > should be able to read the rest. somet

Re: [PHP] define() an array?

2007-04-20 Thread Richard Lynch
On Fri, April 20, 2007 4:46 am, [EMAIL PROTECTED] wrote: > I thought I could define() and array. However, when I do this: Nope. :-( Has to be string or int or boolean or float or other "scalar" type. > define("THECONSTANT", array(1,2,3)); > print_r(THECONSTANT); > > it prints THECONSTANT and not

Re: [PHP] Website Hit counter and Logger

2007-04-20 Thread Daniel Brown
Here's an idea for testing purposes to determine why it's counting low, too Have your PHP script write to two files --- one that contains the number as it is now, and one that writes the number and a timestamp on a new line each time it's accessed. This way, you can scan down the list

Re: [PHP] How Best to Maintain Sort Order Field

2007-04-20 Thread Richard Lynch
On Fri, April 20, 2007 8:06 am, Stephen wrote: > I have created some PHP scripts that use MySQL to organize the > photographs on my web site. > > They are grouped into categories and the table for categories has > these > fields: > > Category_id > Category_order > Category_name > Category_descripti

Re: [PHP] Website Hit counter and Logger

2007-04-20 Thread Amos Vryhof
Thanks Daniel, I will switch that. Like I said, I copied it from someone's (obviously erroneous) example and didn't want to "mess it up"... I usually use variable++ for increments. Daniel Brown wrote: One not, Amos, is that instead of using $count += 1, you should just do $count++. That w

Re: [PHP] Website Hit counter and Logger

2007-04-20 Thread Amos Vryhof
Richard Lynch wrote: On Fri, April 20, 2007 11:06 am, Amos Vryhof wrote: I build websites for a lot of people, and many of them want statistics and hit counters for their websites. Webalizer Analog Webalizer works fine, and the output is good (though I doubt it's as accurate since it's tied

Re: [PHP] sendmail smrsh symlinks not working against php scripts

2007-04-20 Thread Richard Lynch
On Fri, April 20, 2007 10:27 am, dan1 wrote: > I would simply like the script to be executed, when passed as a > symlink as > argument, instead of a hardlink. > The problem is that when I specify the script to be executed > (ecardbounce.php) as being a symlink, in the /etc/aliases like this: > ecar

Re: [PHP] running linux

2007-04-20 Thread Daniel Brown
You're exactly right, Richard. MacOS is based on BSD. On 4/20/07, Richard Lynch <[EMAIL PROTECTED]> wrote: On Fri, April 20, 2007 10:37 am, Ross wrote: > I have an old laptop and would like to either run linux on it or have > it > running window and emulate a lixux environment. Is this pos

Re: [PHP] running linux

2007-04-20 Thread Richard Lynch
On Fri, April 20, 2007 10:37 am, Ross wrote: > I have an old laptop and would like to either run linux on it or have > it > running window and emulate a lixux environment. Is this possible? Both are probably possible. The easiest way to find out if it will run Linux natively would be to snag an U

Re: [PHP] Website Hit counter and Logger

2007-04-20 Thread Richard Lynch
On Fri, April 20, 2007 11:06 am, Amos Vryhof wrote: > I build websites for a lot of people, and many of them want statistics > and hit counters for their websites. Webalizer Analog You can probably find binaries for both, or download logfiles and run them offline or... > Since not all of them ar

Re: [PHP] Session with microtime

2007-04-20 Thread Richard Lynch
On Fri, April 20, 2007 11:56 am, Matthew Powell wrote: > Am I the only one that uses 'session.auto_start = 1'? > > It saves me from worrying about that type of problem. It also causes some overhead if you've got a LOT of pages that are NOT using sessions... So you're not the ONLY one who uses it,

Re: [PHP] Problem with characters

2007-04-20 Thread Richard Lynch
On Fri, April 20, 2007 12:19 pm, enediel gonzalez wrote: > Hello. > I have a php site connected to one database mysql. > > using phpmyadmin I can read that in one register of the database > exists the > string > Vérifie que le service > > reading the registry in php code > $description = $row[$desc

Re: [PHP] PHP & Text Messaging

2007-04-20 Thread Daniel Brown
Happens to me all the time, too the fingers work quicker than the brain. I try to tell myself that it's because I have perfected my typing and point-and-click skills through years of experience. On 4/20/07, Edward Vermillion <[EMAIL PROTECTED]> wrote: On Apr 20, 2007, at 12:47 PM, Dani

Re: [PHP] PHP & Text Messaging

2007-04-20 Thread Edward Vermillion
On Apr 20, 2007, at 12:47 PM, Daniel Brown wrote: Yahoo! has an SMS gateway, as do AOL and MSN, among others. AOL's Instant Messenger SMS short code, for example, is 265060 (AOL-060), which is what appears when an AOL or AIM user sends a message to a mobile device. For reference, t

RE: [PHP] sendmail loop

2007-04-20 Thread WeberSites LTD
Would something like this help? http://www.weberdev.com/get_example-4616.html -Original Message- From: John Pillion [mailto:[EMAIL PROTECTED] Sent: Saturday, April 14, 2007 12:54 AM To: php-general@lists.php.net Subject: [PHP] sendmail loop I have a sendmail script that loops through a

Re: [PHP] PHP & Text Messaging

2007-04-20 Thread Daniel Brown
Yahoo! has an SMS gateway, as do AOL and MSN, among others. AOL's Instant Messenger SMS short code, for example, is 265060 (AOL-060), which is what appears when an AOL or AIM user sends a message to a mobile device. For reference, there's an excellent Wiki article on the subject, which inc

Re: [PHP] PHP & Text Messaging

2007-04-20 Thread Edward Vermillion
On Apr 20, 2007, at 12:05 PM, Daniel Brown wrote: I don't really like to, because I run the risk of getting my IP or even netblock blacklisted, but I can't think of any other way to do it if the user doesn't know what carrier the number belongs to. Any ideas on this subject, I'm absolu

Re: [PHP] Problem with characters

2007-04-20 Thread Davi
Em Sexta 20 Abril 2007 14:19, enediel gonzalez escreveu: > Hello. > using phpmyadmin I can read that in one register of the database exists the > string > Vérifie que le service > > reading the registry in php code > $description = $row[$description_field]); > exec("echo '$description' >> /tmp/ttt.

[PHP] Problem with characters

2007-04-20 Thread enediel gonzalez
Hello. I have a php site connected to one database mysql. using phpmyadmin I can read that in one register of the database exists the string Vérifie que le service reading the registry in php code $description = $row[$description_field]); exec("echo '$description' >> /tmp/ttt.txt"); inside of

Re: [PHP] Session with microtime

2007-04-20 Thread Robert Cummings
On Fri, 2007-04-20 at 11:56 -0500, Matthew Powell wrote: > Panquekas wrote: > > On 20/04/07, Panquekas <[EMAIL PROTECTED]> wrote: > > > > > I'm sorry, my mistake. What I tried to say is that the session_start() was > > on the top of the page, and the if( ) block was after that and the login > >

[PHP] Website Hit counter and Logger

2007-04-20 Thread Amos Vryhof
I build websites for a lot of people, and many of them want statistics and hit counters for their websites. Since not all of them are on a dedicated or virtual host, I cobbled together a script that builds log files, and displays a graphical hit counter, and another script that runs Webalizer

Re: [PHP] PHP & Text Messaging

2007-04-20 Thread Daniel Brown
I don't really like to, because I run the risk of getting my IP or even netblock blacklisted, but I can't think of any other way to do it if the user doesn't know what carrier the number belongs to. Any ideas on this subject, I'm absolutely more than willing to listen. The way I did it is a h

Re: [PHP] PHP & Text Messaging

2007-04-20 Thread Stut
Daniel Brown wrote: The option that you're discussing is what I've been using for the last several years. All of the ones you sent look correct, from memory, but I'd have to check my scripts to see for sure. When I'm sending a message, I just send it to all of the providers, because one phon

Re: [PHP] Session with microtime

2007-04-20 Thread Matthew Powell
Panquekas wrote: > On 20/04/07, Panquekas <[EMAIL PROTECTED]> wrote: > I'm sorry, my mistake. What I tried to say is that the session_start() was > on the top of the page, and the if( ) block was after that and the login > script was even after the if( ), so the first thing to ran was the > sess

[PHP] Re: running linux

2007-04-20 Thread Colin Guthrie
Ross wrote: > I have an old laptop and would like to either run linux on it or have it > running window and emulate a lixux environment. Is this possible? > > What is the easiest way to get linux to run on a windows machine? Is it any > easier to do this on a mac? VMWare. Very easy. Live CD's

Re: [PHP] Website Hit counter and Logger

2007-04-20 Thread Daniel Brown
One not, Amos, is that instead of using $count += 1, you should just do $count++. That will automatically increment the number. On 4/20/07, Amos Vryhof <[EMAIL PROTECTED]> wrote: I build websites for a lot of people, and many of them want statistics and hit counters for their websites. Sin

Re: [PHP] Session with microtime

2007-04-20 Thread Panquekas
On 20/04/07, Panquekas <[EMAIL PROTECTED]> wrote: On 19/04/07, Richard Lynch <[EMAIL PROTECTED]> wrote: > > On Thu, April 19, 2007 11:32 am, Panquekas wrote: > > I'm writting a script where I use the function microtime with sessions > > and I > > have a problem. > > > > This is my code: > > >

Re: [PHP] Session with microtime

2007-04-20 Thread Panquekas
On 19/04/07, Richard Lynch <[EMAIL PROTECTED]> wrote: On Thu, April 19, 2007 11:32 am, Panquekas wrote: > I'm writting a script where I use the function microtime with sessions > and I > have a problem. > > This is my code: > > if( $_SESSION['uperm'] == '1' ){ > $t_start = microtime(1); > } >

Re: [PHP] running linux

2007-04-20 Thread Daniel Brown
That really isn't a PHP question, Ross. Check Google for "dual-booting." I primarily run Linux, but every so often I need Windows, so all but one of my machines dual-boots. On 4/20/07, Ross <[EMAIL PROTECTED]> wrote: I have an old laptop and would like to either run linux on it or have it

[PHP] running linux

2007-04-20 Thread Ross
I have an old laptop and would like to either run linux on it or have it running window and emulate a lixux environment. Is this possible? What is the easiest way to get linux to run on a windows machine? Is it any easier to do this on a mac? Ross -- PHP General Mailing List (http://www.ph

Re: [PHP] PHP & Text Messaging

2007-04-20 Thread Daniel Brown
The option that you're discussing is what I've been using for the last several years. All of the ones you sent look correct, from memory, but I'd have to check my scripts to see for sure. When I'm sending a message, I just send it to all of the providers, because one phone number can only exi

Re: [PHP] sendmail smrsh symlinks not working against php scripts

2007-04-20 Thread dan1
However, if I put a hardlink instead of the symlink, all works fine! The permissions of the symlink and the file linekd are all 777. Has anyone already had this problem before, or would anyone have an idea of the cause? smrsh itself may disallow symlinks. Wouldn't surprise me. Why not just us

Re: [PHP] CSS vs. Tables OT

2007-04-20 Thread Jochem Maas
Jay Blanchard wrote: > [snip] > This site (http://www.soyatec.com/main.php) doesn't seem to use > table. At least a simple search of the "table" keyword in several pages > has no result. > [/snip] > > The CSS is pretty compact too. > > BTW, I agree with what others said earlier, this discuss

Re: [PHP] How Best to Maintain Sort Order Field

2007-04-20 Thread Zoltán Németh
2007. 04. 20, péntek keltezéssel 10.47-kor Stephen ezt írta: > Zoltán Németh wrote: > > nothing special. just like this: > > > > > > and then in handler.php do a switch for cmd and update the rows > > accordingly, then redirect back to the form > > > > > Thanks! > > Can you give me idea what t

Re: [PHP] How Best to Maintain Sort Order Field

2007-04-20 Thread Zoltán Németh
2007. 04. 20, péntek keltezéssel 09.45-kor Stephen ezt írta: > Zoltán Németh wrote: > > 2007. 04. 20, péntek keltezéssel 09.31-kor Stephen ezt írta: > > > > > Opps. Sorry > > > > > > I meant when I create the category the category_order field is blank. > > > > > > I need a strategy to update/

Re: [PHP] How Best to Maintain Sort Order Field

2007-04-20 Thread Stephen
Opps. Sorry I meant when I create the category the category_order field is blank. I need a strategy to update/maintain then. Stephen Wolf wrote: IMO, you don't WANT to change that behavior. The category_id should remain as a auto-fill field for the database itself, then just sort the result

RE: [PHP] CSS vs. Tables OT

2007-04-20 Thread Jay Blanchard
[snip] This site (http://www.soyatec.com/main.php) doesn't seem to use table. At least a simple search of the "table" keyword in several pages has no result. [/snip] The CSS is pretty compact too. BTW, I agree with what others said earlier, this discussion is relevant to PHP developers becau

Re: [PHP] PHP & Text Messaging

2007-04-20 Thread Philip Thompson
Thanks to all who replied. I was unaware of being able to use the mail () function to send text messages. When hearing this, I looked up to find what all the major phone companies addresses were. I was able to compile this list - I've been unable to test each one of them, but I'm guessing th

Re: [PHP] PHP & Text Messaging

2007-04-20 Thread Wolf
What I found to work was @provider.whatever The pain was just in finding out which provider used what sub-domain for their clients. But it works for all of them that I have needed to send to. HTH, Wolf Philip Thompson wrote: Hi. I have attempted to look at the archives for this, but keep get

[PHP] How Best to Maintain Sort Order Field

2007-04-20 Thread Stephen
I have created some PHP scripts that use MySQL to organize the photographs on my web site. They are grouped into categories and the table for categories has these fields: Category_id Category_order Category_name Category_description When creating a category, the category_id field is blank I

Re: [PHP] How Best to Maintain Sort Order Field

2007-04-20 Thread Zoltán Németh
2007. 04. 20, péntek keltezéssel 09.31-kor Stephen ezt írta: > Opps. Sorry > > I meant when I create the category the category_order field is blank. > > I need a strategy to update/maintain then. yes. I personally do it like when I insert a new record it gets one bigger than the current max - so

Re: [PHP] How Best to Maintain Sort Order Field

2007-04-20 Thread Wolf
IMO, you don't WANT to change that behavior. The category_id should remain as a auto-fill field for the database itself, then just sort the results of your categories by name or order instead of by id when displaying out to the page. HTH, Wolf Stephen wrote: I have created some PHP scripts t

Re: [PHP] PHP & Text Messaging

2007-04-20 Thread clive
Philip Thompson wrote: I have Googled this topic and found a few, but find it hard to judge which ones are "good." Thanks in advance, ~Philip try bulksms, they have representation in a number of countries, they have php class to interface with them or just simple http posting does the trick

Re: [PHP] CSS vs. Tables OT

2007-04-20 Thread Seak, Teng-Fong
Richard Lynch wrote: > On Tue, April 17, 2007 10:15 pm, Paul Novitski wrote: > >> At 4/17/2007 07:53 PM, Robert Cummings wrote: >> >>> On Tue, 2007-04-17 at 21:28 -0500, Anna V wrote: >>> I've never never had used tables for layouts (I worked on pretty complicated projects

Re: [PHP] serialize an object

2007-04-20 Thread Eric Butera
On 4/19/07, Stut <[EMAIL PROTECTED]> wrote: Tobias Wurst wrote: > i use serialize() to save my object in $_SESSION. Why? There's no point in serialising something into $_SESSION. Anything you put in there gets serialised by the session handler. That isn't necessarily 100% true. http://www.stub

Re: [PHP] a little math

2007-04-20 Thread Sebe
Edward Kay wrote: maybe someone can figure why sometimes i get negative values for seconds.. $job['finished'] and $job['finished'] are both unix timestamp. i subtract both to get how many seconds some thing took.. well you should be able to read the rest. sometimes it works fine but other times

Re: [PHP] PHP & Text Messaging

2007-04-20 Thread John Ewing
I don't know of any free providers for what you want to do, but i've used http://www.clickatell.com/ to send text message notification from servers before. You can trigger the sending of the message by various methods including email and http request. Hope this helps J. On 4/19/07, Daniel Brow

RE: [PHP] a little math

2007-04-20 Thread Edward Kay
> > maybe someone can figure why sometimes i get negative values for seconds.. > > $job['finished'] and $job['finished'] are both unix timestamp. > i subtract both to get how many seconds some thing took.. well you > should be able to read the rest. sometimes it works fine but other times > i get n

Re: [PHP] define() an array?

2007-04-20 Thread Stut
[EMAIL PROTECTED] wrote: I thought I could define() and array. However, when I do this: define("THECONSTANT", array(1,2,3)); print_r(THECONSTANT); it prints THECONSTANT and not the array :( according to the manual: bool define ( string $name, mixed $value [, bool $case_insensitive] ) And isn

Re: [PHP] define() an array?

2007-04-20 Thread Jeremy Privett
[EMAIL PROTECTED] wrote: Hi, I thought I could define() and array. However, when I do this: define("THECONSTANT", array(1,2,3)); print_r(THECONSTANT); it prints THECONSTANT and not the array :( according to the manual: bool define ( string $name, mixed $value [, bool $case_insensitive] ) An

[Fwd: Re: [PHP] a little math]

2007-04-20 Thread Fredrik Thunberg
Don't know your problem but: if $totalTime is total length in seconds $minutes = floor($totalTime / 60); $seconds = $totalTime % 60; /Fredrik Sebe skrev: maybe someone can figure why sometimes i get negative values for seconds.. $job['finished'] and $job['finished'] are both unix timestamp.

[PHP] a little math

2007-04-20 Thread Sebe
maybe someone can figure why sometimes i get negative values for seconds.. $job['finished'] and $job['finished'] are both unix timestamp. i subtract both to get how many seconds some thing took.. well you should be able to read the rest. sometimes it works fine but other times i get negative se

[PHP] define() an array?

2007-04-20 Thread lists
Hi, I thought I could define() and array. However, when I do this: define("THECONSTANT", array(1,2,3)); print_r(THECONSTANT); it prints THECONSTANT and not the array :( according to the manual: bool define ( string $name, mixed $value [, bool $case_insensitive] ) And isn't "mixed" of any typ

Re: [PHP] Json.php

2007-04-20 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-04-20 10:19:04 +0200: > Richard Lynch wrote: > > On Thu, April 19, 2007 2:25 am, Roman Neuhauser wrote: > >> I'm at a complete loss then. Richard, what would you advise to someone > >> in such a messy situation? > > > > I don't really see why anybody is getting bent out

Re: [PHP] Json.php

2007-04-20 Thread Jochem Maas
Richard Lynch wrote: > On Thu, April 19, 2007 2:25 am, Roman Neuhauser wrote: >> I'm at a complete loss then. Richard, what would you advise to someone >> in such a messy situation? > > I don't really see why anybody is getting bent out of shape about > 'almostatic' methods in PHP, but if they're