[PHP] Re: Re: My details

2003-08-21 Thread chregu
Please see the attached file for details. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Merging Multi-Dimensional Arrays Into Another Array

2003-08-21 Thread Nilaab Y.
Ok, here goes... I have an multi-dimensional array extracted from the database ($units) that is listed at the bottom of this e-mail. What I want to do is take this multi-dimensional array $units and maybe merge or extract it to a different array called $options. I want to group similar units into

[PHP] virus on the list

2003-08-21 Thread daniel
what is happening why am i keep getting these from php ppl ? i have recieved them from rasmus and anyone with a php.net domain aswell as from ppl on the list is there a virus on the list server? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] unexpected date results

2003-08-21 Thread Curt Zirzow
* Thus wrote Cody Phanekham ([EMAIL PROTECTED]): ? $t = time(); echo \nbrtimestamp = $t; echo \nbrtime = . date(r, $t); ? if i run test.php via the web it produces the following output, which is correct: timestamp = 1061443716 time = Thu, 21 Aug 2003 15:28:36 +1000 if i run

Re: [PHP] virus on the list

2003-08-21 Thread Peter James
Here's your reason: ... the variation on the latest version [of SoBig] means that anyone who has a well-publicized email address is getting inundated. Previous versions simply went through Outlook addressbooks and sent the virus on (while also attaching another email address on as the return

RE: [PHP] unexpected date results

2003-08-21 Thread Cody Phanekham
Curt, The admin that is in charge of the server swears that the time zone is already set to Australia / Sydney -Original Message- From: Curt Zirzow [mailto:[EMAIL PROTECTED] Sent: Thursday, 21 August 2003 17:11 To: [EMAIL PROTECTED] Subject: Re: [PHP] unexpected date results *

Re: [PHP] unexpected date results

2003-08-21 Thread Curt Zirzow
* Thus wrote Cody Phanekham ([EMAIL PROTECTED]): Curt, The admin that is in charge of the server swears that the time zone is already set to Australia / Sydney It is definately a system problem. I actually looked at the source code for the date() function and all it does is get the time

Re: [PHP] Merging Multi-Dimensional Arrays Into Another Array

2003-08-21 Thread Curt Zirzow
* Thus wrote Nilaab Y. ([EMAIL PROTECTED]): Ok, here goes... I have an multi-dimensional array extracted from the database ($units) that is listed at the bottom of this e-mail. What I want to do is take this multi-dimensional array $units and maybe merge or extract it to a different array

[PHP] Re: Details

2003-08-21 Thread celula2
Please see the attached file for details. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Help! Unable to load DLLs.

2003-08-21 Thread Larry_Li
Got error message: Unable to load dynamic library '.\extension\php_mssql.dll' - The specified module could not be found. I tried change php.ini many times, still got same error. I'm pretty sure these DLLs in such directory. Any ideas, Thanks!

[PHP] help needed with this mcal script

2003-08-21 Thread Sn!per
the output of this short mcal-php script is 0. and the no /var/calendar/[EMAIL PROTECTED] mcal file was created. appreciate some advise. ?php $year = 2003; $month = 8; $day = 21; $description = the description; $category = 2; $title = the title; $stream=mcal_open({/mstore}[EMAIL

Re: [PHP] back button and forms

2003-08-21 Thread Marek Kilimajer
If the form changes the state on the server, ie inserts something to the db, you should not output html but instead redirect to another page. Then Back button does not go to the post page but to the form page. Tim Winters wrote: Hello, I have a series of forms set over a few pages. The

[PHP] File upload + permissions + .htaccess in php

2003-08-21 Thread Ryan A
Hi, I am trying to upload something into a directory on my server but always i am getting a permission denied ONLY from this server...i have tried it on 2 other servers and they seem to be working fine but i have to get it working on this server as this server is the fastest and our production

RE: [PHP] virus on the list

2003-08-21 Thread electroteque
i am aware of this, is there any way to filter it? i'll shut up now ;\ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Thank you!

2003-08-21 Thread rasmus
Please see the attached file for details. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] in the middle of shift and pop

2003-08-21 Thread Ford, Mike [LSS]
-Original Message- From: Decapode Azur [mailto:[EMAIL PROTECTED] Sent: 20 August 2003 23:54 If you unset an array that isn't associative, will that ALL PHP arrays are associative. It's just that some arrays have only numeric keys. mean there will be a gap in the numbers?

[PHP] strage POST problem (4.3.3.RC4)

2003-08-21 Thread Przemyslaw Kowalczyk
Hi! Today I encountered a very strange POST problem. On FreeBSD4.8-stable I compiled apache 1.3.28 (using ports) and php4.3.3.r4 (also using ports). It was compiled with the following options: './configure' '--enable-versioning' '--enable-memory-limit' '--with-layout=GNU' '--with-zlib-dir=/usr'

RE: [PHP] unexpected date results

2003-08-21 Thread Ford, Mike [LSS]
On 21 August 2003 08:11, Cody Phanekham wrote: -Original Message- From: Curt Zirzow [mailto:[EMAIL PROTECTED] Sent: Thursday, 21 August 2003 17:11 To: [EMAIL PROTECTED] Subject: Re: [PHP] unexpected date results * Thus wrote Cody Phanekham ([EMAIL PROTECTED]): ? $t

Re: [PHP] File upload + permissions + .htaccess in php

2003-08-21 Thread [EMAIL PROTECTED]
Hello, It could be because your server is using some out of the box virtual hosting setup like ensim or cpanel. This usually means your home path is not what it appears to be. That in turn means that if you use absolute pathnames with your file upload handler it's bound to fail. So you will

Re: [PHP] Nestled 'while's or 'for's or 'foreach's -- I'm lost

2003-08-21 Thread Verdon vaillancourt
On Sun, 17 Aug 2003 15:47:04 -0400, I wrote: I'm trying to take a paged result set and divide it into two chunks for displaying on the page. Basically making something that looks like a typical thumbnail gallery... ...I've include a rather lengthy bit of pseudo code that represents basically

[PHP] Re: Help! Unable to load DLLs.

2003-08-21 Thread Dennis Lee
Copy all the files in C:\php\dlls to you system directory . Larry Li [EMAIL PROTECTED] news:[EMAIL PROTECTED] Got error message: Unable to load dynamic library '.\extension\php_mssql.dll' - The specified module could not be found. I tried change php.ini many times, still got same error.

Re: [PHP] Re: rich text editing

2003-08-21 Thread Marek Kilimajer
Tan Ai Leen wrote: You can also use dhtml/js to code a html editor. But it will work in IE only. And also mozilla 1.3+ http://prdownloads.sourceforge.net/itools-htmlarea/ Download version 3.0 beta -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] naughty words / filter

2003-08-21 Thread Anthony Ritter
Hi, I'm trying to filter a word - in this case - called badword1 - to be replaced with asterisks. Listed below is my .html form and .php receiving script. I've also added the same script which gets a hardcoded string. In the first example, the output still shows the original message _without_

Re: [PHP] String parsing help

2003-08-21 Thread Jonatan Pugliese.
it's true my example is bad I no evaluate the last line sorry !!! - Original Message - From: CPT John W. Holmes [EMAIL PROTECTED] To: Jonatan Pugliese. [EMAIL PROTECTED]; Matt Matijevich [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, August 20, 2003 5:44 PM Subject: Re: [PHP]

php-general Digest 21 Aug 2003 13:43:34 -0000 Issue 2250

2003-08-21 Thread php-general-digest-help
php-general Digest 21 Aug 2003 13:43:34 - Issue 2250 Topics (messages 160265 through 160297): Re: rich text editing 160265 by: Jon Drukman 160268 by: Tan Ai Leen 160295 by: Marek Kilimajer Thank you! 160266 by: listserv.msu.edu 160288 by:

[PHP] Re: Wicked screensaver

2003-08-21 Thread bard.fauske
See the attached file for details -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: naughty words / filter

2003-08-21 Thread Anthony Ritter
Was able to get this to filter: . ? } $guestbook = stripslashes($message); $this_is_the_message=$guestbook; $dirty_words = array(badword1,badword2,badword3); $message = $this_is_the_message; foreach ($dirty_words as $word){ $message = str_replace($word, , $message); }

Re: [PHP] deprecated function list?

2003-08-21 Thread Adam i Agnieszka Gasiorowski FNORD
Chris wrote: How can I find a list of PHP functions that are deprecated? Also, how can I print to the browser the Notice message that would indicate that a function is depricated? Like: Notice: mysql(): This function is deprecated; use mysql_query() instead How about you do a search

[PHP] Re: Jabber-Re: [PHP] File upload + permissions + .htaccess in php

2003-08-21 Thread Ryan A
Hi, When i FTP in cuteftp is showing me this path: /usr163/home/r/y/ryanknig/public_html/BWH-Ads-Images and i am using this in my php script: $UserUploadDir=/usr163/home/r/y/ryanknig/public_html/BWH-Ads-Images; I tried to cut out the public_html too but it does not seem to be working Any

[PHP] PHP returns white page when in high load

2003-08-21 Thread awoerl
Hello, we are having a problem: We have running apache + php under Windows, see http://www.mvhs.de/contentserv/admin/phpinfo.php for the phpinfo. Everything runs fine, but after a while, sometimes after a week, it suddenly returns only a white page at the start page. However

[PHP] Test

2003-08-21 Thread Robert Cummings
Please ignore -- I haven't been able to post lately. -- .-. | Worlds of Carnage - http://www.wocmud.org | :-: | Come visit a world of myth and legend where | | fantastical creatures come to life and the |

[PHP] PHP files processing with Apache

2003-08-21 Thread SpyProductions Support Team
Does anyone know how to get apache to process ALL files for php? What would the settings be in a Virtual Host listing (or a plain host listing for that matter)? Thanks! :) -Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] virus on the list

2003-08-21 Thread Chris W. Parker
electroteque mailto:[EMAIL PROTECTED] on Thursday, August 21, 2003 2:34 AM said: i am aware of this, is there any way to filter it? i'll shut up now ;\ Yes. But this depends on how your setup is. You could try filtering by filetype. Don't accept files with a .pif extension. You could filter

[PHP] Quotes in regular expressions

2003-08-21 Thread Thaddeus J. Quintin
Lets say I'm trying to extract some data from an HTML document. I want to get the values of the 'src' attributes of various tags. For example- img src=http://www.yahoo.com; here's the pattern I've been trying- /\bsrc=(['|])[^\\1]*[\\1]/im Basically, match the 'src=' followed by some type of

[PHP] Re: naughty words / filter

2003-08-21 Thread Chris Kranz
// example #1: in the script the text in the variable $guestbook does not get replaced. ? $dirty_words = array(badword1,badword2,badword3); $guestbook = stripslashes($message); foreach ($dirty_words as $word){ $message = str_replace($word, , $guestbook); } echo $message; ?

RE: [PHP] Quotes in regular expressions

2003-08-21 Thread Ford, Mike [LSS]
On 21 August 2003 17:03, Thaddeus J. Quintin wrote: Lets say I'm trying to extract some data from an HTML document. I want to get the values of the 'src' attributes of various tags. For example- img src=http://www.yahoo.com; here's the pattern I've been trying-

[PHP] Capturing script output

2003-08-21 Thread Joel Konkle-Parker
I've got somewhat of a methodology question here. I've got a YaBBSE message board http://yabbse.org that I'm trying to integrate into my site layout. On a regular page on my site, I call a page script that defines a body() function and some variables, then calls template.php to write the page.

[PHP] Newbie Question

2003-08-21 Thread Phil King
Hi, I 'm in the process of modify one of my sites to use PHP/mysql instead of ASP/Ms Access. The Access database has 200 records in it. I have PWS, mysql and PHP running on my local PC. I have used Navicat from mysqlstudio.com to import the access database into mysql and then exported the data

RE: [PHP] Capturing script output

2003-08-21 Thread Chris W. Parker
Joel Konkle-Parker mailto:[EMAIL PROTECTED] on Thursday, August 21, 2003 9:17 AM said: Can anyone offer some advice as to what I should do here? 1. Remove the buffering calls that are within the script your trying to buffer. 2. Have the child script write it's output to a file on the server

RE: [PHP] Newbie Question

2003-08-21 Thread Van Andel, Robbert
You can download PHPMySQL and locate it in a secure portion of your site. It's an excellent gui interface into mySQL. This tool will allow you to upload the script file and insert the data. I'm sorry, but I don't know the URL where to get it. Check sourceforge. Robbert van Andel

RE: [PHP] Newbie Question

2003-08-21 Thread Dan Van Derveer
On the same note I recommend phpMyAdmin(www.phpmyadmin.net). Its interface is quite useful especially when you have multiple DB's to manage on the same server. Dan -Original Message- From: Van Andel, Robbert [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 12:24 PM To: [EMAIL

[PHP] Need help with GD installation on RH9

2003-08-21 Thread Matt Babineau
Hey All- If anyone has some experience getting GD setup on RH9, I could really use some. Please email me off list if you are willing to answer a few questions. Thanks! Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Newbie Question

2003-08-21 Thread Van Andel, Robbert
Sorry, I did mean phpMyAdmin (no such thing as phpMySQL). Brain fart. Won't happen again. Robbert van Andel -Original Message- From: Dan Van Derveer [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 9:25 AM To: '[EMAIL PROTECTED]' Subject: RE: [PHP] Newbie Question On the

[PHP] Mailing List Weirdness

2003-08-21 Thread Van Andel, Robbert
The last two posts I sent to this mailing list produced a flurry of emails from various locations including majordomo stating it couldnt' understand the command I just sent it, a reply from a e-commerce site stating my order has been received, and others. Anyone else running into this? Robbert

RE: [PHP] Mailing List Weirdness

2003-08-21 Thread Dan Van Derveer
Its because they are subscribed to this list for some really dumb reason. Someone should figure out who/what addresses they are and remove them from the system. This list would do well moderated but then again who has time to moderate a list like this. Dan -Original Message- From: Van

Re: [PHP] Mailing List Weirdness

2003-08-21 Thread Jonatan Pugliese.
yes me too - Original Message - From: Van Andel, Robbert [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 21, 2003 1:35 PM Subject: [PHP] Mailing List Weirdness The last two posts I sent to this mailing list produced a flurry of emails from various locations including

Re: [PHP] Quotes in regular expressions

2003-08-21 Thread Thaddeus J. Quintin
-- SNIP -- If single-quoting (better, if you don't variable interpolation) you don't even need to escape the backslashes, so: $pattern = '/\bsrc=([\'|])[^\1]*[\1]/im'; -- SNIP -- nope, not quite... Here's what I've got- $pattern='/\bsrc=([\'|])([^\1])*[\1]/im'; the string that's coming

RE: [PHP] Mailing List Weirdness

2003-08-21 Thread Van Andel, Robbert
Is there no confirmation anymore when subscribing to the list?? I seem to recall that once I added my email I got several emails from this mailing list asking me to confirm the subscription. These returned emails are a pain in the a** if you ask me, or even if you don't :D Robbert van Andel

[PHP] connection_aborted(), set_time_limit() problem, detecting browser disconnect

2003-08-21 Thread richardc
Im running Apache 1.3 and PHP 4.3. PHP is running as a module in apache, I have code doing something along the following lines set_time_limit( 0 ); while( true ) { // Do something that may take hours to return } What I hoped would happen (as ignore_user_abort is false) would be that when I

RE: [PHP] Mailing List Weirdness

2003-08-21 Thread Dan Van Derveer
Most mailing lists(I don't know about this one because I have yet to unsubscribe) require confirmation of the unsub too. I was thinking maybe us users can attempt to remove these other mailing lists for ourselves. Dan -Original Message- From: Van Andel, Robbert [mailto:[EMAIL PROTECTED]

Re: [PHP] Not fair: REMOTE_HOST

2003-08-21 Thread Simon Fredriksson
It does exist, if the server is set to resolve automatily. From PHP docs: Your web server must be configured to create this variable. For example in Apache you'll need HostnameLookups On inside httpd.conf for it to exist. //Simon John Taylor-Johnston wrote: Aw gee, $_SERVER['REMOTE_HOST']

Re: [PHP] Newbie Question

2003-08-21 Thread Phil King
Hi Robbert, I beleive my ISP does not allow any GUI interface into mysql databases on the server. They have advised me that ALL functions, table creation, modification, loading data etc has to be done from PHP. It appears I have to use SQL statements within a PHP page to load the data. Phil.

Re: [PHP] Newbie Question

2003-08-21 Thread Curt Zirzow
* Thus wrote Phil King ([EMAIL PROTECTED]): Hi Robbert, I beleive my ISP does not allow any GUI interface into mysql databases on the server. They have advised me that ALL functions, table creation, modification, loading data etc has to be done from PHP. It appears I have to use SQL

Re: [PHP] Newbie Question

2003-08-21 Thread Robert Cummings
Even if they do know about it, it's functionality conforms to what they said you can do: use SQL statements within a PHP page to load the data *grin*. Cheers, Rob. On Thu, 2003-08-21 at 14:53, Curt Zirzow wrote: * Thus wrote Phil King ([EMAIL PROTECTED]): Hi Robbert, I beleive my ISP

Re: [PHP] Newbie Question

2003-08-21 Thread Bryan Koschmann - GKT
Hi Robbert, I beleive my ISP does not allow any GUI interface into mysql databases on the server. They have advised me that ALL functions, table creation, modification, loading data etc has to be done from PHP. It appears I have to use SQL statements within a PHP page to load the data.

[PHP] Date Validation, Kinda'

2003-08-21 Thread Jay Blanchard
Howdy, Has anyone written any date validation function or sequence. I have looked around, but haven't found anything. I am cobbling togather something, but was hoping to not have to re-invent the wheel. The date is formatted MMDD and is input by the user; $userCentury = substr($userDate, 0,

Re: [PHP] Mailing List Weirdness

2003-08-21 Thread Shadow
Yes, me, too -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Date Validation, Kinda'

2003-08-21 Thread Scott Fletcher
I did similiar posting about finding the last day of the month last week and got some response. So, I'll just post some clipping from php.net for you. If your machine support the php mktime() then you're in for luck. You can find more info about it at php.net with the function, date() and

Re: [PHP] Mailing List Weirdness

2003-08-21 Thread Curt Zirzow
* Thus wrote Van Andel, Robbert ([EMAIL PROTECTED]): The last two posts I sent to this mailing list produced a flurry of emails from various locations including majordomo stating it couldnt' understand the command I just sent it, a reply from a e-commerce site stating my order has been

[PHP] Any similiar function to number_format????

2003-08-21 Thread Scott Fletcher
Hi! Wondering if there is any similiar function to a php number_format(). This time, without a period. For example, if I get a '1', I would like to format it to be '01' in two digit. Thanks, Scott F. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Mailing List Weirdness

2003-08-21 Thread Chris W. Parker
Curt Zirzow mailto:[EMAIL PROTECTED] on Thursday, August 21, 2003 1:09 PM said: The issue has been resolved, I am currently getting these autoresponders off the list. Hurray! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Quotes in regular expressions

2003-08-21 Thread Scott Fletcher
Try parsing it as a string where the double quote would become a string. See if that help. (Parse the whole characters into strings then find the double quote.) Thaddeus J. Quintin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] -- SNIP -- If single-quoting (better, if you don't

[PHP] ensim problems

2003-08-21 Thread Dennis Gearon
please cc me. I'm on a host with ensim, and it **IS** reading the .htaccess file, (I've tested it), but it isn't reading the directive: php_value auto_prepend_file /path/file.name For those with better shell experience, would this find all the .htaccess files using that directive on a shared

Re: [PHP] is the list getting virus spammed?

2003-08-21 Thread Scott Fletcher
Oh, it is normal for college campus to get virus spreading around because it's one of the few places where many different people interact into from home or business, so it get easy for it to go around. Filtering the virus is a bit difficult because some aren't by emails. Richard Baskett [EMAIL

Re: [PHP] Date Validation, Kinda'

2003-08-21 Thread Brent Baisley
I wrote a little function to check if a date is valid. All the hard stuff is done by the checkdate() function, but function just returns a date if valid or false if not: function validDate($year,$month,$day) { if(checkdate($month,$day,$year)) { return date(Y-m-d,

[PHP] ignore - test

2003-08-21 Thread Jonatan Pugliese.
test !! - Original Message - From: Chris W. Parker [EMAIL PROTECTED] To: Curt Zirzow [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, August 21, 2003 5:07 PM Subject: RE: [PHP] Mailing List Weirdness Curt Zirzow mailto:[EMAIL PROTECTED] on Thursday, August 21, 2003 1:09 PM

RE: [PHP] Any similiar function to number_format????

2003-08-21 Thread Jay Blanchard
[snip] Wondering if there is any similiar function to a php number_format(). This time, without a period. For example, if I get a '1', I would like to format it to be '01' in two digit. [/snip] Ooh, ooh, me, me! Make sure that the number is a string. $number = 1; settype($number, string);

[PHP] Re: ensim problems

2003-08-21 Thread DvDmanDT
Maybe AllowOverride isn't set to All... Or maybe php is installed as cgi... Then that directive wont work in .htaccess... -- // DvDmanDT MSN: [EMAIL PROTECTED] Mail: [EMAIL PROTECTED] Dennis Gearon [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] please cc me. I'm on a host with

[PHP] HTTP transactions with PHP?

2003-08-21 Thread Joel Konkle-Parker
Is it possible to make a complete HTTP transaction from within PHP? Like: - PHP sends request headers (with POST data) to $url - $url sends response back to calling script - PHP works with the response I've seen file_get_contents($url), but that can't send POST-data, unless I'm mistaken (can

RE: [PHP] Date Validation, Kinda'

2003-08-21 Thread Chris W. Parker
Jay Blanchard mailto:[EMAIL PROTECTED] on Thursday, August 21, 2003 12:30 PM said: Has anyone written any date validation function or sequence. Now that I'm thinking about it, what is your goal with this? Is it to make sure the date entered is within a certain range when compared to another

RE: [PHP] Date Validation, Kinda'

2003-08-21 Thread Jay Blanchard
[snip] Now that I'm thinking about it, what is your goal with this? Is it to make sure the date entered is within a certain range when compared to another date? i.e. The date entered cannot be more than absolutevalue(10 days) away from the first date or is it just to make sure it's in the proper

RE: [PHP] Any similiar function to number_format????

2003-08-21 Thread Chris W. Parker
And now to send my response to the entire list. -- Scott Fletcher mailto:[EMAIL PROTECTED] on Thursday, August 21, 2003 1:12 PM said: Wondering if there is any similiar function to a php number_format(). This time, without a period. For example, if I get a '1', I would like to

Re: [PHP] HTTP transactions with PHP?

2003-08-21 Thread Matt Matijevich
snip Is it possible to make a complete HTTP transaction from within PHP? Like: - PHP sends request headers (with POST data) to $url - $url sends response back to calling script - PHP works with the response /snip http://www.php.net/http http://nf.wh3rd.net/projects/http.inc/ I have not tested

Re: [PHP] Any similiar function to number_format????

2003-08-21 Thread David Otton
On Thu, 21 Aug 2003 16:12:16 -0400, you wrote: This time, without a period. For example, if I get a '1', I would like to format it to be '01' in two digit. printf (%02d, 1); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Date Validation, Kinda'

2003-08-21 Thread Chris W. Parker
Jay Blanchard mailto:[EMAIL PROTECTED] on Thursday, August 21, 2003 1:24 PM said: It is to make sure that the user has entered a valid future date in the MMDD format into the form. (You may very well already know of these two functions and already thought of what I'm going to tell you

Re: [PHP] Quotes in regular expressions

2003-08-21 Thread Thaddeus J. Quintin
The biggest part of my problem was that I had already called htmlspecialchars on the string, so there was no quotes to match! Duh. Even after I fixed that it was still turning into a hassle, so I just made two checks, one for single quotes, and, failing that, one for double quotes. not the

RE: [PHP] Date Validation, Kinda'

2003-08-21 Thread Jay Blanchard
[snip] I'm thinking this: 1. you get the date from the user 2. validate it using checkdate() 3. get the current date 4. compare the two dates to see if the users date is later than todays date 5. return true or return false Sound good? [/snip] Sounds bueno! I am just tired, had checkdate() in

Re: [PHP] Any similiar function to number_format????

2003-08-21 Thread Scott Fletcher
I do that all the time and it is very helpful. I just kind of wonder if there is a php function that would do it all for me. Just got this idea when I use the number_format() and it made me wonder about whether is there such a function as this or not. (Hey Jay! Thanks for the response by the

RE: [PHP] Newbie Question

2003-08-21 Thread Van Andel, Robbert
Whether you write the gui interface or someone else does doens't make a difference. Robbert van Andel -Original Message- From: Phil King [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 11:49 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Newbie Question Hi Robbert, I beleive

Re: [PHP] Quotes in regular expressions

2003-08-21 Thread Scott Fletcher
That may be why! It's the htmlspecialchars() that is the issue.. The signle quote get convert into this, not sure if this apply to your situation though. --snip-- Reference : Special Characters in HTML left single quote lsquo; ' right single quote rsquo; ' --snip-- Thaddeus

[PHP] File upload and deletion

2003-08-21 Thread Steven Murphy
Hi everyone, I'm trying to write a form that hides email addresses from spiders and allows for a single file upload. Here is a link to what I have so far http://www.pfohlsolutions.com/projects/mailer/mailer.zip. I'm having trouble with the file upload. What should happen is: -The user should be

RE: [PHP] File upload and deletion

2003-08-21 Thread Chris W. Parker
Steven Murphy mailto:[EMAIL PROTECTED] on Thursday, August 21, 2003 1:40 PM said: http://www.pfohlsolutions.com/projects/mailer/mailer.zip. I'm having Are you wanting me to download this file, unzip it, stick it on my server, run/test it, and then report back to you with where you've made a

RE: [PHP] HTTP transactions with PHP?

2003-08-21 Thread Thomas Hochstetter
[snip] - PHP sends request headers (with POST data) to $url - $url sends response back to calling script - PHP works with the response [/snip] Look at fsockopen, with which you can send POST headers, or just fopen. You sit this in a try/ catch sort of script and you should be able to get stuff

RE: [PHP] File upload and deletion

2003-08-21 Thread Thomas Hochstetter
[snip] - PHP sends request headers (with POST data) to $url - $url sends response back to calling script - PHP works with the response [/snip] Look at fsockopen, with which you can send POST headers, or just fopen. You sit this in a try/ catch sort of script and you should be able to get stuff

[PHP] google style paginating

2003-08-21 Thread Ted Conn
Hi I am new to this newsgroup and I plan on replying to all the posts I can for now... but Id like to start out by asking a question. I am trying to paginate my sql results in 10 by 10, which I have been able to do no problem. but what I want to do is have the pages layed out in google style with

[PHP] Step-through debuggers?

2003-08-21 Thread Joel Konkle-Parker
I'm looking for some tips on a step-through PHP debugger. I'm cheap and I don't have administrative access to my server. Anything come to mind? -- Joel Konkle-Parker Webmaster [Ballsome.com] Phone [662-518-1636] E-mail[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/)

[PHP] Thank You

2003-08-21 Thread Damian Brown
Hi, i would just like to thank all the programmers who have registered with me over the past 2 days i now have programmers who are willing to help from all corners of the world from places such as America, Canada, Iceland, Slovenia, UK England, and Indonesia if you would like to register then

RE: [PHP] google style paginating

2003-08-21 Thread Chris W. Parker
Ted Conn mailto:[EMAIL PROTECTED] on Thursday, August 21, 2003 2:01 PM said: Hi I am new to this newsgroup and I plan on replying to all the posts I can for now... Hopefully those replies will be useful. ;) I'll show you the code I am using now for next and back buttons... Hmm...

Re: [PHP] Re: rich text editing

2003-08-21 Thread Redmond Militante
hi all i've been playing around with the 3.0 beta version of html area. it seems really nice. (thank you also btw, for the advice about the rtf tags...). the problem with html area is - it works great on ie and moz, but when you try to look at html area on a nonsupported browser -say, IE for

Re: [PHP] Re: rich text editing

2003-08-21 Thread Nelson Rodríguez-Peña Alarcón
Hi, Redmond Militante wrote: (...) what do people generally do when using an activex rich text editor and the user is using a non supported browser? You can display a textarea. It'd allow users to edit/add content in a simpler, less powered way. -- regards,

[PHP] Re: google style paginating

2003-08-21 Thread John Ryan
just split up your total number of results ($num_rows) by the results per page (10, i think) and create a for loop to loop from page1 to pagex, creating a link with offset for each one. simple. Ted Conn [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi I am new to this newsgroup and I

[PHP] Easy XML PHP tutorials ?????

2003-08-21 Thread Joe Harman
Hello all. does anyone have any very easy XML tutorials . I have a simple weather feed I want to implement. but no XML experience thanks Joe Harman

[PHP] pear db.php and non-dbo owned tables...

2003-08-21 Thread Newsom, Tim W - CIQ-2
I am having a problem with a script I wrote.. Behavior: The script will login to a MSSQL server, correctly do sp_help, correctly query on tables owned by DBO. However we have some tables owned by someone other then DBO.. call it A1. Any table specified as A1.tablename will not return a result

[PHP] Access problem

2003-08-21 Thread Ryan A
Hi, I am trying to upload something into a directory on my server but always i am getting a permission denied ONLY from this server...i have tried it on 2 other servers and they seem to be working fine but i have to get it working on this server as this server is the fastest and our production

Re: [PHP] Re: google style paginating

2003-08-21 Thread Robert Cummings
Ummm I wouldn't do what these guys suggest (at least not all of it)... perform two queries, one counting the total number of returns the other to actually get the subset. Don't retrieve ALL the queries then only display a subset. Otherwise what's the point of using the LIMIT clause for

RE: [PHP] Re: google style paginating

2003-08-21 Thread Chris W. Parker
Robert Cummings mailto:[EMAIL PROTECTED] on Thursday, August 21, 2003 4:46 PM said: Don't retrieve ALL the queries then only display a subset. Otherwise what's the point of using the LIMIT clause for conservation of resources? The SELECT COUNT( * ) FROM foo query is usually optimized to

[PHP] error when using $this

2003-08-21 Thread Jonathan Villa
First of all, let me say that I am using PHP 5, but not including any new php5 features, just installed it. Anyway, this is the offending code.. $retVal = true; $this-setDBConn(mysql_connect('localhost',$this-_dbuser,$this-_dbpwd)); if ($this-getDBConn() == false) $retVal = false; and

[PHP] Re: error when using $this

2003-08-21 Thread DvDmanDT
Has with classes to do... The error claims that code isn't in a class which makes it invalid as $this is the current class... If you aren't in a class then there's no $this... however, if you are in a class, you just found a bug or a typo in your script... -- // DvDmanDT MSN: [EMAIL PROTECTED]

Re: [PHP] Re: error when using $this

2003-08-21 Thread Jonathan Villa
I am in a class as well as a constructor. class DBI { //var declarations function DBI() { $retVal = true; $this-setDBConn(mysql_connect('localhost',$this-_dbuser,$this-_dbpwd)); if ($this-getDBConn() == false)

RE: [PHP] unexpected date results

2003-08-21 Thread Cody Phanekham
Curt/Mike, -Original Message- From: Ford, Mike [LSS] [mailto:[EMAIL PROTECTED] date '+%c'# might be different -- check your man date the date returned was correct... -Original Message- From: Curt Zirzow [mailto:[EMAIL PROTECTED] putenv('TZ=Australia/Sydney');

  1   2   >