[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* whitespace (\n, \r, \t, \w, etc) from a

Re: [PHP] index.php question

2002-03-11 Thread Jordan S. Jones
That means that it isn't getting passed off to the PHP executable or dll. Instead, it is getting sent to the client as plain text.. Go to the Home Directory tab in the IIS admin. From there, click on Configuration. Add an Application Mapping for .php. Restart IIS, and you should be good.

[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: OBJECT classid=clsid:D27CDB6E-AE6D-11cf-96B8-44455354 codebase=http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0 ,0 id=projector WIDTH=100% HEIGHT=200% PARAM NAME=movie VALUE=filename.swf?mail_url=?php echo

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] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

[PHP] Re: Can't display PNG images

2002-03-12 Thread Jordan S. Jones
The icon essentially means that it was a broken image, or that they code did not work. I know that wasn't much help. On another point, in my opinion, it doesn't make a whole lot of logical sense to have a die(Error text) statement in code that creates an image.. If an error does occur, it will

[PHP] Re: reset auto_increment field mysql

2002-03-12 Thread Jordan S. Jones
Direct quote from MySQL by Paul DuBois MySQL 3.23 introduced the new AUTO_INCREMENT behaviors of not reusing sequence numbers and allowing you to specify an initial sequence number in the CREATE TABLE statement. These behaviors are undone if you delete all records in the table using a DELETE

[PHP] PHP IDE

2002-03-12 Thread Jordan S. Jones
Hey all, I am, and have been for some time, in search of a PHP IDE that allows me to view things more on a project basis. Meaning, that I would like to have some sort of Class browsing capabilities along with file browsing capabilities. I am also looking for a decent freeware Texteditor/Web

Re: [PHP] PHP IDE

2002-03-12 Thread Jordan S. Jones
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 Hey all, I am, and have been for some time, in search of a PHP IDE that allows me to view thi

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 found the solution

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 helps, Jordan Didier McGillis

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

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 integer

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 framework has

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 ?php echo ? )

2003-10-22 Thread Jordan S. Jones
S. Jones Ryan A wrote: Hi everyone, Just a simple doubt and basically your opinion needed. I have an option box on a webpage and have around 10 options on it and have run into a doubt, which is more efficient to do: 1. option value=1?php if($th_order==1){echo SELECTED; } ?Something1/option option

Re: [PHP] help me

2003-10-22 Thread Jordan S. Jones
keys to 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.Esc:wqEnter (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

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

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 table

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: ?php if (!empty($row_rsVandyDivAddresses['Address']) strlen (trim ($row_rsVandyDivAddresses['Address'])) 0) { echo $row_rsVandyDivAddresses['Address']) . 'br'; } ? Feel free to format as you wish. Jordan S. Jones

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 -Shawn I

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

Re: [PHP] database

2003-10-27 Thread Jordan S. Jones
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/schoolre/public_html/Hitek/Online/connectie.php on line 16 Alain Jordan S. Jones [EMAIL PROTECTED

Re: [PHP] OT - Quick JavaScript Question

2003-10-28 Thread Jordan S. Jones
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 Jordan S. Jones -- I am

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

2003-11-08 Thread Jordan S. Jones
| Category AC | Category BC | Category Z | Category c Category 3 in a multi-dimentional array Jordan S. Jones Navid Yar wrote: Hello Guys, I need a little bit of help

Re: [PHP] HTML via echo or not

2003-12-29 Thread Jordan S. Jones
. Cheers! Robin 'Sparky' Kopetzky Black Mesa Computers/Internet Service Grants, NM 87020 -- I am nothing but a poor boy. Please Donate.. https://www.paypal.com/xclick/business=list%40racistnames.comitem_name=Jordan+S.+Jones -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

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
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
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 some tips on how I an Improve my code, i.e. should I be doing my updates / deletes on same php page as the display page

Re: [PHP] Code Review PLEASE !!!

2004-04-05 Thread Jordan S. Jones
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 or client

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: