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

[PHP] PHP 5 limits "readfile" to 1.9 MB?

2005-08-16 Thread Jordan Miller
same settings, above What am I doing wrong??? Any other parameter in php.ini I should have set? Any 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
e has 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

Re: [PHP] optional argument when creating a function

2005-08-17 Thread Jordan Miller
} } haven't tested this, but give it a try. 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 argumen

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
nough 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 se

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 wrapp

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

2005-08-17 Thread Jordan Miller
wherever you think you are adding data to the gmev array, you are merely adding the "on" string. I would search your script for the string "on" and you will find the problem. what you need is the value in the HTML form to be the text you want inserted into the array

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="q

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

2005-08-17 Thread Jordan Miller
php page). This is your only problem. i.e. change the code so that the output here: http://www.passeycorp.com/event_reg_calc.php will change from this: to this: checked="checked"/> Jordan On Aug 17, 2005, at 4:52 PM, Support wrote: Thanks for the post... The problem I am havin

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

2005-08-17 Thread Jordan Miller
s 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

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

Re: [PHP] PHP MySQL insert

2005-08-18 Thread Jordan Miller
$data1."', '".$data2."')"; echo $query."\n"; 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. Jord

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 cor

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 On Aug 20, 2005, at 4:55 PM, Greg Donald

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 kn

Re: [PHP] Problem with SimpleXML

2005-08-24 Thread Jordan Miller
ach ($xml->movie[0]->rating as $rating) { switch((string) $rating['type']) { // Get attributes as element indices case 'thumbs': echo $rating, ' thumbs up'; break; case 'stars': echo $rating, ' stars'; break;

[PHP] syntax for two comparison operators

2005-08-24 Thread Jordan Miller
guess there may be a considerable 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/) T

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 Mail

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 sh

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 wri

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 "2>&1": foreach ($_POST as $kid){ `php run.php param1 param2 > /dev/null 2>&1 &`; } This should put each process in the backgroun

Re: [PHP] Nested IFs Problem

2005-08-31 Thread Jordan Miller
uot; on both sides of the operator to have the "<" properly 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) && (putTh

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: How can I get more digits after . ? Can anyone help? Thx! -- PHP General Mailing List (http://www.php.net

Re: [PHP] how to divide string

2005-09-05 Thread Jordan Miller
he comments 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

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

2005-09-06 Thread Jordan Miller
times 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

Re: [PHP] Assign values in foreach-loop

2005-09-07 Thread Jordan Miller
P 5, you can easily modify array's elements by preceding $value with &. This will assign reference instead of copying the value. 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-loo

Re: [PHP] Assign values in foreach-loop

2005-09-07 Thread Jordan Miller
== $arr2['id']) { $_SESSION['arr1'][$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[&

Re: [PHP] Checking a date for validity

2005-09-07 Thread Jordan Miller
x27;t 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

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

2005-09-08 Thread Jordan Miller
like and expect. Another benefit 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

Re: [PHP] Better timestamp explanation to the client

2005-09-08 Thread Jordan Miller
t;, >, or -) with the datetime 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 w

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 time

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/0434205&tid=169&tid=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 Progra

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 o

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 is in

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() will

Re: [PHP] whats wrong in this program.

2005-09-13 Thread Jordan Miller
ot;All your values in the range 10,12,14-18 are 10 12 14 15 16 17 18" 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!! Jo

Re: [PHP] Deny access from certain hosts

2005-09-14 Thread Jordan Miller
cking: in the getFile.php file, you could check the referring URL, and then present the file, or not. you would need to move the images out of the web tree, though, so people couldn't bypass your script. it sounds like you need to reconsider what you really want, though. Jordan

Re: [PHP] whats wrong in this program.

2005-09-14 Thread Jordan Miller
p.net/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 (s

Re: [PHP] whats wrong in this program.

2005-09-14 Thread Jordan Miller
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 $dur

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
g files so 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, F

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 does

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

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

2005-09-19 Thread Jordan Miller
. Jochem, Whoa... 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

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

2005-09-19 Thread Jordan Miller
That is very interesting, thank you. We cannot escape politics, eh? Jordan On Sep 19, 2005, at 9:32 AM, Jochem Maas wrote: Jordan Miller wrote: On Sep 19, 2005, at 8:31 AM, Jochem Maas wrote: e.g: $var = array_pop( explode('-', '1-2-3-4-5') ); .. is bad code (read

Re: [PHP] Easy question - delete strings from the beginning of space...

2005-09-20 Thread Jordan Miller
to get rid of potential double spaces after the explode, you could do: foreach ($words as $word) { if (!empty($word)) { $first = $word; break; } } echo $first; This will always return the first word. Jordan On Sep 20, 2005, at 7:24 AM, Jochem Maas wrote: how much

Re: [PHP] why does this not work?

2005-09-27 Thread Jordan Miller
before you can do this properly, probably through a POST form or GET request. nice idea, though (dynamically loading css based on screen resolution). see: http://forums.devshed.com/t3846/s.html Jordan On Sep 27, 2005, at 3:20 AM, Ross wrote: This returns the correct value for $width but

Re: [PHP] Funky array question

2005-10-16 Thread Jordan Miller
false" because stripos could return a zero or an empty string which is actually "==false". http://www.php.net/stripos/ if you do not have php 5, i would use regex so you can get case insensitivity. Jordan On Oct 16, 2005, at 11:18 PM, Minuk Choi wrote: Assuming that yo

Re: [PHP] Funky array question

2005-10-16 Thread Jordan Miller
sorry, I am mistaken here. I forgot that "!==" is the same functionality as a "===", in that the comparison is made by value *and* type. On Oct 16, 2005, at 11:26 PM, Jordan Miller wrote: Also, note the warning on the man page. you would want to use a triple eq

Re: [PHP] Funky array question

2005-10-16 Thread Jordan Miller
one more thing... if you have php <5 and >= 3.0.6, you could use stristr for case insensitive comparison without having to deal with the slower and more cumbersome regex. On Oct 16, 2005, at 11:18 PM, Minuk Choi wrote: Assuming that you are also accepting partial matches... (e.g. if you

Re: [PHP] RE: php-general Digest 17 Oct 2005 10:35:46 -0000 Issue 3742

2005-10-17 Thread Jordan Miller
if you have compiled php with pdflib support, you can do this fairly easily. see the manual: http://www.php.net/pdf Jordan On Oct 17, 2005, at 6:06 AM, Aftab Alam wrote: hi, any one can help me i want to generate Pdf file using php. how can i & what tools is required for

Re: [PHP] Recommended Reading?

2005-10-18 Thread Jordan Miller
Zandstra's "PHP 5 objects patterns practice" has been getting excellent reviews. i also recommend it. http://www.amazon.com/gp/product/1590593804/ On Oct 18, 2005, at 1:43 PM, Alan Lord wrote: Hi all, Forgive this long diatribe, a bit off-topic I know, but it might stimulate a good disc

Re: [PHP] Trapping for an uploaded file that's too large?

2005-10-20 Thread Jordan Miller
. Can anyone point me in the right direction? are you using PHP 5? If so, maybe check out this, below. Jordan From: [EMAIL PROTECTED] Subject: Re: [PHP] Re: PHP 5 limits "readfile" to 1.9 MB? Date: August 17, 2005 10:26:40 AM CDT To: [EMAIL

Re: [PHP] Declaring vars as INT ?

2005-10-21 Thread Jordan Miller
probably find a solution that will do what you want without mucking about like this. Just my two cents. Jordan On Oct 21, 2005, at 2:39 PM, Chris Knipe wrote: Hi, Uhm... Let's take the below quickly: Function DoSomething($Blah) { $Blah = (int) $Blah; return $Blah } $Blah, cann

Re: [PHP] Declaring vars as INT ?

2005-10-21 Thread Jordan Miller
Also, look at this function: http://www.php.net/ctype_digit Jordan On Oct 21, 2005, at 2:39 PM, Chris Knipe wrote: Hi, Uhm... Let's take the below quickly: Function DoSomething($Blah) { $Blah = (int) $Blah; return $Blah } $Blah, cannot be larger than 2147483647, and sometimes,

Re: [PHP] Ugh, w32 anything is making me want to drink!

2005-10-21 Thread Jordan Miller
I agree with John. It looks like you either need a hammer or the rooftop of a 5-story building... Jordan On Oct 21, 2005, at 3:26 PM, Jay Blanchard wrote: [snip] I just noticed that extension_dir in phpinfo is c:\php4 THAT AIN'T RIGHT! Why is PHP not loading the proper ini file? Th

Re: [PHP] Why this doesn't work ?

2005-10-24 Thread Jordan Miller
why don't you just echo your $query to see if it is coming out correctly, before even trying to mess with mysql_query()? I think you should be able to see the problem from there. Jordan On Oct 24, 2005, at 12:44 PM, Mário Gamito wrote: Hi, Make this line instead $r

[PHP] Questions from a ColdFusion Developer

2005-12-11 Thread Christopher Jordan
to do this or is there a better approach. To that end, I suppose I'm looking for an idea of the best practice. Thanks! Christopher Jordan Planet Access Arlington, TX - Yahoo! Shopping Find Great Deals on Holiday Gifts at Yahoo! Shopping

Re: [PHP] Questions from a ColdFusion Developer

2005-12-14 Thread Christopher Jordan
retrieval of 'complex' structure (i.e. objects in this case) comes with a certain performance penalty (you might want to consider using an array to store the query results) 3. you MUST load the class definitions of ALL the objects that are in your session BEFORE you start the session. Christo

Re: [PHP] Questions from a ColdFusion Developer

2005-12-14 Thread Christopher Jordan
ope. Have I completely missed your point? :) Thanks again, Chris Robert Cummings <[EMAIL PROTECTED]> wrote: On Wed, 2005-12-14 at 20:50, Christopher Jordan wrote: > > When you said: > > "...the strength and simplicity of PHP stem from the decision to make/keep >

Re: [PHP] Questions from a ColdFusion Developer

2005-12-15 Thread Christopher Jordan
Robert Cummings <[EMAIL PROTECTED]> wrote:>On Wed, 2005-12-14 at 21:34, Christopher Jordan wrote: > Rob, > > Thanks for responding. :) I have more questions. I hope >that's okay. :) >*lol* No problem :) Thanks! :) > > You said: > "Share nothing

Re: [PHP] $_FILES help. Counting help

2003-05-27 Thread Jordan S. Jones
Didier, My guess is in your HTML, you have the input(s) named as 'file'.. Because of the way that PHP handles it's POST/GET variables, you will want to redeclare your input names in your HTML to 'file[]'... This basically defines that it is an array.. Hope that help

Re: [PHP] easy conversion to a date?

2003-05-30 Thread Jordan S. Jones
Anthony, I believe that what you are looking for is the following: http://www.php.net/strtotime Jordan Anthony wrote: I have a form where the user enters a date into a text input field. I need to convert this text to a date and put it in a field in a mySQL database. Is there an easy way to do

Re: [PHP] sound

2003-05-30 Thread Jordan S. Jones
Have you copied the sound file to your server as well? Jordan Bobby wrote: Does anybody know of a way under php to add a background sound to a webpage...i have sound on my page when it's local but as soon as I copy it to the server, nothing :( thanks -bobby Bobby Brooks [EMAIL PROT

Re: [PHP] general questions

2003-06-03 Thread Jordan S. Jones
type $arr_test[1] = "My Name"; /// String type $arr_test[2] = true; /// Boolean type Hope this helps, Jordan S. Jones Dale wrote: I am new to php and I just have some general questions. 1. when you create a new variable such as an inte

Re: [PHP] var static

2003-08-28 Thread Jordan S. Jones
If I were you, I would use the following: if (!is_a ($miInstancia, 'db')) $miInstancia=new db(); That way you can ensure that the variable has been instantiated and is an instance of the db class.. But it may not really matter.. Jordan S. Jones Alvaro Martinez wrote: I've fou

Re: [PHP] php framework

2003-10-21 Thread Jordan S. Jones
Where I work, we use a heavily modified version of Fusebox. We like it. Jordan S. Jones Lai, Kenny wrote: just wanted a general idea on what kind of PHP framework everyone is using.. i've heard of pear, and interjinn.. is there a preference or distinct advantage that a particular framewor

Re: [PHP] php framework

2003-10-21 Thread Jordan S. Jones
Modified to be object oriented and support xml/xslt. Jordan S. Jones wrote: Where I work, we use a heavily modified version of Fusebox. We like it. Jordan S. Jones Lai, Kenny wrote: just wanted a general idea on what kind of PHP framework everyone is using.. i've heard of pear

Re: [PHP] Whats more efficient? ( echo " "; or )

2003-10-21 Thread Jordan S. Jones
manage the project especially in dealing with maintenance down the road. I personally prefer to let the business logic create XML and employ XSLT to do my Html rendering. It may not be the quickest or most memory efficient, but, in my humble opinion, it is one of the easiest to maintain. Jordan

Re: [PHP] help me

2003-10-21 Thread Jordan S. Jones
the the position where the 2 (or whatever number it is) is. 4. x 5. i 6. 99 (or what ever value you want) 7.:wq (Escape, colon, w, q, Enter) From there you will want to reload apache or whatever webserver you are using. HTH Jordan S. Jones Feel free to donate https://www.paypal.com

Re: [PHP] php with Interbase ?

2003-10-22 Thread Jordan S. Jones
It really depends on what you want compiled in. If you are not sure what options are available, you could try ./configure --help Jordan S. Jones Luiz Gustavo Sarubi Macchi wrote: Hi all, Please, I´d like to compile my php with interbase. I know that i should put --with-interbase[=DIR], but

Re: [PHP] problem with intval and !=

2003-10-23 Thread Jordan S. Jones
Cesar, You can take a look into is_numeric () (http://www.php.net/is_numeric). It will tell you whether the value is a number or a numeric string, but it will also return true if the value is a float. However, at that point you know your working with the right type of variable. Jordan S

Re: [PHP] Array in SQL-table

2003-10-23 Thread Jordan S. Jones
If the field isn't required to be searchable, you could just serialize the array and shove that into a VARCHAR column.. Then unserialize the return value for that column. Jordan S. Jones Reidar wrote: I want to store an ARRAY in a SQL-table but don't know how to define it in the

Re: [PHP] Avoiding blank lines in HTML when field is empty

2003-10-23 Thread Jordan S. Jones
Robb, You pretty much have it.. Here is what you will most likely want: if (!empty($row_rsVandyDivAddresses['Address']) && strlen (trim ($row_rsVandyDivAddresses['Address'])) > 0) { echo $row_rsVandyDivAddresses['Address']) . ''; } ?> Fee

Re: [PHP] Code optimization: single vs. double quotes?

2003-10-23 Thread Jordan S. Jones
I remember reading something very very similar from one of the main php developers.. However, for the life of me, I can't remember where it was exactly... Jordan S. Jones Shawn McKenzie wrote: I came across this post and was hoping to get a gurus opinion on the validity. TIA -Sha

Re: [PHP] database

2003-10-27 Thread Jordan S. Jones
Alain, You can pass it in the function as a variable. E.g... Function closeDB($ref_link) { mysql_close($ref_link); } closeDB($connectie); Hope this Helps, Jordan S. Jones -- I am nothing but a poor boy. Please Donate.. https://www.paypal.com/xclick/business=list%40racistnames.com

Re: [PHP] database

2003-10-27 Thread Jordan S. Jones
include ('connectie.php'); //open connectie $connectie = openDB(); //code //close connectie closeDB($connectie); Jordan S. Jones alain dhaene wrote: I have try but I get the following error: Warning: mysql_close(): supplied argument is not a valid MySQL-Link resource in /home/sc

Re: [PHP] OT - Quick JavaScript Question

2003-10-28 Thread Jordan S. Jones
. I was wondering if anyone knew of a way I could pass the server time into the JavaScript Date() function to make it start counting from that time, instead of the users machine time. Thanks, Jake Yes, http://devedge.netscape.com/library/manuals/2000/javascript/1.5/reference/date.html#1193137 Jord

Re: [PHP] Help With Recursion && Multi-Dimensional Arrays

2003-11-08 Thread Jordan S. Jones
; Category Y | > Category AC | > Category BC | > Category Z | > Category c Category 3 in a multi-dimentional array Jordan S. Jones Navid Yar wrote: Hello Guys, I n

Re: [PHP] HTML via echo or not

2003-12-29 Thread Jordan S. Jones
Why make PHP work harder than it needs to? Jordan Robin Kopetzky wrote: Good evening. I'm probably going to stir up a hornet's nest but have a question. Does using echo for ALL html pages mean I have a sick mind? Example: echo CR, '', CR, '

[PHP] Re: removing ALL whitespace from a string

2002-03-11 Thread Jordan S. Jones
You can use a regular expression for that.. However, I don't have that right here.. Jordan "Lee P Reilly" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Can somebody tell me if there is a function that will remove *all* &

Re: [PHP] index.php question

2002-03-11 Thread Jordan S. Jones
S, and you should be good. Jordan "Daniel Negron/Kbe" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... do you happen to have an answer for IIS. I alreazdy tried to add index.php to the list of documents, along with index.asp, index.html, an

[PHP] Re: dynamic startpage in flash...

2002-03-11 Thread Jordan S. Jones
In the HTML for embedding the Flash Movie, do something like this: http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0 ,0" id=projector WIDTH=100% HEIGHT=200%> http://www.blabla.com/mailTarget.php?target=6";); ?>"> http://www.blabla.com/mailTarget.php?target=6";); ?>" quality=hig

Re: [PHP] 'undef' as an argument value

2002-03-12 Thread Jordan S. Jones
function foo ($arg1_required, $arg2_options = "") { if (empty($arg2_optional) { print "not passed"; } else { print "explicit"; } } Or you can go the other route. Jordan "Rodent Of Unusual Size" <[EMAIL PROTECTED]> w

[PHP] Re: Can't display PNG images

2002-03-12 Thread Jordan S. Jones
error does occur, it will still display the same broken image icon. However, I am not the definitive word on the matter, and if you or anyone else has a different opinion on the matter, I would be more than happy to hear it. Jordan "Teresa Narvaez" <[EMAIL PROTECTED]> wrote in me

[PHP] Re: reset auto_increment field mysql

2002-03-12 Thread Jordan S. Jones
press the optimization and force MySQL to perform a row-by-row delete operation instead, like this: DELETE FROM tablename WHERE 1 > 0" Things may have changed since this book was published. Jordan "Claudiu" <[EMAIL PROTECTED]> wrote in message Pine.LNX.4.40.02031

[PHP] PHP IDE

2002-03-12 Thread Jordan S. Jones
Development environment for OS X.. If anyone can help me out in these areas, I would be greatly appreciative. Thank You, Jordan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP IDE

2002-03-12 Thread Jordan S. Jones
k lib for OSX since it > is BSD. > > Best reagrds, > Andrey Hristov > > - Original Message - > From: "Jordan S. Jones" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, March 12, 2002 2:23 PM > Subject: [PHP] PHP IDE > >

Re: [PHP] return

2002-04-01 Thread Jordan K. Martin
Rasmus, Makes sense. I didn't think much when writing that piece...but...what is the & for? wouldn't it work the same without it? function test ($var) { $var = addslashes($var) } $foo = "He's dreaming"; test($foo); print($foo); Jordan K. Martin

[PHP] Re: Adding Querystrings to links

2002-04-08 Thread Jordan K. Martin
es on the referring page. Reply and let me know if this is what you're looking for. -Jordan K. Martin --New Image Design ---http://www.newimagedesign.com <[EMAIL PROTECTED]> wrote in message 002f01c1df0f$cb2ef400$0100a8c0@pent333">news:002f01c1df0f$cb2ef400$0100a8c0@pent333.

Re: [PHP] datetime formatting problem

2004-05-28 Thread Jordan S. Jones
[snip /] Hi Matt, try this: function formatDate($val) { $timestamp = strtotime($val); return date('M d, Y g:i A', $timestamp); } strtotime possibly will not work if your date is < 01/01/1970. [snip /] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.n

Re: [PHP] newbie pls help

2004-02-03 Thread Jordan S. Jones
This might help as well: http://www.php.net/manual/en/installation.php Jordan S. Jones Mrs. Geeta Thanu wrote: Hi all, I want to install apache and php in a redhat box version 8 and want apache to load php. So how i shld proceed. Just downloading the rpms of both and installing will help or I

[PHP] PHP 4.3.4 EAPI

2004-03-23 Thread Jordan S. Jones
r would be greatly appreciated.. Thanks, Jordan S. Jones -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Code Review PLEASE !!!

2004-04-05 Thread Jordan S. Jones
or even a number? What happens with $_POST['fleet_id'] == '1 = 1'?? Well, long story short, imp_fleet has no more records. Just a simple example of a huge problem. Jordan S. Jones Matthew Oatham wrote: Hi, I am a newbie PHP programmer, I have some code that works but I want s

Re: [PHP] Code Review PLEASE !!!

2004-04-05 Thread Jordan S. Jones
t any data that comes from a form. Even if the ids come from the database, you still want to ensure that they really are a valid numerical value or whatever your ids happen to be based upon. Jordan S. Jones Matthew Oatham wrote: Yes I agree I need some validation, dunno whether to do server

<    1   2   3   >