[PHP] Can php works as a scheduler?

2003-01-20 Thread Jack
Dear all I built a page which will import data from csv files to database, i want this task to be done automatically at the midnight of each date. so does anyone know if there is any function work as similar as Scheduler in php? so php will run the script at specific time! Thx a lot Jack [EMAIL

[PHP] PHP and DB2

2003-01-10 Thread Jack Schroeder
Can PHP connect to IMB DB2 dbms running on an AIX Unix server? Jack -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Can i convert a text file to PDF only when need!

2002-12-17 Thread Jack
want to view the file on next time, it will safe some time for convertion! I don't really know how i can install the pdf library to php under windows os, can anyone pls give me some hints? and any recommendation will be great! Thx a lot! Jack -- PHP General Mailing List (http://www.php.net

[PHP] Can php auto execute it's script in schedule without opening a webpage?

2002-12-15 Thread Jack
to be excute even no one open a homepage contain php script in it! is there anyway i can do that? thx Jack -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Problem on OpenDir()

2002-11-25 Thread Jack
line 22 but when i change the path to : c:/pdf_reports/bills/ then it can list all the files within this folder bills. I'm sure that the folder Oct-02 is exist inside bills directory! So i haven't go any idea! Could someone pls give me some hints! Jack -- PHP General Mailing List (http

[PHP] Problem on OpenDir()

2002-11-21 Thread Jack
, there is a permission error to the folder and after i fixed it, it seems keep prompt me the Invalid Argument instead of open the folder. Don't know what is going on! pls help! Thx a lot, Jack

[PHP] Simple Question on Date conversion

2002-11-20 Thread Jack
Dear all Can anyone pls tell me how i can turn number : 10 to Oct? i counting on the month, that's why i won't to convert the result to month! Thx a lot Jack -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Help w/ 4.2.3 Problem

2002-11-08 Thread Jack Sasportas
-- ___ Jack Sasportas Innovative Internet Solutions Phone 305.665.2500 Fax 305.665.2551 www.innovativeinternet.com www.web56.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Cookie error after 4.2.3 upgrade

2002-11-08 Thread Jack Sasportas
I get the following error when using a previously working cookie function: expects parameter 3 to be long Code is below... I just don't see the difference then the way the doc uses: time() - 3600 -vs- the way I did it below... Thanks ! function

[PHP] How to convert the text file into pdf file in php

2002-10-16 Thread Jack
Dear all I want to make a script which will ask php to convert the source file into pdf file format n then save it to somewhere else, but i don't know if php can do such thing, so could you pls help me on this? Thx a lot Jack -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] How to do Date Calculation

2002-10-10 Thread Jack
Dear all I'm trying to make a script which will show the month before current month! Is there anyway i can do this? Example : CurrentPervious OctoberSeptember Thx a lot Jack [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net

[PHP] Can PHP convert word to PDF

2002-08-12 Thread Jack
Dear all Can PHP be able to convert a Word Document to PDF? -- Thx a lot! Jack [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Upgraded to 4.2.2 on Win2k - server (including ASP) crashing

2002-08-04 Thread Jack Baty
(understandably) irritable. -- Jack Baty Fusionary Media - http://www.fusionary.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Question on File Move / Delete and Create Directory

2002-07-31 Thread Jack
location? -- Thx a lot! Jack [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Consideration on Upgrade php

2002-07-31 Thread Jack
that when you post data from a form to other page, 4.2.2 will have problem, unless you got to set something from php.ini? is that right? -- Thx a lot! Jack [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How to Detect File in a Specifc Directory on Window Env?

2002-07-19 Thread Jack
to Left). If you have any other suggestion, pls help me! -- Thx a lot! Jack [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Problem on file_exists() function

2002-07-17 Thread Jack
)) { print (exist); } else { print (Doesn't Exist!); } Then it can detect the file is there! why? -- Thx a lot! Jack [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Problem on file_exists()

2002-07-16 Thread Jack
help me! -- Thx a lot! Jack [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How to dectect if a file exist in specific Folder

2002-07-10 Thread Jack
the date at the end of the string as the file name. 3. If the filename exist in that specific folder, then it will show a hyperlink for each exist report, otherwise nothing will shows up! I want to know how i can use php to detect if such file is exist in that specific Folder? -- Thx a lot! Jack

[PHP] How to Show my Own Error Message Instead of Mysql Error?

2002-06-20 Thread Jack
, it mean the Login Name is Duplicated! But i want to show my own message to the user for this error instead the Mysql Error! It is meanness to show User the Mysql Error, cause they won't understand it!!! Could Someone pls tell me how i can do this? -- Thx a lot! Jack [EMAIL PROTECTED] -- PHP

[PHP] Date Comparsion

2002-06-18 Thread Jack
this operation? -- Thx a lot! Jack [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Problem on fread!

2002-05-13 Thread Jack
as the (month) and last four as (year) to display in my INPUT BOX. How i can read a file by telling it how much digit i want? -- Thx a lot! Jack [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Strange Form Action Type

2002-04-30 Thread Jack
Dear all I had saw a form which is quite strange, because it look some as below: form name=o_form, action=deposit_admin.php?save=yes method=post as the deposit_admin.php is actually itself, but the ?save=yes is represent what meaning? Can someone pls tell me? -- Thx a lot! Jack [EMAIL

[PHP] How to see the error from mysql?

2002-04-29 Thread Jack
Dear all I had made a page which import some csv file data into Mysql, when i test this page, it doesn't show any message or error, but the data didn't load into mysql table, so is there anyway i could use in php to show me the status of mysql? -- Thx a lot! Jack [EMAIL PROTECTED] -- PHP

[PHP] Problem on Load CSV file to Mysql through PHP Script

2002-04-26 Thread Jack
(HOST,USER,PASSWD); mysql_select_db(DBNAME,$link); print ($select); if ($select ==HKD RATE) { $importquery= LOAD DATA LOCAL INFILE 'C:\\Documents and Settings\\jack\\Desktop\\Web\\test\\hkd_rate.csv' into hkd_depsit1 fields terminated by ','; $resultimportquery=mysql_query($importquery,$link); print

[PHP] How to get Specific Data from an CSV format file to PHP

2002-04-18 Thread Jack
Dear all I had tried to fetch the data from CSV file by using PHP, what i did is fetch the whole file content! But now i only want specific data from that CSV file, is there anyway in php that can point the pointer to specific data i want? -- Thx a lot! Jack [EMAIL PROTECTED] -- PHP

[PHP] how to get row by row from CSV file

2002-04-18 Thread Jack
Dear all I'm a beginner of php, i tried to get the CSV file, but it return like Column by Colume, but how i can get it in Row by Row, cause i want to point to specific data i want, but not the whole file content! -- Thx a lot! Jack [EMAIL PROTECTED] -- PHP General Mailing List (http

[PHP] equivalent of qw?

2002-04-18 Thread Jack Dempsey
. Thanks! Jack Dempsey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] mail() problem...

2002-04-03 Thread Jack Davis
.. When I manually specify an email address instead of $arrText[$i] it comes thru as expected showing the additional headers where they should be. Does anyone have a suggestion on this? Thanks in advance, Jack Davis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] When Click a HyperLink, Promp password before Showing the Page

2002-03-24 Thread Jack
that the username or password ar not correct. I know it will be easy if there is only one hyperlink, but what happen if there are many of them? Thx very much Jack [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Is there anyway to save a file into Mysql database

2002-03-24 Thread Jack
Dear all Can someone pls tell me is php will be able to grep text from MS Word and then save that word file into MYSQL database? Which means is MYSQL will be able to store files into it's table? Thx a lot jack [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] How to Pass the Username which from Windows Login

2002-03-24 Thread Jack
a lot Jack [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Can anyone help me with this problem(uploads via a form)?

2002-03-19 Thread Jack E. Ambrose
to the PHP gods. (They haven't listened to me yet) Can't anyone provide any suggestions on how to work around this? I can provide more information if required, code, phpinfo() output, etc. Thanks! Jack -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] Is there any Possible Way to get data from Excel File?

2002-03-19 Thread Jack
Dear all What i'm planning to do is to use php to grep the data from a Excel file and then insert it to the MySQL Database, so is there any possible way that the php can grep the data from an Excel File? Thx all Jack [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net

[PHP] Having problems doing a binary upload. open_basedir problem?

2002-03-17 Thread Jack E. Ambrose
. Is there a work around or something? Thanks! Jack -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Help w/passing a search parameter that includes space and ,

2002-03-15 Thread Jack Sasportas
of the string being passed to it. Any ideas on how I should get around this ? This is what the db search string looks like: $db_result = mysql_query(select * from $db_tablename where category='$value'); Thanks ! ___ Jack Sasportas -- PHP

[PHP] What is - mean in php?

2002-03-04 Thread Jack
Dear all There is one symbol in PHP that i always see is -, could anyone pls tell me what is this, and what does that do? Here is the statement i saw could some pls explain what it means? if (!empty($row-usd_period) Thx a lot Jack [EMAIL PROTECTED] -- PHP General Mailing List (http

[PHP] Windows Logon Username Pass to PHP

2002-02-21 Thread Jack
Dear all Is there any ways that i can pass the Windows Logon Username to PHP? Any Built in Function that can handle this? cause i don't want the user to logon so many times and my website is for internal only! Thx Jack [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net

[PHP] Don't Know how to Set the include Path

2002-02-19 Thread Jack
but not the ;UNIX: '/path1:/path2 Windows:: \path2, that is there by default. Then i test again from my web, it remains the same error!! So could someone pls tell me how i should set the include_path, would be great if you could provide EXAMPLES! Thx a lot Jack [EMAIL PROTECTED] -- PHP General

[PHP] Can php Read contents from MS Word in Exactly same format

2002-02-03 Thread Jack
, could any one suggest a book to me? Thx a lot Jack [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] What is ? Mean in the Action Box

2002-01-31 Thread Jack
Dear all I had open a webpage which design from my company's pervious staff! This page is a input form, and when i look at the properity of the Form i saw this: form name=o_form action=deposit_admin.php?save=yes method=post What is the ? mean in the Action part? Thx Jack [EMAIL PROTECTED

[PHP] http error 405

2002-01-30 Thread Jack
[firstname])) { header (Location: http://microsoft.nedcor.com.dev/index.php;); } else { header (Location: http://microsoft.nedcor.com.dev/login.php;); } } ? === Thx a lot Jack [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e

[PHP] Call another page after the menu had been selected

2001-12-27 Thread Jack
from a blank window when the item A is selected? and another page when Item B is selected! thx a lot jack [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

[PHP] Login and select Query in Mysql

2001-12-26 Thread Jack
into index.htm. Could someone pls give me a idea how i should make this system work?? Thx Jack [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL

[PHP] FrameSet Problem with PHP, Pls Help!

2001-12-21 Thread Jack
Stuck!!! Thx a lot!! Jack [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Problem with Getting Values from Cookie

2001-12-21 Thread Jack
: $KT_redirectLoginFailed); exit; } ? What i want to do is after i had set the cookie, then i got to main.php which is one of the page within the site and i type : ? echo $HTTP_COOKIE_VARS[username]; ? It got nothing to print out!!! Pls help!! Jack [EMAIL PROTECTED] -- PHP General Mailing List (http

[PHP] Cookie Can't Display Name on other page

2001-12-21 Thread Jack
$HTTP_COOKIE_VARS[username];?. Then the strange things happen, the Main.php won't show the name from cookie! actually the $user you saw in setcookie is the input box where the user input their username to login!! Another way i had tried is , if i set the cookie like this ?setcookie(username,jack

Re: [PHP] Re: PHP 4.1.0 patch for Quanta IDE, The Sequel

2001-12-20 Thread Jack Dempsey
really? ? $THIS_IS_A_VARIABLE=1; $this_is_a_variable=2; echo $THIS_IS_A_VARIABLE\n; echo $this_is_a_variable\n; ? seems sensitive to me... Mike Eheler wrote: Cool, however PHP is not case sensitive, nor is ASP or HTML for that matter, therefore case sensitive syntax highlighting will not be

[PHP] Passing Logined in Name form One Form to other Page

2001-12-19 Thread Jack
need to select data from MYSQL, it will read the Username which passed from the Login Form and select the only Record to him! I heard about the Session, but how i can pass the Username to other page using Session?? Pls Help! Thx a lot ! jack [EMAIL PROTECTED] -- PHP General Mailing List

RE: [PHP] preg_grep() and limit parameter

2001-12-18 Thread Jack Dempsey
only thing i could think up would be if a user is dealing with huge amounts of text and only needs to have the first ten returned, returning/continuing past that would be wastefulnot confident on how often this would really happen and what the actual difference would be... Jack

RE: [PHP] php htpasswd

2001-12-18 Thread Jack Dempsey
not sure i follow...you open it with php do whatever you need and close it...its just a text file... -Original Message- From: jtjohnston [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 1:00 PM To: [EMAIL PROTECTED] Subject: [PHP] php htpasswd I'm sure question has been

Re: [PHP] PHP 4.10: any way to override register_globals = OFF

2001-12-17 Thread Jack Dempsey
register the vars there's probably a much easier way, including asking your hosting provider to change one little config var... jack Michael Jurgens wrote: Hi, Now that register_globals is (or will be) OFF by default (just like error_reporting) I'm facing a huge rewrite of existing code if my

RE: [PHP] PHP 4.10: any way to override register_globals = OFF

2001-12-17 Thread Jack Dempsey
exactly...in the function you'd have to extract the variables then globalize them... or you could loop through the arrays and store the keys and values in the globals array...that loop should be simple... jack -Original Message- From: Richard Heyes [mailto:[EMAIL PROTECTED]] Sent

RE: [PHP] Newsgroups????

2001-12-17 Thread Jack Dempsey
a preventative measure against spamAFAIK you don't actually have to sign up for the e-mail list, you just need to give an e-mail address to prove you're not a spammer. jack -Original Message- From: Eddie Shipman [mailto:[EMAIL PROTECTED]] Sent: Monday, December 17, 2001 5:23 PM

RE: [PHP] PHP 4.10: any way to override register_globals = OFF

2001-12-17 Thread Jack Dempsey
i understand that, but if he extracts inside a function, those variables will be in that scope. if his auto_prepend file is simply 'extract($_GET)' then that'd be fine as well jack -Original Message- From: Charles Williams [mailto:[EMAIL PROTECTED]] Sent: Monday, December 17, 2001 5:59

RE: [PHP] htaccess problems

2001-12-17 Thread Jack Dempsey
i don't think you want that space inbetween private/ and .htpasswd -Original Message- From: Jeremiah Jester [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 12:38 AM To: Php-General Subject: [PHP] htaccess problems I cant seem to get my htaccess file to work. Can anyone

Re: [PHP] now who can help me about cach my query every certain time:(

2001-12-16 Thread Jack Dempsey
Alawi wrote: now who can help me about cach my query every certain time:( I mean the first user requst the page and php will run query for this first time after that I want other user to have the result that the first user have it !! untill the ten minutes end I want the query to run again

Re: [PHP] Problem with Code

2001-12-16 Thread Jack Dempsey
1. http://www.php.net/ChangeLog-4.php 2. and yes, you have to specify the exact filename...your issue is that include_once is not a function in php3, if that code is infact from a php3 file... Phillip B. Bruce wrote: Hi, I have a couple of questions before I get to my problem. 1.

Re: [PHP] Brain dead - need help!

2001-12-15 Thread Jack Dempsey
use a phpinfo() in one of your pages...that'll show you various places to get your data... btw, php does have the $HTTP_GET_VARS that'll have what you want... jack Gaylen Fraley wrote: I know that I know the answer - it's just buried in the recesses of my mind .. PHP has the various

Re: [PHP] connect to a file outside the web space.

2001-12-15 Thread Jack Dempsey
how exactly do you want to connect to it? if you want to link to it in html, then it must be under the html doc root...if you're including, then you can specifiy the path... Webleycity wrote: Hello All If one creates a file outside the web space on a server. How doe's one connect to this

RE: [PHP] Can i do this?

2001-12-13 Thread Jack Dempsey
didn't check your code specifically, but you can definitely have arrays nested inside of arrays...to see how to print them out use something like print_r to look at the structure... -Original Message- From: Daniel Alsén [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 13, 2001 10:12

RE: [PHP] The peacock logo... and others...

2001-12-13 Thread Jack Dempsey
True...guess everyone's forgotten the ol' pocket manual... Any chance a new edition will come out? -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 13, 2001 2:30 PM To: Philip Hallstrom Cc: [EMAIL PROTECTED] Subject: Re: [PHP] The peacock

RE: [PHP] The peacock logo... and others...

2001-12-13 Thread Jack Dempsey
Oh great, I didn't realize there was full book in the making...any ideas on when the full book will be hitting the shelfs? -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 13, 2001 2:39 PM To: Jack Dempsey Cc: [EMAIL PROTECTED] Subject: RE

[PHP] Post Variable Problem

2001-12-13 Thread Jack
really waiting for your help! Jack [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Countdown clock?, X days till christmas

2001-12-13 Thread Jack Dempsey
not sure why and how you need mysql for this...why not just do the date calculation in php? Webleycity wrote: Hello all is it possible to do an interactive countdown clock in MYsql that can be embeded in emails. --- Mark Webley Multimedia design and

Re: [PHP] echo vs. print() performance?

2001-12-13 Thread Jack Dempsey
not as a criticism, but this is among the top 10 questions asked ...or used to be for a while...anyway, there's tons of info on the mailing lists, marc.theaimsgroup.com the short answer is that echo is SLIGHTLY faster being a language construct rather than a function...then again, i believe i

RE: [PHP] Another piece of history, kind of

2001-12-12 Thread Jack Dempsey
but then again, as things look now, PHP 4.x isn't likely to happen within a foreseeable time range, if at all. its good be wrong sometimes :-) -Original Message- From: Andrei Zmievski [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 12, 2001 10:20 PM To: [EMAIL PROTECTED] Subject:

RE: [PHP] RegEx gurus help...

2001-12-10 Thread Jack Dempsey
from the way you describe, i can't help but think that it'd be one hell of a regex.if all you're doing is stripping out .. i'd load up your fav editor and do a search and replace where you can approve each changeor, just change them all and fix what's broken.it'll be much quicker than

RE: [PHP] Running WML (WAP services) under PHP

2001-12-09 Thread Jack Dempsey
i think that php sends out headers showing that the page is html.not sure bout this, but you might have to send a diff header.. -Original Message- From: M [mailto:[EMAIL PROTECTED]] Sent: Sunday, December 09, 2001 5:08 PM To: [EMAIL PROTECTED] Subject: [PHP] Running WML (WAP

RE: [PHP] simple regexp question - validating new line chars

2001-12-08 Thread Jack Dempsey
that's because you're testing to see if '\n' is \n...single quotes mean: interpret the text between literally, so '\n' is a backslash followed by n...doulbe quotes mean: interpolate the value, so \n becomes a newline... -Original Message- From: Krzysztof Jarecki [mailto:[EMAIL

RE: [PHP] How to compute time to load page...

2001-12-08 Thread Jack Dempsey
certainly not 100% accurate, but it will give you a way of estimating. jack -Original Message- From: Torkil Johnsen [mailto:[EMAIL PROTECTED]] Sent: Saturday, December 08, 2001 7:14 PM To: [EMAIL PROTECTED] Subject: [PHP] How to compute time to load page... Hi All... (again) I

RE: [PHP] Comparing Dates

2001-12-08 Thread Jack Dempsey
you could pass the values to mktime and compare -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Saturday, December 08, 2001 8:17 PM To: [EMAIL PROTECTED] Subject: [PHP] Comparing Dates I'm trying to do a check on a date, to see if it's after the current

RE: [PHP] Reg ex help-Removing extra blank spaces before HTML output

2001-12-06 Thread Jack Dempsey
.its worth the money jack -Original Message- From: Ken [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 06, 2001 3:08 AM To: Jack Dempsey; liljim; PHP list Subject: RE: [PHP] Reg ex help-Removing extra blank spaces before HTML output At 02:43 PM 12/5/01 -0500, Jack Dempsey wrote

RE: [PHP] Reg ex help-Removing extra blank spaces before HTML output

2001-12-06 Thread Jack Dempsey
= this is some text with a newline in it right here \n there it was; echo $text; echo 'br'; echo preg_replace(/[ ]+\n+[ ]+/,\n,$text); and it made the substitution fine. jack -Original Message- From: Ken [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 06, 2001 1:56 PM To: Jack Dempsey Subject

RE: [PHP] Reg ex help-Removing extra blank spaces before HTML output

2001-12-06 Thread Jack Dempsey
cool, glad you got it working...if you think there's a bug with using / and | you might want to see if you can replicate the problem, and if its really a bug, submit it...my guess is that it was just a typo or something jack -Original Message- From: Ken [mailto:[EMAIL PROTECTED]] Sent

RE: [PHP] Reg ex help-Removing extra blank spaces before HTML output

2001-12-05 Thread Jack Dempsey
matching and replacing it'll take longer than a straight substitution, although i doubt the files you're scanning are big enough to notice jack -Original Message- From: liljim [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 05, 2001 5:18 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Reg ex

RE: [PHP] Reg ex help-Removing extra blank spaces before HTML output

2001-12-05 Thread Jack Dempsey
: $t = preg_replace('/\s+/',' ',$text); its quicker to code, easier to understand, and will run faster because it doesn't have to match and remember or do alternation... jack -Original Message- From: Ken [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 05, 2001 2:01 PM To: Jack

RE: [PHP] problem with ImageCreateJPEG ...

2001-12-04 Thread Jack Dempsey
also, are you sure both versions of php were compiled the same way with the same options and support? -Original Message- From: Johan Holst Nielsen [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 04, 2001 9:22 AM To: Miguel Loureiro; [EMAIL PROTECTED] Subject: Re: [PHP] problem with

RE: [PHP] Reg ex help-Removing extra blank spaces before HTML output

2001-12-04 Thread Jack Dempsey
$text = preg_replace('|\s+|',' ',$text); -Original Message- From: Ken [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 05, 2001 2:06 AM To: PHP list Subject: [PHP] Reg ex help-Removing extra blank spaces before HTML output I want to remove all superfluous blank spaces before I

RE: [PHP] php without the php.ini

2001-11-30 Thread Jack Dempsey
are you sure its not there? where does phpinfo say its located? its really not there? hmm...i'm not sure, but php might just use its own internal defaults without a php.ini present, but i thought it was needed..who knows.. jack -Original Message- From: Kunal Jhunjhunwala [mailto

RE: [PHP] Array Help

2001-11-27 Thread Jack Dempsey
you can just kept adding []'s $var[category][subcategory][Item] = url; -Original Message- From: Brian V Bonini [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 27, 2001 4:56 PM To: PHP Lists Subject: [PHP] Array Help How can I access the inner most info in this array? Ie, Item and

Re: [PHP] Display Problemo

2001-11-20 Thread Jack Dempsey
1. what do you want the br tags to be? a simple str_replace('br','',$text) will strip the tags... 2. use pre html text /pre jack Lerp wrote: I have a small php app that I'm building to display, insert, edit, etc... various types of code snipits (asp, php, html, etc...) in a db. I also have

Re: [PHP] schedule a task

2001-11-19 Thread Jack Dempsey
cron either a php script itself [if you've got it installed as a cgi] or a lynx request of the page check the archives as well [marc.theaimsgroup.com] because this comes up every week or so - Original Message - From: Gab [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, November 19,

Re: [PHP] schedule a task

2001-11-19 Thread Jack Dempsey
that? if not, i'm not sure what to tell you... jack - Original Message - From: Gab [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, November 19, 2001 3:32 PM Subject: Re: [PHP] schedule a task thanks for a quick response but I have a major problem with that: no shell access = can't

Re: [PHP] Difference of queries in PHP/mySQL?

2001-11-17 Thread Jack Dempsey
are you actually doing anything with $request? that just gets a mysql result back in a variable, you then have to extract the data from it... Jeff Lewis wrote: I am wondering if there are any difference between using PHP and using the command line for mySQL. Entering this at the comman line

RE: [PHP] Converting dates?

2001-11-17 Thread Jack Dempsey
search the archives there are tons of messages dealing with date manipulation. basically take the timestamps find the difference in seconds, convert to days, etc jack -Original Message- From: Jeff Lewis [mailto:[EMAIL PROTECTED]] Sent: Saturday, November 17, 2001 3:17 PM To: PHP

RE: [PHP] PHP Backing up a Database?

2001-11-17 Thread Jack Dempsey
mysqldump check it out, either man or google then ftp that file down, load it wherever, and mysql database dump.sql jack -Original Message- From: cosmin laslau [mailto:[EMAIL PROTECTED]] Sent: Saturday, November 17, 2001 5:25 PM To: [EMAIL PROTECTED] Subject: [PHP] PHP Backing up

RE: [PHP] Regular expressions?

2001-11-16 Thread Jack Dempsey
If you'd really like to develop your regex skills, and everyone should, pickup Mastering Regular Expressions by Jeffrey Friedl(O'Reilly Press). Its the best out there, and will probably teach you more than you thought possible. Jack -Original Message- From: Martin Thoma [mailto:[EMAIL

[PHP] os x server and php version 4.0b2

2001-11-16 Thread Jack Dempsey
I've been meaning to upgrade and finally feel like I have to bite the bullet. However, I can't find much information on OS X Server and a version of php more recent than 4.0b2 which is what I'm currently running. Can anyone provide some links or their configure line? thanks, Jack -- PHP

[PHP] mirrors?

2001-11-16 Thread Jack Dempsey
has anyone tried selecting a mirror php site from the drop down at the bottom-right? i just tried brazil and bulgaria and it seems to be broken in general... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

RE: [PHP] cron not allowed

2001-11-13 Thread Jack Dempsey
how did you plan on running php from cron? however you do that you could run a perl script that just makes a system call and does the same thing -Original Message- From: Caspar Kennerdale [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 13, 2001 9:04 AM To: Php-General Subject:

RE: [PHP] cron not allowed

2001-11-13 Thread Jack Dempsey
thanks jonwas more of a 'how are you going to' rather than 'how is it possible' :-) either way, from lynx or from php being a cgi a simple shell script or perl script should be able to make the appropriate call... jack -Original Message- From: Jon Haworth [mailto:[EMAIL PROTECTED

RE: [PHP] Re: Can If Else statements be split into code blocks??

2001-11-13 Thread Jack Dempsey
with a $variable in it. EOF; jack -Original Message- From: David Robley [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 13, 2001 8:21 PM To: Brad Melendy; [EMAIL PROTECTED] Subject: Re: [PHP] Re: Can If Else statements be split into code blocks?? On Wed, 14 Nov 2001 11:43, Brad Melendy wrote

RE: [PHP] Login verification

2001-11-12 Thread Jack Dempsey
i would think you could just use crypt() to check the pass against what you read in from the file -Original Message- From: Ashley M. Kirchner [mailto:[EMAIL PROTECTED]] Sent: Monday, November 12, 2001 2:27 AM To: PHP-General List Subject: [PHP] Login verification I want to make a

RE: [PHP]

2001-11-12 Thread Jack Dempsey
you can set error_reporting(E_ALL)that will help... -Original Message- From: Alex Tenitsky [mailto:[EMAIL PROTECTED]] Sent: Monday, November 12, 2001 9:19 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Hello, I'm curious if there's anything in PHP like use strict in Perl. It

RE: [PHP] for loop problem?

2001-11-12 Thread Jack Dempsey
paste the complete code in and myself and others can run your exact copy -Original Message- From: Tyler Longren [mailto:[EMAIL PROTECTED]] Sent: Monday, November 12, 2001 11:22 PM To: Martin Towell; [EMAIL PROTECTED] Subject: Re: [PHP] for loop problem? I removed all of the quotes that

RE: [PHP] for loop problem?

2001-11-12 Thread Jack Dempsey
ran it (without mysql queries) and worked finereal strange. have you tried the loop without the mysql queries? -Original Message- From: Tyler Longren [mailto:[EMAIL PROTECTED]] Sent: Monday, November 12, 2001 11:28 PM To: Jack Dempsey; [EMAIL PROTECTED] Subject: Re: [PHP

RE: [PHP] Resetting ID in mySQL DB

2001-11-11 Thread Jack Dempsey
say you have 100 records. you delete number 36. your db will then be ... 34 35 37 38 ... correct? after a delete, you could then say: update table set id_num=id_num-1 where id 36 and this would update all relevant records -Original Message- From: Thomas Edison Jr. [mailto:[EMAIL

Re: [PHP] Regular expression question

2001-11-09 Thread Jack Dempsey
What is $num going to be? A number? So how do you determine where that number ends and where there shouldn't be another number in front of it...are there any restrictions on the size of $num? say $num is 51 then you're saying that you want to match 51:: but not 151:: however, what if $num is

RE: [PHP] Am i crazy?

2001-11-04 Thread Jack Dempsey
you're assigning, not checking for equality...use two ='s -Original Message- From: Martin [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 04, 2001 12:49 PM To: [EMAIL PROTECTED] Subject: [PHP] Am i crazy? Did I forget everything in a few months? if ($name='admin') {

<    1   2   3   4   5   6   7   >