[PHP] array in email

2001-12-29 Thread Jordan
are session variables to use. Thanks in advance for the help. -Jordan -- 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] Re: array in email

2001-12-30 Thread Jordan
Thanks George...that did the trick...sometimes I want to smack myself for not seeing the obvious. Thanks for the help. -Jordan George Nicolae [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... the mail function looks like : mail($to,$subje

[PHP] Session Array Problems - Please Help

2002-03-06 Thread Jordan
can see anything that is being done wrong. Thanks... -Jordan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] return

2002-03-31 Thread Jordan
Eric, Isnt there really no need for the 'return' though? $test ($var) { addslashes($var) } $foo = He's dreaming; $foo = test($foo); print($foo); //should also print He\'s dreaming Am I incorrect in thinking this? -Jordan K. Martin http://www.newimagedesign.com Eric Coleman [EMAIL

[PHP] problems with looping array

2001-12-03 Thread Jordan
incrementing number that increments at the end of the loop. Please help if you know of anyway to use this variable. Also, I can post my whole script if needed...I just didn't want unneeded info posted. Thanks in advance. -Jordan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e

[PHP] Re: problems with looping array

2001-12-03 Thread Jordan
I tried but nothing different happened. I'm still playing though and I'll see if I can make it work. I'm new to all of this...so we'll see how it goes. Thanks for your help. -jordan Fred [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Strings in

[PHP] question on incrementing

2001-12-05 Thread Jordan
I'm trying to increment a variable but either clicking on link or button but I don't want to reload the page. Is there any possible way to pull this off? Thanks, -Jordan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

[PHP] looping and incrementing

2001-12-05 Thread Jordan
be majorly appreciate. -Jordan -- 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] multi-dimensional array

2001-12-05 Thread Jordan
Is there any way to pass a multi-dimenstional through a url. something like /cart.exe?item[1][1]=3 just curious. -Jordan -- 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

[PHP] JavaScript and PHP

2001-12-09 Thread Jordan
Hey all, Just a quick question...how would you pass a PHP variable to a JavaScript function? -Jordan -- 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

[PHP] session

2001-12-11 Thread Jordan
is there anyway to drag session variables to another server or are they server specific? If you can't drag a session can you do an include for a page on a different server giving it's URL? Just curious. -Jordan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail

[PHP] including outside pages

2001-12-13 Thread Jordan
a session...is there anyway I could include this page on the ssl server into my main server from my host? If I could do an include I could continue the session and use it's stored variables. Thank you for the help. -Jordan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail

Re: [PHP] Good PHP book?

2008-12-16 Thread jordan
Ashley Sheridan a écrit : On Sun, 2008-12-14 at 16:33 -0600, jeffery harris wrote: Hi guys/gals. I'm a first time user. Does anyone know of a good php book? I tend to trust O'Reilly books a lot for all things programming, although I learnt largely with 'PHP, Apache, MySQL Web

[PHP] Dynamic menu

2010-07-19 Thread jordan
Hello All, I am new in this group and first whant to say hello to all. Need me menu who have different link if user is login or logout, something like dynamic menu. Somebody can tall me how can i use and create this menu. Thansk -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Do you have some standard for defined the variable in program language?

2010-07-27 Thread Jordan
Jordan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php or juvascript convert IETF format to ISO08601

2011-03-14 Thread Jordan
Hello Evrybody, Can i convert IETF format (ex: Wed, 18 Oct 2009 13:00:00 EST) in ISO8601 format (ex: 2009-11-05T13:15:30Z) Does somebody know some php scripte or similar? Thanks... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] DB Abstraction

2001-03-11 Thread Jordan Elver
Hi, I thought it was about time I started using a db abstraction class. Problem is, there are so many out there that I don't which one to start using? I've heard of ADODB (I think). Anyone have any suggestions? Cheers, Jord -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Getting path of script

2001-03-13 Thread Jordan Elver
Hi, I want to get the path of a script. I know about HTTP_SERVER_VARS["SCRIPT_FILENAME"] this returns someting like: /phpcode/misc/phpinfo.php But I want to strip off the file name and just have the directory path, like: /phpcode/misc/ Any ideas? Jord -- PHP General Mailing List

Re: [PHP] Getting path of script

2001-03-13 Thread Jordan Elver
- From: Hardy Merrill [EMAIL PROTECTED] To: Jordan Elver [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, March 13, 2001 5:21 PM Subject: Re: [PHP] Getting path of script How 'bout using a Perl regex with $HTTP_SERVER_VARS["SCRIPT_NAME"] like this: echo

[PHP] Re: [PHP-DB] Sessions in Functions

2001-03-16 Thread Jordan Elver
Hi, Yep I do. I just figured out that it was because I had session_start() inside another function ;-) Thanks anyway, Jord On Friday 16 March 2001 10:43, you wrote: Did you declare $LOGGED_IN as a global variable in your function? e.g. global $LOGGED_IN; _ ~ Richard

[PHP] Login System with access levels

2001-03-16 Thread Jordan Elver
Hi, I've got a db with a username and password in it. I can let people log in, like SELECT * FROM table WHERE username = username AND password = password. But how can I add an access level column so that I can have different levels of security. So admin's can read everything, but users can

Re: [PHP] Login System with access levels

2001-03-17 Thread Jordan Elver
Thanks for all your help. I've settled for an enum field for the time being. I'm going to try something more complex at a later stage. Thanks again, Cheers, Jord -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: [PHP] Query - Grouping Results

2001-03-19 Thread Jordan Elver
d order by name,time -Original Message----- From: Jordan Elver [mailto:[EMAIL PROTECTED]] Sent: Monday, March 19, 2001 1:43 PM To: PHP Database Mailing List; PHP General Mailing List Subject: [PHP] Query - Grouping Results Hi, I've got a table like: iduser_id ip

[PHP] Query - Grouping Results

2001-03-19 Thread Jordan Elver
Hi, I've got a table like: id user_id ip time 1 2 127.0.0.1 20010316105018 Etc, etc. I do a join on the this table and the users table to get the coresponding username to user_id like this: SELECT users.name AS name, user_logins.ip AS ip,

[PHP] Best way to check if a query succeeded

2001-03-29 Thread Jordan Elver
Hi, i was just wondering what you guys do to check if a wquery suceeded or not? I know about mysql_num_rows() and mysql_affected_rows(), just wondered what you guys do? I normally do something like: $sql = "SELECT something FROM table"; $result = mysql_query($sql); if(@mysql_num_rows($result)

[PHP] Mail Sent Date

2002-02-08 Thread Pickup, Jordan
scripts. Is this a known bug? Have I just made a stupid mistake? I did check to make sure my server was in the right time zone. :-) Does anyone know a solution? Thanks. Jordan

RE: [PHP] Mail Sent Date - more info

2002-02-08 Thread Pickup, Jordan
in PHP 4.0.4? Jordan -Original Message- From: Pickup, Jordan [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 1:40 PM To: '[EMAIL PROTECTED]' Subject: [PHP] Mail Sent Date We are in the -0700 time zone but whenever I use PHP to send a message it sends it from +0700 making

[PHP] Urgent: Apache sometimes displays PHP source code

2002-03-21 Thread Sam Jordan
PROTECTED] Thank you very much for reading! Have a nice day Sam Jordan, Switzerland -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] mssql_query

2002-08-19 Thread Jordan Lee
! please send back to email address and this one [EMAIL PROTECTED] I'll be travelling and I want to be able check up on the status of your replies. Thanks, Jordan, CMS -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Accessing lots of variables

2001-09-25 Thread Jordan Elver
Hi, I'm feeling a bit stupid. I have a,load of variables coming from a MySQL connection using list(). The variables are link1 to link 35 inclusive. How can I access each of these variables, check if they are empty, then add them to an array. I don't know how to access then inside a for loop.

[PHP] PHP Chat

2001-10-01 Thread Jordan Elver
Hi, Can anyone recommend a good, configurable php chat? I've tried phpMyChat which seems pretty good. Any ideas? Cheers, Jord -- Jordan Elver Web Developer The InternetOne UK Ltd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[PHP] Session and header()

2001-11-21 Thread Jordan Elver
logging out working correctly?! Does anyone have an idea of why header would interfere with seesion functions? Thank, Jordan -- Jordan Elver http://www.jordanelver.co.uk testing? What's that? If it compiles, it is good, if it boots up it is perfect. --- Linus Torvalds -- PHP General Mailing

[PHP] HTTP_REFERER

2001-11-23 Thread Jordan Elver
Hi, I'm writing a 404 handler and in order to report the item that was requested I was trying to get the value of HTTP_REFERER. But, it does seem to get set. Does anyone know how to find thi value? Is there a reason why it would not get set? TIA, Jord -- Jordan Elver Web Developer http

Re: [PHP] HTTP_REFERER

2001-11-23 Thread Jordan Elver
the latter. The former displays properly. Other than that I can't remember if I changed anything else M: -- Jordan Elver Web Developer http://www.theinternetone.co.uk Unix is not a A-ha experience, it is more of a holy-shit experience. --- Colin McFadyen in alt.folklore.computers -- PHP General

Re: [PHP] HTTP_REFERER

2001-11-23 Thread Jordan Elver
of HTTP_REFERER. But, it does seem to get set. Does anyone know how to find thi value? Is there a reason why it would not get set? Hi I think you're looking for this $HTTP_SERVER_VARS[REQUEST_URI] M: -- Jordan Elver Web Developer http://www.theinternetone.co.uk testing? What's

[PHP] Checking Checkboxes using Arrays

2001-12-06 Thread Jordan Elver
?! I hope this is making sense, I thikn this is what I want ;-) Thanks, Jord -- Jordan Elver Web Developer http://www.theinternetone.co.uk How do I read MIME files??? Quietly, while pretending to be trapped in an invisible box. :) -- PHP General Mailing List (http://www.php.net

[PHP] Splitting Text

2001-08-06 Thread Jordan Elver
, Jord -- Jordan Elver http://www.jordanelver.co.uk Oops, my brain just hit a bad sector! -- 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] Splitting Text

2001-08-07 Thread Jordan Elver
... http://www.php.net/manual/en/function.strtok.php The manual has a good example of tokenizing a string into individual words... -Original Message- From: Jordan Elver [mailto:[EMAIL PROTECTED]] Sent: Monday, August 06, 2001 5:20 PM To: PHP General Mailing List Subject: [PHP

[PHP] A Separate Process?

2001-08-27 Thread Pickup, Jordan
and run my javascript) and the script can continue running and do the ns lookup? I'm sorry if this question has been asked and answered before but I couldn't find an answer anywhere else... and the archive for this list seems to be down. Jordan -- PHP General Mailing List (http://www.php.net

[PHP] Statement Confusion

2001-09-06 Thread Jordan Elver
Hi, Could any one explain what this statemnt means? $i = (!$i)?0:$i; Thanks, Jord -- Jordan Elver Web Developer The InternetOne UK Ltd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact

[PHP] Merging Arrays

2001-09-21 Thread Jordan Elver
-- Jordan Elver Web Developer The InternetOne UK Ltd -- 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] Printing out usernames and logins

2001-05-14 Thread Jordan Elver
Hi, I'm trying to print out a list of usernames and the times they logged in. I want to print it out like: joe fred frank Then when you click on one of the names it show just there login times, like this, so if I click on fred it prints out: joe fred - login time - login time - login time

[PHP] Re: [PHP-DB] Printing out usernames and logins

2001-05-14 Thread Jordan Elver
:[EMAIL PROTECTED] internet: http://www.suchtreffer.de ___ -Original Message- From: Jordan Elver [mailto:[EMAIL PROTECTED]] Sent: Monday, May 14, 2001 7:35 PM To: PHP DB List; PHP General List Subject: [PHP-DB] Printing out

[PHP] Testing if variable was set

2001-05-17 Thread Jordan Elver
Hi, If I want to test if a variable exists (or has been passed) then I just do: if($var) { // variable is here } But I've noticed that a lot of people do: if(isset($var)) { // variable is here } What's the difference and which is the best way? TIA, Jord -- Jordan Elver

Re: [PHP] Passing Arrays

2001-04-05 Thread Jordan Elver
(rawurldecode($myarray)); You should consider using sessions instead. Jordan Elver [EMAIL PROTECTED] wrote: Hi, How can I pass an array between two pages. I've tried using serialize and unserialize. But it doen't return an array. When I use gettype() on it, it say's that the typ-e is boolean

[PHP] Re: [PHP-DB] mysql_result()

2001-04-05 Thread Jordan Elver
Thanks for everyones help with this one, all suggestions appreciated. Cheers, Jord On Wednesday 04 April 2001 17:06, you wrote: Jordan, If you know your result is going to product one row, try using: $row=mysql_fetch_array($result, MSQL_ASSOC); // returns an assoc array where the field

[PHP] mysql_result()

2001-04-04 Thread Jordan Elver
Hi, If I knnow that a query will only retrun one row, can I do thiss (below) rather than using a while loop for one record? $id = @mysql_result($result, 0, 'id'); $name = @mysql_result($result, 0, 'name'); $email = @mysql_result($result, 0, 'email'); $address1 = @mysql_result($result, 0,

[PHP] Passing Arrays

2001-04-05 Thread Jordan Elver
Hi, How can I pass an array between two pages. I've tried using serialize and unserialize. But it doen't return an array. When I use gettype() on it, it say's that the typ-e is boolean? Any ideas? Cheers, Jord -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

[PHP] Selecting Dates

2001-04-08 Thread Jordan Elver
Hi, I'm trying to select records based on dates. I have a table with dates in the format 2001-04-08 and I'm using the query: SELECT name, description, date_time FROM events WHERE YEAR(date_time) = 2001 AND MONTH(date_time) = 04 AND DAYOFMONTH(date_time) = 08 But it doesn't yield any records? I

Re: [PHP] Re: [PHP-DB] Selecting Dates

2001-04-08 Thread Jordan Elver
That's what I thought but that doesn't work either? On Sunday 08 April 2001 10:13, you wrote: I'm trying to select records based on dates. I have a table with dates in the format 2001-04-08 and I'm using the query: SELECT name, description, date_time FROM events WHERE YEAR(date_time) =

FW: [PHP] Re: Please hack my app

2006-11-27 Thread Jordan Forssman
Hi, My name is Jordan Forssman, I am representing a company called Armorize Technologies. We have developed a source code analysis platform for PHP, called CodeSecure, which scans source code for SQL injection, cross site scripting, command injection, etc, vulnerability. The tool will tell you

RE: FW: [PHP] Re: Please hack my app

2006-12-12 Thread Jordan Forssman
. Thanks and all the best, Jordan Forssman Sales Manager Armorize Technologies US: Tel: +1-408-512-4052 ext. 201 Fax: +1-408-247-1570 TW: Tel. +886-2-6616-0100 ext. 201 Cell. +886-938-100-214 Fax. +886-2-6616-1100 Skype: jordan4z [EMAIL PROTECTED] -Original Message- From: Ivo F.A.C

FW: FW: [PHP] Re: Please hack my app

2006-12-19 Thread Jordan Forssman
Hi Ivo, Jordan forwarded me your mail to provide some technical explanation. First of all, sorry for the delay, due to recent business travels and out-of-office events, I haven't had a lot of time to go through my mailbox. The product version that you were using is a trial version, which does

[PHP] PHP 5 limits readfile to 1.9 MB?

2005-08-16 Thread Jordan Miller
suggestions are much appreciated. thanks, Jordan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: PHP 5 limits readfile to 1.9 MB?

2005-08-17 Thread Jordan Miller
been downloaded. So is this a bug in PHP 5 or are they just purposely limiting the abilities of the readfile command? Jordan On Aug 17, 2005, at 3:36 AM, Catalin Trifu wrote: Hi, I've had a similar problem. The download always stopped at exactly 2.000.000 bytes. You have

Re: [PHP] optional argument when creating a function

2005-08-17 Thread Jordan Miller
. Jordan On Aug 17, 2005, at 10:00 AM, D A GERM wrote: I'm throwing a warning on a function I created. I thought a in front of the argument was supposed to make it optional. Is there something else I need to do make that argument optional? CODE //I simplified the code function doEmail

Re: [PHP] How Can I delete an Item of one array

2005-08-17 Thread Jordan Miller
you use the unset() function: unset($array[$key]); // http://www.php.net/unset you can reindex the keys if they are numeric with: $reindexedArray = array_values($array); // http://www.php.net/ array_values Jordan On Aug 17, 2005, at 1:12 PM, Tomás Rodriguez Orta wrote: Hi people. How

Re: [PHP] Re: PHP 5 limits readfile to 1.9 MB?

2005-08-17 Thread Jordan Miller
Ok, just checking (I am new to the fopen() function). That makes sense. Awesome, thanks! Jordan On Aug 17, 2005, at 10:19 AM, Catalin Trifu wrote: Hi, Indeed a fclose($fp) is needed (wrote it as an example :)). 1MB is more than enough as a buffer. If you have a 53MB file, what

Re: [PHP] Re: PHP 5 limits readfile to 1.9 MB?

2005-08-17 Thread Jordan Miller
as a buffer. If you have a 53MB file, what will happen then ? I have no idea if it's a bug or a feature. Either way I did lose some hair over this when I switched from PHP4 to PHP5. Catalin Jordan Miller wrote: Catalin, Wow, that worked great, thanks. I'm curious why you set a static buffer

Re: [PHP] mail()

2005-08-17 Thread Jordan Miller
Did you install sendmail? http://www.php.net/mail Requirements For the Mail functions to be available, PHP must have access to the sendmail binary on your system during compile time. If you use another mail program, such as qmail or postfix, be sure to use the appropriate sendmail

Re: [PHP] Help correcting a form mailer problem...

2005-08-17 Thread Jordan Miller
=checkbox name=gmev[1] value=September 9th Jordan On Aug 17, 2005, at 3:30 PM, zedleon wrote: thanks for the reply... after using the print_r($_POST['gmev']); and selecting all the checkboxes to send to the form the return is Array ( [0] = on [1] = on [2] = on [3] = on ). So the values

Re: [PHP] Help correcting a form mailer problem...

2005-08-17 Thread Jordan Miller
checkbox. Jordan On Aug 17, 2005, at 3:57 PM, [EMAIL PROTECTED] wrote: Sorry I should clarify... checkboxes don't send their values through they send their names and states... so if you have the array: Name=qmev[1]... name=qmev[2]... name=qmev[3] And your array contains [1] = on : [3

Re: [PHP] Help correcting a form mailer problem...

2005-08-17 Thread Jordan Miller
. i.e. change the code so that the output here: http://www.passeycorp.com/event_reg_calc.php will change from this: input name=gmev[] type=checkbox id=gmev checked=checked/ to this: input name=gmev[] type=checkbox id=gmev value=September 9th checked=checked/ Jordan On Aug 17, 2005, at 4:52 PM

Re: [PHP] sending HTML (incl. embedded images) to browser

2005-08-17 Thread Jordan Miller
are just not in the right directory or are not being referenced correctly. also, what is the actual PHP code used to print the img tag? maybe you're not escaping quotes correctly...? Jordan On Aug 17, 2005, at 5:42 PM, Jake Sapirstein wrote: Hi List, I am a PHP newbie, pardon the elementary

Re: [PHP] Re: sending HTML (incl. embedded images) to browser

2005-08-18 Thread Jordan Miller
Pardon me, but I don't think he is trying to send an HTML email. I believe he is just asking about making a simple webpage. Relative URLs should be fine and are often preferable for portability. Jordan On Aug 17, 2005, at 7:34 PM, Manuel Lemos wrote: Hello, on 08/17/2005 07:42 PM Jake

Re: [PHP] PHP MySQL insert

2005-08-18 Thread Jordan Miller
; to ensure proper handling of all data in the sql commands. If you echo your $query before the insert, what do you get? This is always a good practice when you're having trouble. Jordan On Aug 18, 2005, at 12:05 PM, Chris wrote: You need to escape the data, so $data1 = mysql_real_escape_string

Re: [PHP] Week Days

2005-08-19 Thread Jordan Miller
Yo, All you need is the mktime() command. do something like: $futureDate = date(Y-m-d, mktime(0, 0, 0, $month, $today+ $daysToAdd, $year)); Jordan http://www.php.net/mktime mktime() is useful for doing date arithmetic and validation, as it will automatically calculate the correct value

Re: [PHP] build sql query struture and values from form fields

2005-08-22 Thread Jordan Miller
I agree, you must be careful of SQL injection... use mysql_real_escape_string(). To chop off the last character of text use substr(): $sqlstruct = substr($sqlstruct, 0, -1); Jordan http://www.php.net/substr Example 3. Using a negative length ?php $rest = substr(abcdef, 0, -1); // returns

Re: [PHP] Special HTML characters question.

2005-08-22 Thread Jordan Miller
Did you try html_entity_decode? http://us2.php.net/html_entity_decode You may want to combine this with mysql_real_escape_string()...? Jordan On Aug 22, 2005, at 8:29 AM, Jay Paulson wrote: I have a problem that I'm sure some of you have run into before, therefore I hope you all know

Re: [PHP] Problem with SimpleXML

2005-08-24 Thread Jordan Miller
'; break; case 'stars': echo $rating, ' stars'; break; } } ? regards, Jordan On Aug 24, 2005, at 3:20 AM, Uroš Gruber wrote: Hi! I have XML and I would like to set some values. I almost done the whole thing but have some problems when looping through some tags foo

[PHP] syntax for two comparison operators

2005-08-24 Thread Jordan Miller
codebase change required. Maybe there could be a default function workaround for this or some other way to automagically process these more concise expressions without too much of a slowdown?? Just curious. Jordan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] syntax for two comparison operators

2005-08-25 Thread Jordan Miller
Good to know about expression evaluation. Writing the expression(s) like that (left-to-right and right-to-left) solves my dilemma... thanks! Jordan On Aug 25, 2005, at 2:44 AM, Richard Lynch wrote: I personally would use: ((2 $x) ($x = 4)) -- PHP General Mailing List (http

Re: [PHP] invert

2005-08-25 Thread Jordan Miller
if you are using mysql, just put the DESC (descending) directive at the end of your sql statement (default is no DESC directive, meaning ascending). most recent records will be returned first. Jordan On Aug 25, 2005, at 2:21 PM, George B wrote: I have written a shoutbox, and it works

Re: [PHP] invert

2005-08-25 Thread Jordan Miller
you need to provide more information. we cannot tell what you are doing. you should: **PASTE THE RELEVANT SECTION OF YOUR CODE IN YOUR EMAIL** On Aug 25, 2005, at 2:38 PM, George B wrote: Łukasz 'nostra' Wojciechowski wrote: W odpowiedzi na maila (21:21 - 25 sierpnia 2005): I have

Re: [PHP] Browsing Into Levels

2005-08-30 Thread Jordan Miller
They are called breadcrumbs: http://www.google.com/search?q=php+breadcrumbs Jordan On Aug 30, 2005, at 4:57 AM, areguera wrote: Hi, I been wondering the best way to make the level browsing, I mean, those links up in page which tell you the position you are, and make you able to return

Re: [PHP] Browsing Into Levels

2005-08-30 Thread Jordan Miller
when displaying each page. Jordan On Aug 30, 2005, at 11:01 AM, Greg Schnippel wrote: Good answer, I think thats what they were looking for but just in case: Most of the breadcrumb classes out there (at least the ones that showed up in an initial google search) use either the existing

Re: [PHP] running process in the background

2005-08-31 Thread Jordan Miller
... foreach ($_POST[$key] ... Jordan Did you try also sending stderr to /dev/null rather than stdout only? I think the syntax is to add a 21: foreach ($_POST as $kid){ `php run.php param1 param2 /dev/null 21 `; } This should put each process in the background and suppress all errors and output

Re: [PHP] Nested IFs Problem

2005-08-31 Thread Jordan Miller
evaluated... do the same for the date comparison. just try each if statement individually. then, when you find the problem, rewrite like this: if ((putFirstExpressionHere) (putSecondExpressionHere) (putThirdExpressionHere)) { // success } else { // failure } Jordan On Aug 31, 2005

Re: [PHP] Help: Get the value of pi up to 200+ digits?

2005-09-01 Thread Jordan Miller
. Your code does exactly this, displaying pi with 15 decimal places. Jordan On Sep 1, 2005, at 8:06 AM, Wong HoWang wrote: Dear all, I'm trying to do like this but failed: ?php ini_set('precision',16); echo pi(); ? How can I get more digits after . ? Can anyone help? Thx! -- PHP General

Re: [PHP] how to divide string

2005-09-05 Thread Jordan Miller
for earlier versions of php. Jordan On Sep 5, 2005, at 6:50 AM, Adi Zebic wrote: Hi, is there any magic function who can give me from: $string = abcdefghijklmnopqrstuwvxyz; somthing like this: abcd efgh ijkl mnop qrst uwvx yz (each 'x' letters go to the next line) Thanks a lot, ADI

Re: [PHP] Sessions , expiry times and different time zones

2005-09-06 Thread Jordan Miller
relative to the server's time). Then, it shouldn't matter from which time zone the user is browsing. Jordan On Sep 6, 2005, at 10:37 AM, Dan Rossi wrote: hi there I have run into problems with sessions , cookies and expiryt times with different time zones. Ie our server is in the States

Re: [PHP] Assign values in foreach-loop

2005-09-07 Thread Jordan Miller
) ? Jordan On Sep 7, 2005, at 12:14 PM, Sabine wrote: Hello to all, is it possible to assign values to the array for which I do the foreach-loop? foreach ($_SESSION['arr1'] as $arr1) { foreach ($_SESSION['arr2'] as $arr2) { if ($arr1['id'] == $arr2['id']) { $arr1

Re: [PHP] Assign values in foreach-loop

2005-09-07 Thread Jordan Miller
'][$key]['selected'] = true; } } } Jordan On Sep 7, 2005, at 12:22 PM, Jordan Miller wrote: foreach ($_SESSION['arr1'] as $arr1) { foreach ($_SESSION['arr2'] as $arr2) { if ($arr1['id'] == $arr2['id']) { $arr1['selected'] = true; } } } -- PHP

Re: [PHP] Checking a date for validity

2005-09-07 Thread Jordan Miller
recommend a good one offhand, but there are several that are DHTML and JS only, so that should be a good starting point for standards compliance. See: http://www.dynarch.com/projects/calendar/ and http://www.google.com/search?q=dhtml+popup+calendar Jordan On Sep 7, 2005, at 5:39 PM, Todd Cary

Re: [PHP] Sessions , expiry times and different time zones

2005-09-08 Thread Jordan Miller
is that this is more secure than relying on a cookie-supplied expiration time. Jordan On Sep 6, 2005, at 8:51 PM, Dan Rossi wrote: client cookie expires hence no more session ... On 07/09/2005, at 1:57 AM, Jordan Miller wrote: Hi Dan, Couldn't you store an expiration time directly

Re: [PHP] Better timestamp explanation to the client

2005-09-08 Thread Jordan Miller
as is, without having to convert to a unix timestamp. NOW in datetime format can be gotten with: $now = date('Y-m-d H:i:s'); i'm not sure though. just try it! Jordan On Sep 8, 2005, at 9:41 AM, Ryan A wrote: Hi, In one of our tables we have these fields: cust_no bigint(20), cust_name varchar

Re: [PHP] Convert a timestamp to RFC822??

2005-09-10 Thread Jordan Miller
we *just* had a post similar to this. It's easy, just use the date() and strtotime() functions: $timestamp = '2004-05-14 13:24:48'; $RFC_formatted = date('r', strtotime($timestamp)); done! Jordan On Sep 10, 2005, at 11:14 AM, Brian Dunning wrote: I get my timestamp from the db

Re: [PHP] Books / tutorials on Object Oriented Programming with PHP

2005-09-10 Thread Jordan Miller
Here is a thorough review on the Zandstra book: http://books.slashdot.org/article.pl?sid=05/08/16/0434205tid=169tid=6 Jordan On Sep 9, 2005, at 6:39 PM, Jason Coffin wrote: On 9/9/05, Vinayakam Murugan [EMAIL PROTECTED] wrote: I am learning about Object Oriented Programming with PHP. Can

Re: [PHP] Round with ONE-decimal... always...

2005-09-12 Thread Jordan Miller
besides sprintf, number_format will also do it: number_format(6, 1, ',', '');// Outputs '6,0' Jordan On Sep 12, 2005, at 3:52 AM, Gustav Wiberg wrote: Hi there! I want to adjust the round() -function a little... If I put round(6,0) there will be an output of 6 If I put round(6,32

Re: [PHP] Deny access from certain hosts

2005-09-13 Thread Jordan Miller
you need to do it like this: Order Allow,Deny Allow from all Deny from 85.65.154 http://httpd.apache.org/docs/1.3/mod/mod_access.html Jordan On Sep 13, 2005, at 2:30 PM, David Pollack wrote: Hello, I have a problem where someone is illegally linking to my site. There site

Re: [PHP] array simple question

2005-09-13 Thread Jordan Miller
please provide code and an example output, and say how this is different than you would like. what you describe is unclear. Jordan On Sep 13, 2005, at 4:04 PM, matt VanDeWalle wrote: hello, I have a simple question, not really a problem this time. I know that the function print_r

Re: [PHP] whats wrong in this program.

2005-09-13 Thread Jordan Miller
In your last email, you had some of the values given out of order: 1. 20,21-24 2. 21-24,20 3. 10,20,21-24,25,26,30 To make sure the $final values are always ascending, just do this at the end: sort($final); Done!! Jordan On Sep 13, 2005, at 7:16 PM, babu wrote: $str=10,12,14-18; $tok

Re: [PHP] Deny access from certain hosts

2005-09-14 Thread Jordan Miller
you really want, though. Jordan On Sep 13, 2005, at 3:00 PM, Aaron Greenspan wrote: Jordan, I have a similar problem where someone is using copyrighted images on my site in a bulletin board. It's not that one specific host is requesting the files--it's people from all over--but rather

Re: [PHP] whats wrong in this program.

2005-09-14 Thread Jordan Miller
/mysql_real_escape_string Jordan On Sep 14, 2005, at 6:36 AM, babu wrote: Hi, I tried to use the final array values in a insert statement, but the values are not inserted. the code is foreach ($final as $subnum){ $res = $db-query(INSERT INTO substrate_protocoll (substrate_type

Re: [PHP] whats wrong in this program.

2005-09-14 Thread Jordan Miller
(and php's autotyping is so great anyway). Jordan On Sep 14, 2005, at 10:54 AM, John Nichel wrote: Jordan Miller wrote: you need single quotes around $subnum in the sql statement. don't know why you seem to be arbitrarily leaving them off (put them around $uv and $duration, too!). snip

Re: [PHP] A tricky little addition

2005-09-14 Thread Jordan Miller
the syntax for variable variables is: $variable= $$add; or alternatively: $variable= ${$add}; Jordan On Sep 14, 2005, at 2:25 PM, Ross wrote: $variable= $.$add; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Domain Info Possible?

2005-09-15 Thread Jordan Miller
you can see all the stats you desire. Jordan On Sep 15, 2005, at 11:07 AM, Chirantan Ghosh wrote: Hello, I was wondering if there was way to generate domain statistics by any PHP script? I just need some basic info like: Monthly Traffic( Sites, Kbytes, Visits, Pages, Files, Hits

Re: [PHP] email validation regex

2005-09-16 Thread Jordan Miller
What do you mean? What's wrong with top posting? ;) Jordan On Sep 16, 2005, at 11:31 AM, John Nichel wrote: bruce wrote: hi.. looking for a good/working/tested php email validation regex that conforms to the rfc2822 standard. a lot of what i've seen from google breaks, or doesn't follow

Re: [PHP] Way for script to discover it's path?

2005-09-18 Thread Jordan Miller
Hey Ken, The variable you want is already a superglobal known as $_SERVER ['SCRIPT_FILENAME']. See: http://www.php.net/reserved.variables Do something like this to get started: echo $_SERVER['SCRIPT_FILENAME']; Good luck. Jordan On Sep 18, 2005, at 4:58 PM, Ken Tozier wrote: I'm

Re: [PHP] Can I install versions of PHP/MySQL that will be compatible with my host server?

2005-09-19 Thread Jordan Miller
... what do you mean by this, exactly? I am running PHP 5.0.4 and $var is correctly set with the code you give above. I could not find anything like you describe in the array_pop manual (see below). Please elaborate on why this is bad code. Jordan array_pop (PHP 4, PHP 5) array_pop -- Pop

  1   2   >