Re: [PHP] test for associative or numerically indexed array

2003-03-20 Thread Ernest E Vogelsinger
At 08:52 20.03.2003, cpaul said: [snip] ok thanks - that makes sense. sort of doesn't solve my problem, because if my function receives an enumerated array, i want it to treat it as an associative array, using the value as the key.

[PHP] Favor from gurus

2003-03-20 Thread Dennis Gearon
If one of you are a guru and on the php-dev list, would you please either look at the code or ask others on that list if it's possible to use: 'requiressl=1' in the connection string for pg_connect/pg_pconnect and it will actually work in PHP ver = 4.2.2 ? I am already on so many lists,

Re: [PHP] test for associative or numerically indexed array

2003-03-20 Thread cpaul
At 08:52 20.03.2003, cpaul said: [snip] ok thanks - that makes sense. sort of doesn't solve my problem, because if my function receives an enumerated array, i want it to treat it as an associative array, using the value as the key.

Re: [PHP] PHP and file extensions

2003-03-20 Thread Chris Hewitt
Beauford.2002 wrote: accessed unless you log in - is there a way to have this line in an html file without changing the extension to .php? Yes, but you need to tell Apache (in the AddType line in httpd.conf) to parse all .html files with php. This has a performance implication for ordinary

Re: [PHP] Apache + PHP - when using as module, can one have PHPs run as

2003-03-20 Thread Chris Hewitt
ADFH wrote: Would it be true to say that the current Apache PHP module doesn't support running PHP scripts as their owners, and that one has to use PHP in CGI mode for this? PHP as an Apache module runs as the user that Apache runs as. Typically nobody or apache. I use a well known PHP based

Re: [PHP] Cleaning user data

2003-03-20 Thread rotsky
That's useful stuff, thanks - and thanks to other respondents. My main concerns are to avoid junk in the database (and on-screen messages) and to avoid dangerous and malicious postings, like the one Justin outlined below (so I guess strip_tags is a major step there). What I have in mind, then,

Re: [PHP] test for associative or numerically indexed array

2003-03-20 Thread Ernest E Vogelsinger
At 09:57 20.03.2003, cpaul said: [snip] as associative array. Take this example: $a = array('one','two','three'); $b = array(); $b[0] = 'one'; $b[1] = 'two'; $b[2] = 'three'; $c = array(0 = 'one', 1 = 'two', 2 = 'three'); Which one would

[PHP] Srange error

2003-03-20 Thread shaun
Hi, I would be very grateful if someone could explain to me why this is happening. I am trying to convert a date sent from a textfield. The textfield is initially populated by a JavaScript calendar control. Using the following code I am attempting to read in the date sent from the textfeild:

Re: [PHP] test for associative or numerically indexed array

2003-03-20 Thread cpaul
So much for the theory - what are you really trying to achieve? Maybe there's something you can redesign so you're not relying on the fact if an array is enumerated or not. thanks very much for your help - i understand now that no matter what kind of array i think i'm making, it is being

Re: [PHP] Passing variable from webpage to php (newbie?)

2003-03-20 Thread Bobby Rahman
Hiya It could need setting register_globals =on in your php.ini if after that still problems then you may need to look into sessions and in particular session_start() and $_SESSION['varname'] and make sure the variables are global so that more than one script can use them. Hope this steers

php-general Digest 20 Mar 2003 11:16:47 -0000 Issue 1949

2003-03-20 Thread php-general-digest-help
php-general Digest 20 Mar 2003 11:16:47 - Issue 1949 Topics (messages 140359 through 140415): Re: Zero Fill - Number Format 140359 by: Mike Brum 140360 by: Kevin Waterson Re: Anybody have any thoughts on Smarty? 140361 by: Dennis Gearon imap trouble 140362

[PHP] Reading from file on local disk to server

2003-03-20 Thread Jan Meiring
Hi everyone This is what I want to do: I have a file on each workstation that gets created each time the pc is rebooted - the file save the pc configuration plus the current user logged onto the machine, I want to read from that file variables so that I can save it to my mySQL database and

[PHP] Changing pages on another PC remotely?

2003-03-20 Thread Denis L. Menezes
Hello friends. This is a difficult one, but I need to try for my project. Can I have make a script where, pressing a button on one page in one PC causes a webpage change on another PC which is also on the internet? Thanks Denis

Re: [PHP] Changing pages on another PC remotely?

2003-03-20 Thread Ernest E Vogelsinger
At 12:49 20.03.2003, Denis L. Menezes spoke out and said: [snip] This is a difficult one, but I need to try for my project. Can I have make a script where, pressing a button on one page in one PC causes a webpage change on another PC which is also on the

[PHP] Error on mysql_num_rows

2003-03-20 Thread ed
I've been trying to count records that match my query in MySQL using the examples given in the on-line manual as well as the user comments and I'm still getting the error: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource. Here's the code. mysql_connect

Re: [PHP] Error on mysql_num_rows

2003-03-20 Thread Tom Rogers
Hi, Thursday, March 20, 2003, 10:44:33 PM, you wrote: ehhc I've been trying to count records that match my query in MySQL using the ehhc examples given in the on-line manual as well as the user comments and I'm ehhc still getting the error: ehhc Warning: mysql_num_rows(): supplied argument is

RE: [PHP] strip single quotes

2003-03-20 Thread Daniel McCullough
I have this code in to try and strip single quotes out. But it does it to one but not the rest. $address = str_replace(\\\///, , $store['address']); $address = str_replace(', , $address); $address = str_replace(', \', $address); $address = addslashes($address); $sql2 = SELECT * FROM store_name

[PHP] Creating graphs with PHP?

2003-03-20 Thread Denis L. Menezes
hello friends, Is there a possibility to create graphs on a web page using PHP? I have loooked through the PHP manual but cannot find anything. Thanks very much. Denis

[PHP] Re: Creating graphs with PHP?

2003-03-20 Thread Joseph Szobody
Dennis, Try this: http://www.aditus.nu/jpgraph/ Joseph Denis L. Menezes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] hello friends, Is there a possibility to create graphs on a web page using PHP? I have loooked through the PHP manual but cannot find anything. Thanks very much.

[PHP] Re: Creating graphs with PHP?

2003-03-20 Thread Christopher J. Crane
JPGRAPH is the best I have found so far. Good documentation and great results. I use it for a lot of graphing purposes, the most being stock market charts and graphs. Joseph Szobody [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Dennis, Try this: http://www.aditus.nu/jpgraph/ Joseph

[PHP] Random Number Generation

2003-03-20 Thread Christopher J. Crane
I have a script that loads 13 or more file names into an array. Then at random I select one of the names out of the array. This files are background songs used on my webpage. Streaming a different song each time the page is refreshed or loaded. My issue is I do not want the same song to ever be

[PHP] Re: Anybody have any thoughts on Smarty?

2003-03-20 Thread David Eisenhart
Smarty is a fantastic tool. One of it's really great features (compared with a couple of other templating engines that I have looked at) is the inherent ability to include logic (using smary syntax) in the templates. This'll sound a bit odd - after all, a point of templates is to separate logic

Re: [PHP] Re: Creating graphs with PHP?

2003-03-20 Thread Denis L. Menezes
Thanks guys for the help. I went to see JP graph. But what I cannot find out is how I can install jpgraph and GD libraries if I am hosting my site on a shared server with an ISP(one of those USD 24.95 per month with 200Mb space kind of thing). Please help. Denis - Original Message -

Re: [PHP] Cleaning user data

2003-03-20 Thread CPT John W. Holmes
--- John W. Holmes [EMAIL PROTECTED] wrote: I disagree. I think stripping HTML from my text is a horrible thing. If I want to put a b in my text, then use htmlentities() and show me a b when I look at it. Obviously you don't want to evaluate HTML, but the end result should be that I

Re: [PHP] Re: Creating graphs with PHP?

2003-03-20 Thread Christopher J. Crane
If PHP is install the GD modules are already there. Write a should script ?PHP phpinfo() ? and put it on your server and access it through your web browser. It will tell you if GD is installed and what version. I do a lot of work with these and would be willing to help you get started. By the

[PHP] Increase a month

2003-03-20 Thread shaun
Hi, could someone tell me why this: ?php $month = date(m); echo \$month: .date(F,strtotime($month)).br; $month = $month + 1; echo \$month: .date(F,strtotime($month)).br; ? outputs this: $month: March $month: March surely it should be: $month: March $month: April Thanks in

Re: [PHP] Increase a month

2003-03-20 Thread Joshua Moore-Oliva
date() returns a unix timestamp, which is in seconds. You are only adding one second. Try using mktime, and increment hte month argument there. Josh. On March 20, 2003 09:00 am, shaun wrote: Hi, could someone tell me why this: ?php $month = date(m); echo \$month:

[PHP] Re: Increase a month

2003-03-20 Thread Christopher J. Crane
echo \$month: .date(F,strtotime($month)).br; you have escaped the $ by placing the \ in front of it. Remove it. Shaun [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, could someone tell me why this: ?php $month = date(m); echo \$month: .date(F,strtotime($month)).br;

[PHP] sorting an array

2003-03-20 Thread Steve Buehler
I am having problems sorting a multi-dimensional array. I am hoping that somebody can help me figure out what I am doing wrong. It should sort on the field than on the fac. Here is my code: -start code- $sortterm; get_locations(); function cmp ($a, $b) { GLOBAL $sortterm; return

Re: [PHP] Error on mysql_num_rows

2003-03-20 Thread ed
I think I've found my problem. The query does work if I place the exact same code directly into my script but I had previously been calling it as a function from an include file. It's working just great now. Thanks, Ed On Thu, 20 Mar 2003, Tom Rogers wrote: Hi, Thursday, March 20, 2003,

[PHP] multiple php.ini files

2003-03-20 Thread Cemal Dalar
Hi all, I need to use 2 php.ini files at the same time in Windows.. Can I do that.? Because one software is need session.auto_start = 1 and the other needs session.auto_start = 0.. Have a nice day. Cemal -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] internally stored binary image

2003-03-20 Thread speedfreak
In order to distribute a single script I would like to store a small image internally. Is this at all possible with PHP? How would I go about it? Please feel free to rtfm me to the relevant sections. Thx in advance, [EMAIL PROTECTED] PS: CC me please, as I'm on the digest... -- PHP General

Re: [PHP] List tables

2003-03-20 Thread Alin
On Thu, 2003-03-20 at 17:09, Alin wrote: if you are using mysql try: $query=show tables; $result=mysql_db_query(database-name,$query) or die(Query error); whlie(list($table-name)=mysql_fetch_row($result)){ echo Columns from $table-name: br; $query=show columns from $table-name;;

RE: [PHP] strip single quotes

2003-03-20 Thread Daniel McCullough
another question is could this becoming from the table I am comparing it too? SELECT * FROM store_address WHERE address = '.$address.' where $address is fine but the other table is causing the error. how do I strip that result as well? I have this code in to try and strip single quotes out.

[PHP] File management system

2003-03-20 Thread J J
Anyone have a good recommendation for a file management system that would allow the average person to browse certain files/directory on a web server and possibly make edits. Then the front-end would sort of catalog those files and index them so the web user could browse/search and open the files?

Re: [PHP] Re: Creating graphs with PHP?

2003-03-20 Thread Alberto Brea
If all you need is a simple bar graph, you can: 1. make a 1-pixel gif 2. make a table with fixed-width tds on the same row (e.g. width 10 pixels) 3. in each td you put one gif with img src=xx width=10 height=xxx wherein the height is queried from your data source. 4. on the row below you put the

Re: [PHP] PHP and file extensions

2003-03-20 Thread Beauford.2002
What about IIS. This is what the customer is usingand I know d*** about IIS. I would assume that there is a similar thing for IIS, but have no idea where to even look. - Original Message - From: Chris Hewitt [EMAIL PROTECTED] To: Beauford.2002 [EMAIL PROTECTED] Cc: PHP General [EMAIL

[PHP] Shared Memory

2003-03-20 Thread Adam Voigt
Is the Shared Memory allocated with the SHMOP functions persistent? Like when a script ends, on the next call of a script, can you read the same memory block and have the data be there? -- Adam Voigt ([EMAIL PROTECTED]) The Cryptocomm Group My GPG Key:

[PHP] Addslashes problem (MSSQL)

2003-03-20 Thread Poon, Kelvin (Infomart)
Hi, I have a problem that lets you add a record to a database. THere is a problem with it, and the following is the area of the program where it has problem. $created_date = date('m, d, Y'); $title = strip_tags($title); $keywords = strip_tags($keywords);

Re: [PHP] Addslashes problem (MSSQL)

2003-03-20 Thread Lowell Allen
MS-SQL doesn't escape with slashes. It escapes single quotes with single quotes. -- Lowell Allen From: Poon, Kelvin (Infomart) [EMAIL PROTECTED] Date: Thu, 20 Mar 2003 10:58:02 -0500 To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: [PHP] Addslashes problem (MSSQL) Hi, I have a

RE: [PHP] Addslashes problem (MSSQL)

2003-03-20 Thread Poon, Kelvin (Infomart)
What do you mean by It escapes single quotes with single quotes.? so let's say my $content is lalal 'lalalal' lalala then what do I have to do to $content in order to insert to my MSSQL table? -Original Message- From: Lowell Allen [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20,

RE: [PHP] Addslashes problem (MSSQL)[Scanned]

2003-03-20 Thread Michael Egan
Kelvin, This link should be helpful: http://www.mysql.com/doc/en/String_syntax.html Regards, Michael Egan -Original Message- From: Poon, Kelvin (Infomart) [mailto:[EMAIL PROTECTED] Sent: 20 March 2003 16:21 To: 'Lowell Allen' Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Addslashes problem

Re: [PHP] Addslashes problem (MSSQL)

2003-03-20 Thread Lowell Allen
Read the user-contributed notes following the online manual info on addslashes: http://www.php.net/manual/en/function.addslashes.php -- Lowell Allen From: Poon, Kelvin (Infomart) [EMAIL PROTECTED] Date: Thu, 20 Mar 2003 11:20:51 -0500 To: 'Lowell Allen' [EMAIL PROTECTED] Cc: '[EMAIL

Re: [PHP] File management system

2003-03-20 Thread Mike
Webmin has some good stuff. (it's a java applet though...) On Thu, 2003-03-20 at 06:14, J J wrote: Anyone have a good recommendation for a file management system that would allow the average person to browse certain files/directory on a web server and possibly make edits. Then the

Re: [PHP] File management system

2003-03-20 Thread J J
Yeah I think I've seen that one... looking for a php/mysql solution if possible. Thanks! --- Mike [EMAIL PROTECTED] wrote: Webmin has some good stuff. (it's a java applet though...) On Thu, 2003-03-20 at 06:14, J J wrote: Anyone have a good recommendation for a file management system

[PHP] Banner ad solution?

2003-03-20 Thread MIKE YRABEDRA
Can someone suggest a 'good' banner ad solution that is done in php. Please do not suggest phpAdNews since it has proven very unstable for me and others. -- Mike Yrabedra President 323, Inc. Home of The MacDock and The MacSurfshop [http://macdock.com] : [http://macsurfshop.com] VOICE:

Re: [PHP] Shared Memory

2003-03-20 Thread Mincu Alexandru
nope! of course not there are two different procs. On Thu, 2003-03-20 at 17:19, Adam Voigt wrote: Is the Shared Memory allocated with the SHMOP functions persistent? Like when a script ends, on the next call of a script, can you read the same memory block and have the data be there? --

Re: [PHP] internally stored binary image

2003-03-20 Thread Ernest E Vogelsinger
At 15:57 20.03.2003, [EMAIL PROTECTED] spoke out and said: [snip] In order to distribute a single script I would like to store a small image internally. Is this at all possible with PHP? How would I go about it? Please feel free to rtfm me to the relevant

Re: [PHP] multiple php.ini files

2003-03-20 Thread Jason Wong
On Thursday 20 March 2003 22:53, Cemal Dalar wrote: I need to use 2 php.ini files at the same time in Windows.. Can I do that.? Because one software is need session.auto_start = 1 and the other needs session.auto_start = 0.. If you're using apache you can have per domain or per directory

[PHP] Session Question

2003-03-20 Thread PHP List
Hi All, I have a question about sessions. I need to pass session data from one domain to a secure domain. (www.mydomain.com to www.securedomain.com). I would like to preserve the session data in case the visitor goes back to www.mydomain.com. I thought about just passing the session ID to

[PHP] credit card validations..

2003-03-20 Thread Edward Peloke
The owner of the php site I am working on just told me he want to do credit card validations on the site. Currently, we aren't doing anything with credit cards. I have no idea as to where to even start with this. Should I simply go the paypal route? Thanks, Eddie -- PHP General Mailing List

Re: [PHP] credit card validations..

2003-03-20 Thread Kevin Stone
- Original Message - From: Edward Peloke [EMAIL PROTECTED] To: [EMAIL PROTECTED] Php. Net [EMAIL PROTECTED] Sent: Thursday, March 20, 2003 11:50 AM Subject: [PHP] credit card validations.. The owner of the php site I am working on just told me he want to do credit card validations on

RE: [PHP] credit card validations..

2003-03-20 Thread Edward Peloke
Thanks Kevin! Forgive my ignorance of the subject but would this just say the card was valid? How do you go about actually charging the users card and get the funds? Thanks, Eddie -Original Message- From: Kevin Stone [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 1:58 PM To:

[PHP] Running DB on different server

2003-03-20 Thread Todd Cary
Can the DB be on a different server than the page server? Todd --

[PHP] php, mysql, and method question

2003-03-20 Thread Charles Kline
hi all, i have a question about a good method of handling this challenge. i have a table that contains articles. i have another table which contains the order 1 - 9 that i would like to display them in. this part is done, and is not a problem. here is where I am not sure how to proceed. 1.

Re: [PHP] Running DB on different server

2003-03-20 Thread Larry E. Ullman
Can the DB be on a different server than the page server? Yes. For example, with MySQL, you just need to create a user with permission to connect from a remote computer by setting the appropriate host value. Larry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Running DB on different server

2003-03-20 Thread Leif K-Brooks
Yes. Todd Cary wrote: Can the DB be on a different server than the page server? Todd -- -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.

RE: [PHP] credit card validations..

2003-03-20 Thread Ernest E Vogelsinger
At 20:00 20.03.2003, Edward Peloke spoke out and said: [snip] Forgive my ignorance of the subject but would this just say the card was valid? How do you go about actually charging the users card and get the funds?

[PHP] Re: Running DB on different server

2003-03-20 Thread pinnockio
Hello, I wrote everything down for later scenario's. Hope it'll help you ;). A belgian guy Todd Cary wrote: Can the DB be on a different server than the page server? Todd -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] To use PEAR::DB or the PHP database functions

2003-03-20 Thread Merritt, Dave
All, I've always used MySQL databases and the MySQL functions in PHP for my code in the past. However, I'm now working on a project that I want the project to be able to be database independent so that the user of the project can use whatever database he/she wishes. I'm looking primarily at

[PHP] PHP Devel Environments???

2003-03-20 Thread Henrik Hudson
Hey List- Any one have some input on some good GUI WYSIWYG devel enviroments for creating PHP scriptlets. The boss wants to lose the dependancy on the 2 programmers (myself and another person) for every little piece of PHP code. Of course, the graphic designers have no desire to learn source

Re: [PHP] To use PEAR::DB or the PHP database functions

2003-03-20 Thread Charles Kline
Pear is really nice. I am very happy with it. - Charles On Thursday, March 20, 2003, at 02:56 PM, Merritt, Dave wrote: All, I've always used MySQL databases and the MySQL functions in PHP for my code in the past. However, I'm now working on a project that I want the project to be able to be

Re: [PHP] PHP Devel Environments???

2003-03-20 Thread John Wells
Henrik, Why not use Smarty and create your own functions for your designers to use? That's one of it's purposes, after all. John Henrik Hudson said: Hey List- Any one have some input on some good GUI WYSIWYG devel enviroments for creating PHP scriptlets. The boss wants to lose the

RE: [PHP] Zip Way of life.

2003-03-20 Thread Daevid Vincent
zip file and unzip is not installed by on Unix servers. :-( So either install it on the servers that need it, or distribute the un/zip exe with your package in your projects local directory -- this also saves you having to deal with different versions on different servers that may not always do

RE: [PHP] Zero Fill - Number Format

2003-03-20 Thread Daevid Vincent
Just an observer, but I love how you each had a different way of accomplishing this task! ;-) And Mike, looks like you have some re-writing to do now that Martin and Kevin showed you a WAY simpler (and faster) way to accomplish what you did. LOL. http://daevid.com -Original Message-

Re: [PHP] PHP Devel Environments???

2003-03-20 Thread Larry E. Ullman
The only product I know of that fits your description (I think) is JaneBuilder (http://www.seejanecode.com). It's currently available for Mac and will be on Windows soon. Never used it myself... Larry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] php, mysql, and method question

2003-03-20 Thread Hugh Danaher
Charles, it sounds like you want the most recent 9 articles (...order set to 1 so it shows up first when ...), so why not something like select * from article_table order by id desc, limit 9 [assumes id is int not null auto_incremented]. You could also increment the value in the field something

[PHP] Q. How to remove new line/CrLf in string??

2003-03-20 Thread Jack Schroeder
Hello: I am trying to use an ASCII/Txt database for a 'for sale by owner' site. I need to figure out a way to remove any carriage returns entered into a Comments string because \n is the record delimiter. I have tried the nl2br() fundtion but that seems to ad the BR but doesn't remove the \n.

Re: [PHP] Q. How to remove new line/CrLf in string??

2003-03-20 Thread André Cupini
Jack, I replace the \n char by nothing in my scripts of the following form: ? $string = str_replace(\n, , $string); ? -- André Cupini - Programador -- [EMAIL PROTECTED] -- NeoBiz - fábrica de internet

[PHP] Is there a way to access all the variables in my script?

2003-03-20 Thread Daevid Vincent
Is there some global array or something that contains all the variable names (not even values per se) that are used in my script. Here's the scenario. Like most of you, I do a lot of mySQL db work. So I tend to use this: if (mysql_num_rows($result) 0) { $row =

[PHP] php and forms

2003-03-20 Thread b b
Hi, This could be a silly mistake or it could be a sign of configuratin problems. Simply put, my submitted form variables are not reaching the recieving end: A form: form method=post action=testForm.php input type=text name=testVar input type=submit name=submit value=submit /form A

[PHP] Finding UserName of HTTP Server

2003-03-20 Thread Michael Smith
Hi, Is there an environment variable for the user (like apache or nobody) that is used by the server for http serving? -Michael -- Michael Smith [EMAIL PROTECTED] Custom87.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Anyone connect to a FileMaker DB?

2003-03-20 Thread Joshua Groboski
I know, FileMaker is not a real database. I have taken over some legacy systems and while I am redesigning the system, I need to be able to connect to a FileMaker DB. If you've done it, or know how I can do it, please let me know. Joshua Groboski Programmer Analyst / Webmaster SAVVIS

RE: [PHP] credit card validations..

2003-03-20 Thread Chris Shiflett
--- Edward Peloke [EMAIL PROTECTED] wrote: Forgive my ignorance of the subject but would this just say the card was valid? How do you go about actually charging the users card and get the funds? I think (without looking) Kevin's advice was to help you determine whether a credit card number

Re: [PHP] Cleaning user data

2003-03-20 Thread Chris Shiflett
--- CPT John W. Holmes [EMAIL PROTECTED] wrote: You don't want to do matching like you've shown, though. If I put a b on my page with no /b, then it's going to make everything on the entire page following my post bold. Well, my example was simplified. If the user's data is contained in a table

Re: [PHP] php and forms

2003-03-20 Thread Chris Shiflett
--- b b [EMAIL PROTECTED] wrote: This could be a silly mistake or it could be a sign of configuratin problems. Is register_globals on? If not, your code assumes it is, so that is your problem. Chris = Become a better Web developer with the HTTP Developer's Handbook

[PHP] HPUX 11 and PHP4 build - Unresolved symbol __udivdi3 (NIGTHMARE)

2003-03-20 Thread Harring Figueiredo
I am trying -- for the past day - to build php4.3.1 against apache1.3.27 as a DSO module on HPUX11 using gcc. I build everythigng and I can get apache running without the php module. Once I add the php module, I get the following errors: /usr/lib/dld.sl: Unresolved symbol: __udivdi3 (code)

[PHP] Visitor Counter

2003-03-20 Thread Ludi Sasnita
I want to make a Visitor Counter on my page. Not a Hit Counter. How to make it? Give me a sample script with PHP. Especially with command SESSION_ID Thanks, Ikuti polling TELKOM Memo 166 di www.plasa.com dan menangkan

RE: [PHP] Zero Fill - Number Format

2003-03-20 Thread Boaz Yahav
wouldn't this just print empty spaces before the number instead of the needed Zeros? -Original Message- From: Martin Towell [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 1:11 AM To: 'Harry.de'; [EMAIL PROTECTED] Subject: RE: [PHP] Zero Fill - Number Format

RE: [PHP] Banner ad solution?

2003-03-20 Thread Boaz Yahav
Proved to be very stable for me :) -Original Message- From: MIKE YRABEDRA [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 7:00 PM To: PHP List Subject: [PHP] Banner ad solution? Can someone suggest a 'good' banner ad solution that is done in php. Please do not suggest

RE: [PHP] Zero Fill - Number Format

2003-03-20 Thread Chris Shiflett
--- Boaz Yahav [EMAIL PROTECTED] wrote: wouldn't this just print empty spaces before the number instead of the needed Zeros? Yes, you are correct. -Original Message- From: Martin Towell [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 1:11 AM To: 'Harry.de'; [EMAIL

RE: [PHP] Zero Fill - Number Format

2003-03-20 Thread Chris Shiflett
$something = 26; $something = sprintf('%7d', $something); $something = str_replace(' ', '0', $something); echo $something; This is a bit more direct: $something = 26; echo str_pad($something, 7, '0', STR_PAD_LEFT); Chris = Become a better Web developer with the HTTP Developer's

Re: [PHP] Banner ad solution?

2003-03-20 Thread Jason k Larson
I use phpAdsNew in a production environment and it has been rock solid stable. I am hugely impressed with phpAdsNew and would recommend it to anyone for a real banner ad solution. But then again, I'm only serving maybe 5 million views in a month with it. -- Jason k Larson Boaz Yahav wrote:

Re: [PHP] Cleaning user data

2003-03-20 Thread Leif K-Brooks
My BBCode class takes care of unended tags, and much more. Have a look at http://www.phpclasses.org/browse.html/package/951.html. Chris Shiflett wrote: I still fail to see how BB code helps in any way, since you have to make these same considerations. But, like I said, maybe I'm missing

Re: [PHP] internally stored binary image

2003-03-20 Thread speedfreak
Ernest E Vogelsinger wrote: At 15:57 20.03.2003, [EMAIL PROTECTED] spoke out and said: [snip] In order to distribute a single script I would like to store a small image internally. Is this at all possible with PHP? How would I go about it? Please feel

RE: [PHP] To use PEAR::DB or the PHP database functions

2003-03-20 Thread Dan Rossi
i have been using the pear db for a long time , although , portability =slower abstraction , aparantly the DB is not continuing, and MDB is its predecessor, anyway i've had a bit of trouble getting the MDB to work , in fact i got DB to work pretty much straight away thanks to thoms howto page, MDB

RE: [PHP] PHP Devel Environments???

2003-03-20 Thread Dan Rossi
The boss wants to lose the dependancy on the 2 programmers (myself and another person) for every little piece of PHP code. does that mean your job ? why look into it for them dont do it man ! -Original Message- From: Henrik Hudson [mailto:[EMAIL PROTECTED] Sent: Friday, March 21, 2003

[PHP] web services

2003-03-20 Thread Merlin
Hi everybody, I am currently trying to understand how to place content on a different site without giving away my code. SOAP seems to be the solution. I am absolutly new to web services. What I did understand so far is that it is basicly pritty simple to transfer some data like a currency

[PHP] number function

2003-03-20 Thread pei_world
anyone how to write a good number valid function? regonise numbers like: real int -- Sincerely your; pei_world ( .::IT::. ) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] RE: [SOAP] web services

2003-03-20 Thread Paul Miller
You could also check into a RSS implementation. Take the standardized approach to XML-RPC. http://backend.userland.com/rss - Paul -Original Message- From: Tony Bibbs [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 4:23 PM To: Merlin Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]

[PHP] Re: [SOAP] web services

2003-03-20 Thread Tony Bibbs
That seems network intensive to me. Offering web services for some basic tasks makes sense but not making an entire application that does all functionality over the web will be slow and impractical. Also, consider XML-RPC. Some people insist on hammering a nail with a sledgehammer (soap)

[PHP] lurker awakes

2003-03-20 Thread steve
Hi guys, we have been silent observers to this list over the last few weeks. most of our web-app development is done in cold fusion, and i am still coming to terms with php, our involvement with the language to date has been via phpnuke. a while ago one of our tech guys showed me the output of

RE: [PHP] Zero Fill - Number Format

2003-03-20 Thread Martin Towell
oops, sorry - try this instead sprintf/printf(%07d, $num) -Original Message- From: Boaz Yahav [mailto:[EMAIL PROTECTED] Sent: Friday, March 21, 2003 8:23 AM To: Martin Towell; Harry.de; [EMAIL PROTECTED] Subject: RE: [PHP] Zero Fill - Number Format wouldn't this just print empty spaces

Re: [PHP] Cleaning user data

2003-03-20 Thread Chris Shiflett
--- Leif K-Brooks [EMAIL PROTECTED] wrote: My BBCode class takes care of unended tags, and much more. Have a look at http://www.phpclasses.org/browse.html/package/951.html. You have to log in to view any source on that site (or so it seems), so no thanks. Unended tags are easy enough to

Re: [PHP] number function

2003-03-20 Thread Leif K-Brooks
http://www.php.net/manual/en/function.is-numeric.php pei_world wrote: anyone how to write a good number valid function? regonise numbers like: real int -- Sincerely your; pei_world ( .::IT::. ) -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt

[PHP] Re: number function

2003-03-20 Thread pei_world
hi thx for the last question I have following function, I use it the check all the elements in the array whether numeric or not. but I get the output : ++l++* and ++0++, the first char in the string === function check_int_float($array){

Re: [PHP] number function

2003-03-20 Thread Chris Shiflett
--- Leif K-Brooks [EMAIL PROTECTED] wrote: http://www.php.net/manual/en/function.is-numeric.php Also, make sure you read that manual page Leif is giving. Some people are confused at the outcome of tests like these: is_numeric('3,333.33') is_numeric('3e3') is_numeric(' -3e-3') Chris =

Re: [PHP] Re: number function

2003-03-20 Thread Kevin Waterson
This one time, at band camp, pei_world [EMAIL PROTECTED] wrote: php $num = '1234'; if(checkNum($num) == 'FALSE') { echo 'Number is not numeric' } else { echo 'Its a number'; } function checkNum($num){ return is_numeric($num); } hi thx for the last question I have following

[PHP] Missing session vars when doing var_dump()

2003-03-20 Thread Gavin Jackson
Hi I have come across a strange problem. I have an application that a user logs into and when I find the user in the database I load all the custom info for that use which I store. By the time I'm done, the session array has 18 key's. When I do a var_dump($_SESSION) I sometimes get 18 variables

[PHP] Call another program from withing a program

2003-03-20 Thread Kevin
I need to know if I am doing this the right way or if there is a better way to do this. Scenario, two programs. program_1.php and program_2.php. Based on case statement, program_1 could possibly call program 2. Example: switch ($page) { case '1': call program_1.php script

  1   2   >