Re[2]: [PHP] Validating get and post data

2002-12-02 Thread Tom Rogers
Hi, Tuesday, December 3, 2002, 5:17:48 PM, you wrote: TR> Hi, TR> Tuesday, December 3, 2002, 12:12:09 PM, you wrote: BG>> Okay, I've just solved my own problem by simply doing: BG>> settype($input,"integer"); BG>> but.. I'm puzzled about why the following more complicated solution BG>> didn't

Re: [PHP] hiding php

2002-12-02 Thread Jason Wong
On Tuesday 03 December 2002 15:01, Larry Brown wrote: > Because its better to have someone waste time trying known hacks for a > platform I don't have than to have the same person not know the platform > and start spending time figuring out what it is right off the bat. In response to your origina

Re: [PHP] How to handle "so called" expired sessions??

2002-12-02 Thread Gerard Samuel
I had something similar in mind. Thanks for your input... Tom Rogers wrote: Hi, Tuesday, December 3, 2002, 1:57:21 PM, you wrote: GS> Ive just been getting myself deep into using sessions. GS> Sessions are working as it should except for one condition. GS> Say I log into the site, and the sess

Re: [PHP] Validating get and post data

2002-12-02 Thread Tom Rogers
Hi, Tuesday, December 3, 2002, 12:12:09 PM, you wrote: BG> Okay, I've just solved my own problem by simply doing: BG> settype($input,"integer"); BG> but.. I'm puzzled about why the following more complicated solution BG> didn't work. The ASCII value for 0 is 48, and for 9 is 57. BG> The idea w

RE: [PHP] hiding php

2002-12-02 Thread Larry Brown
Because its better to have someone waste time trying known hacks for a platform I don't have than to have the same person not know the platform and start spending time figuring out what it is right off the bat. Larry S. Brown Dimension Networks, Inc. (727) 723-8388 -Original Message- From

Re: [PHP] How to handle "so called" expired sessions??

2002-12-02 Thread Tom Rogers
Hi, Tuesday, December 3, 2002, 1:57:21 PM, you wrote: GS> Ive just been getting myself deep into using sessions. GS> Sessions are working as it should except for one condition. GS> Say I log into the site, and the session is started, and I don't do GS> anything for the next 30 mins, then go back

Re: [PHP] Need advice on downloading files and databases

2002-12-02 Thread Jason Wong
On Tuesday 03 December 2002 10:33, Dara Dowd wrote: > Hello everybody, > Newbie here...basically I need to develop a site that will allow users to > download files, e.g Word docs, XL sheets, and I would like to know whether > it is better to store the entire file in a database, or just the fi

[PHP] Re: Comment Threading

2002-12-02 Thread Philip Hallstrom
Your best bet would be to look at how some of the other apps do it :) (taking licensing issues into account that is :) This might help as well.. not sure how efficient it is on a really long list, but it works for my little stuff... http://stuff.adhesivemedia.com/php/heirarchial-sorting.php On T

Re: [PHP] easiest way to get 1st and last dates of the month?

2002-12-02 Thread Justin French
Thanks for pointing out the obvious !!! -- it's been a long day! Justin on 03/12/02 4:52 PM, rija ([EMAIL PROTECTED]) wrote: > How about date("t") ? > It's supposed return the last day of a month (28 - 31). > > - Original Message - > From: "Justin French" <[EMAIL PROTECTED]> > To: "php

Re: [PHP] hiding php

2002-12-02 Thread Justin French
Why not just make up an extension, like your initials (.lsb) or your business name (.dim or .dni), and set-up apache to pipe all those files through PHP...?? That way they'll have no clue at all (if used in conjunction with the "hide PHP" stuff, etc etc). Justin on 03/12/02 4:13 PM, Larry Brown

[PHP] easiest way to get 1st and last dates of the month?

2002-12-02 Thread Justin French
Hi, I'm looking to get a unix timestamp for the first and last day of a month, given a timestamp. But so far everything i've come up with has been wy too many lines of trickery -- especially for the last day of the month (which isn't always 31) Any ideas or snippets of code floating around?

RE: [PHP] Show Folder Contents in Form

2002-12-02 Thread @ Nilaab
Here is a basic format for the select statement. All you have to do is take the names of all the files and put them into an array, such as $filename[]. Then you place the file name between the option element using a for loop or something similar. You will have to place a unique value that identifie

Re: [PHP] hiding php

2002-12-02 Thread Rasmus Lerdorf
So change your Apache server string to say IIS instead. Why tell them you are using Apache? On Tue, 3 Dec 2002, Larry Brown wrote: > This should bump up my popularity here...can you run asp on apache? The > reason I ask is that I understand you can use a php option to hide the fact > that you a

RE: [PHP] hiding php

2002-12-02 Thread Peter Houchin
yes look around for sum thing like chilli soft from sun microsystems, but it's not free.. i dunno if there is a free one.. > -Original Message- > From: Larry Brown [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, 3 December 2002 4:13 PM > To: PHP List > Subject: [PHP] hiding php > > > This shou

[PHP] hiding php

2002-12-02 Thread Larry Brown
This should bump up my popularity here...can you run asp on apache? The reason I ask is that I understand you can use a php option to hide the fact that you are running php. This sounds like a good idea to keep people guessing, but I also want to use .asp extensions and have them parsed for the p

[PHP] Can't get this right

2002-12-02 Thread John Taylor-Johnston
What am I supposed to be doing with my slashes, exactly? Here is my first post: http://news.php.net/article.php?group=php.general&article=126754 I can't get this right. I know I have to esacpe my quotes for my SQL to work. http://news.php.net/article.php?group=php.general&article=126755 PHP add

RE: [PHP] PDF Help Please

2002-12-02 Thread Larry Brown
I know this is probably a day late and a dollar short but I was curious myself whether this would be a good outlet to use for reports for a client and wondered if there was such a thing. After seeing your post I went to there site and it looks like you have to have the PDI side to be able to modif

[PHP] [JOB] Senior Developer (PHP/Perl/Java/SQL), Washington DC Area

2002-12-02 Thread Alok K. Dhir
We have openings for a couple of experienced web application developers who meet or exceed the following criteria: Required skills (You *must* have 2.5+ years of each): - Large scale applications development on Unix/Linux platform - PHP - Perl - SQL (Oracle, MySQL

Re: [PHP] PHP and the PDFlib

2002-12-02 Thread Marco Tabini
Take a look at the iText library--it's a Java library, but you can build your Java classes and then instantiate them through PHP by executing them as external apps. That's what we use to personalize copies of our magazine. Marco -- php|architect - The magazine for PHP Professional

Re: [PHP] Validating get and post data

2002-12-02 Thread @ Edwin
"John W. Holmes" <[EMAIL PROTECTED]> wrote: > I think the problem is just the incorrect use of a switch. If you change > your code to > > switch(1) Or, switch(true) for that matter... - E -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.p

[PHP] How to handle "so called" expired sessions??

2002-12-02 Thread Gerard Samuel
Ive just been getting myself deep into using sessions. Sessions are working as it should except for one condition. Say I log into the site, and the session is started, and I don't do anything for the next 30 mins, then go back to the site. Im temporarily logged out, but because the session cookie

RE: [PHP] Validating get and post data

2002-12-02 Thread John W. Holmes
> > I think what's happening here is a type issue. The comparison is > returning > a > > boolean, so when $c != '0', the switch is true and the case is resolving > to > > true, and executing. But when $c == '0', with switch is (false), but > the > > case is true. Change the case to > > ($c > chr(

Re: [PHP] Validating get and post data

2002-12-02 Thread @ Edwin
Hello, "Matt" <[EMAIL PROTECTED]> wrote: > I think what's happening here is a type issue. The comparison is returning a > boolean, so when $c != '0', the switch is true and the case is resolving to > true, and executing. But when $c == '0', with switch is (false), but the > case is true. Change

Re: [PHP] Validating get and post data

2002-12-02 Thread Matt
- Original Message - From: "Beth Gore" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, December 02, 2002 9:12 PM Subject: [PHP] Validating get and post data > Okay, I've just solved my own problem by simply doing: > > settype($input,"integer"); > > but.. I'm puzzled about why t

[PHP] Comment Threading

2002-12-02 Thread Beth Gore
Hello, I'm trying to work out how to do some simple comment threading using PHP. I've overridden the blockquote tag in CSS so that it only indents from the left. At the moment comments are simply displayed in reverse chronological order as all the replies to a particular post. I just can't ge

Re: [PHP] Browser going to page twice?

2002-12-02 Thread Leif K-Brooks
Hmm, nope. It's now off and it's still doing that. (I did restart apache) Morgan Hughes wrote: On Mon, 2 Dec 2002, Leif K-Brooks wrote: Yes, I'm using Apache 1.3.22. Mind giving specifics on what to set those options to? I'm not very great with configuring apache... Basically, you

Re: [PHP] PHP and the PDFlib

2002-12-02 Thread Morgan Hughes
On Sun, 1 Dec 2002, Ryan Smaglik wrote: > Has anyone found any other means of opening an existing pdf file and adding > text to it? The only thing I could find is the PDI + PDFlib commercial > combo which I do not have the $1000 to dish out right now... > Any Ideas? While the PDFlib/PDI combo

[PHP] PHP and the PDFlib

2002-12-02 Thread Ryan Smaglik
Has anyone found any other means of opening an existing pdf file and adding text to it? The only thing I could find is the PDI + PDFlib commercial combo which I do not have the $1000 to dish out right now... Any Ideas?

[PHP] Need advice on downloading files and databases

2002-12-02 Thread Dara Dowd
Hello everybody, Newbie here...basically I need to develop a site that will allow users to download files, e.g Word docs, XL sheets, and I would like to know whether it is better to store the entire file in a database, or just the filepath, or even whether I need a databa

[PHP] Re: PHP --with-dbm enabled???

2002-12-02 Thread @ Edwin
Hello, (B (B"Vernon" <[EMAIL PROTECTED]> wrote in message (B[EMAIL PROTECTED]">news:[EMAIL PROTECTED]... (B> I'm being told that I need to have php compiled --with-dbm and it is not, (B> but it is complied --with-db3. Is that the same thing or do I need (B> recopile --with-dbm to use the dbmo

[PHP] Validating get and post data

2002-12-02 Thread Beth Gore
Okay, I've just solved my own problem by simply doing: settype($input,"integer"); but.. I'm puzzled about why the following more complicated solution didn't work. The ASCII value for 0 is 48, and for 9 is 57. The idea was to read a character at a time from the $rawinput string, check if it's w

Re: [PHP] IIS 5

2002-12-02 Thread @ Edwin
Hello, "Chris Edwards" <[EMAIL PROTECTED]> wrote: > I'm getting "You are not authorized to view this page" when trying to run > .php files. You mean plain html files work fine? > How do I fix this? I'm running php isapi on iis 5 on w2k > server. How did you configure it? Anyway, it sounds li

Re: [PHP] printing array

2002-12-02 Thread Matt
- Original Message - From: "empty" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, December 02, 2002 8:08 PM Subject: [PHP] printing array > Hi > $stra=("aa,bb,cc,dd,ee,ff,gg,hh,ii,jj,kk,ll"); > $splited = array(); > $splited = split(",",$stra); > $c=count($splited); > for($i=

Re: [PHP] printing array

2002-12-02 Thread @ Edwin
Hello, "empty" <[EMAIL PROTECTED]> wrote: > Hi > $stra=("aa,bb,cc,dd,ee,ff,gg,hh,ii,jj,kk,ll"); > $splited = array(); > $splited = split(",",$stra); > $c=count($splited); > for($i=0 ; $i<$c ; $i+=2){ > echo "$splited[$i]"; > echo "$splited[$i+1]"; // *error is here >

Re: [PHP] dynamic arraynames

2002-12-02 Thread Floyd Baker
Just want to thank everyone and tell how it finally came out... I was making way to much of this and went into difficult concepts too quickly. That's where the problem came from. Trying to build on earlier mistakes. We already had an array for the column names so a suggestion that I use on

Re: [PHP] Problem uploading files other than text/plain ones

2002-12-02 Thread Andre Dubuc
Hi Wilmar, Check whether you have something similar: You'll definetly need that for antything other than text/plain ones.. Here's a some code that works for me (uploading jpgs): if ($_FILES["pix"]["size"] > 0){ if ($_FILES["pix"]["type"] == "image/jpeg"){ $pix_file = $

RE: [PHP] Help with conditionals

2002-12-02 Thread John W. Holmes
> I am calling data from 3 checkboxes in a form, I can do that with > the > $_POST stuff. > But I want to also do the following: > > 1. If check box ³x² is checked, then also display data from form field ³y² > with a after it. (like this: X Y) maybe... if(isset($_POST['x'])) { echo $_P

Re: [PHP] Browser going to page twice?

2002-12-02 Thread Leif K-Brooks
Yes, I'm using Apache 1.3.22. Mind giving specifics on what to set those options to? I'm not very great with configuring apache... Morgan Hughes wrote: On Mon, 2 Dec 2002, Leif K-Brooks wrote: Nope, it happens on all of the pages, but it seems to be fairly random. It doesn't happen all of t

[PHP] Help with conditionals

2002-12-02 Thread Ryan Smaglik
I am calling data from 3 checkboxes in a form, I can do that with the $_POST stuff. But I want to also do the following: 1. If check box ³x² is checked, then also display data from form field ³y² with a after it. (like this: X Y) I am new at php so I don¹t know conditionals yet... Can

RE: [PHP] Sessions, Cookies, and Subdomains

2002-12-02 Thread John W. Holmes
[snip] > I want to have my website split into several > subdomains with a shared user system. That is to say that when someone > logs into > foo.mysite.com they'd also be logged into bar.mysite.com when they go to > it. It is my understanding that php sessions will not work in this way, > being th

[PHP] printing array

2002-12-02 Thread empty
Hi //Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in D:\sites\c\htemp.php on line 12 echo "" } ?> I want to see on the screen is that aabb ccdd eeff gghh iijj kkll but the code above says wrong :( Can you help me? Thanks everybody. -- PHP General Mai

Re: [PHP] Browser going to page twice?

2002-12-02 Thread Morgan Hughes
On Mon, 2 Dec 2002, Leif K-Brooks wrote: > Nope, it happens on all of the pages, but it seems to be fairly random. > It doesn't happen all of the time, just sometimes. You're using what server... Apache I hope? There is an Apache directive (in 1.3 at least) that controls whether the server s

Re[2]: [PHP] Decrypting mcrypted strings on Windows desktop

2002-12-02 Thread Geoff Caplan
Justin, JF> I've done something similar (encrypt a message, send it to a client, let JF> them decrypt locally), and so far, the easiest solution was to simply JF> install PHP and Apache on their PC. Yikes! Thanks for the suggestion, but I sincerely hope there is a simpler solution than this - the

Re: [PHP] Browser going to page twice?

2002-12-02 Thread Leif K-Brooks
Nope, it happens on all of the pages, but it seems to be fairly random. It doesn't happen all of the time, just sometimes. Morgan Hughes wrote: On Mon, 2 Dec 2002, Leif K-Brooks wrote: I'm having a weird problem. When I go to a page on my site, it often goes twice. I'm not sure if this is a

Re: [PHP] Browser going to page twice?

2002-12-02 Thread Morgan Hughes
On Mon, 2 Dec 2002, Leif K-Brooks wrote: > I'm having a weird problem. When I go to a page on my site, it often > goes twice. I'm not sure if this is a client-side or server-side > problem, but it doesn't happen on other sites. Is this a common > problem, or am I making some dumb mistake? Is

[PHP] Sessions, Cookies, and Subdomains

2002-12-02 Thread Rob Paxon
Hello, I've a bit of a problem and was wondering if anyone out there can help straighten it out. I have never worked with cookies or php sessions before as the need for such has never presented itself before. Up until this point I have been using a very customized version of PostNuke but thing

[PHP] PHP + Java

2002-12-02 Thread Ray Hunter
Does anyone have PHP 4.2.3 and Java running together? I need to see how you have the php.ini file set up... Here is mine and it just hangs... [Java] java.class.path=/usr/local/lib/php/php_java.jar java.home=/usr/local/java java.library=/usr/local/java/jre/lib/i386/hotspot/libjvm.so extensions_

Re: [PHP] nl2br ( ) and forms

2002-12-02 Thread Leif K-Brooks
Ryan Smaglik wrote: When I call data from a form, How do I integrate nl2br to it so that it displays with linebreaks? Example code: Thanks in advance, Ryan -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to t

[PHP] nl2br ( ) and forms

2002-12-02 Thread Ryan Smaglik
When I call data from a form, How do I integrate nl2br to it so that it displays with linebreaks? Example code: Thanks in advance, Ryan

[PHP] Re: print to file

2002-12-02 Thread Thomas Seifert
$fp=fopen("filename","a"); fputs($fp,"text to the file"); fclose($fp); Regards, Thomas On Mon, 2 Dec 2002 15:52:23 -0800 (PST) [EMAIL PROTECTED] (Bryan Koschmann - Gkt) wrote: > Okay, this is probably stupid, but how do you print to a file? > > Thanks, > > Bryan > -- PHP General M

Re: [PHP] Decrypting mcrypted strings on Windows desktop

2002-12-02 Thread Justin French
I've done something similar (encrypt a message, send it to a client, let them decrypt locally), and so far, the easiest solution was to simply install PHP and Apache on their PC. You could also check out PGP-GTK, which is a cross-platform, client-side extension to PHP for making GUI's... haven't w

[PHP] PDF Help Please

2002-12-02 Thread Ryan Smaglik
I need to figure out by tonight how to: 1. open a .pdf file using php. 2. add text to certain parts of it. 3. save it and output to browser. 4. Then delete the temp file so the process can be done over again. I have PDFlib but not the $1000 PDI addition Please help, Ryan

[PHP] print to file

2002-12-02 Thread Bryan Koschmann - GKT
Okay, this is probably stupid, but how do you print to a file? Thanks, Bryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Date problem

2002-12-02 Thread John W. Holmes
> Thanks for this, > I understand how to update in date in database, but I need when I get date > from database to increase or decrease before to save in database. > > Can you help me for this ? Yeah, I already did: > > You can select out the date you have now, use strtotime() to make it > > int

[PHP] IIS 5

2002-12-02 Thread Chris Edwards
I'm getting "You are not authorized to view this page" when trying to run .php files. How do I fix this? I'm running php isapi on iis 5 on w2k server. thanks. -- Chris Edwards Web Application Developer Outer Banks Internet, Inc. 252-441-6698 [EMAIL PROTECTED] http://www.OuterBanksInternet.com

[PHP] Browser going to page twice?

2002-12-02 Thread Leif K-Brooks
I'm having a weird problem. When I go to a page on my site, it often goes twice. I'm not sure if this is a client-side or server-side problem, but it doesn't happen on other sites. Is this a common problem, or am I making some dumb mistake? -- The above message is encrypted with double rot13 en

[PHP] PHP --with-dbm enabled???

2002-12-02 Thread vernon
I'm being told that I need to have php compiled --with-dbm and it is not, but it is complied --with-db3. Is that the same thing or do I need recopile --with-dbm to use the dbmopen() function? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Decrypting mcrypted strings on Windows desktop

2002-12-02 Thread Geoff Caplan
Hi folks, Bit OT but I am hoping someone on the list can help. I need to encrypt short strings in PHP, using mcrypt by preference, email it to the customer, and have him decrypt the string on the Windoze desktop. But all the Windows encryption utilities I can find use proprietary file formats -

Re: [PHP] Why all the returned emails from this list?

2002-12-02 Thread 1LT John W. Holmes
> At 11:16 PM 12/1/02 -0800, Troy May wrote: > >I'm getting nailed with a bunch of returned emails like this: > > > >[EMAIL PROTECTED] - no such user here. > > > >There is no user by that name at this server. > >: Message contains [1] file attachments > > > > > >What's going on? Each one has a dif

Re: [PHP] Re: invalid range

2002-12-02 Thread Morgan Hughes
On Mon, 2 Dec 2002, Nick Eby wrote: > looks like because you have a dash inside your character class; when inside > a character class the dash is a special character and you'd have to escape > it > eregi("^([a-zedv_\.\- ]+)$", $value); Traditionally in regexes, a dash has to come last, otherwis

[PHP] Help with Search and Replace in a PDF Document

2002-12-02 Thread Gabriel Murphy
Hello All: I am 6 days new to PHP. I find the syntax to be quite similar to Perl, so that has helped alot. I am having problems doing a search and replace in an Adobe PDF document. What I have done is made an Adobe PDF document using Adobe Distiller from a MS Word document. I then changed some of

[PHP] Re: invalid range

2002-12-02 Thread Nick Eby
looks like because you have a dash inside your character class; when inside a character class the dash is a special character and you'd have to escape it eregi("^([a-zåäö_\.\- ]+)$", $value); "Peter A" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... when I do thi

Re: [PHP] PHP Problem or MySQL (Match ... against)?

2002-12-02 Thread jtjohnston
Chris, or anyone, I have tried to escape the slashes. Debugging ... $sql = 'SELECT ... ... AGAINST (\'"ready maria"\' IN BOOLEAN MODE) ...'; This works. But if I addslashes or stripslashes, or do nothing, it does not work. See these 3 variations. Neither work. What should I do? A part from hang

[PHP] Re: Show Folder Contents in Form

2002-12-02 Thread Nick Eby
you could first read the files and their modified-dates into an array; sort the array; and finally build a select widget from the array... function sortByTime($a, $b) { if ($a["time"] == $b["time"]) return 0; return ($a["time"] < $b["time"]) ? -1 : 1; } while (false !== ($file = readdir("

[PHP] Show Folder Contents in Form

2002-12-02 Thread Stephen
Hello, Is it possible, and if so how, to get the filenames and last edited time/date, then display them in a select field in a form for a user to select? I'd need to show them in order of most recently edited to last edited. How can this be done if it can? Thanks, Stephen Craton http://www.melchi

[PHP] invalid range

2002-12-02 Thread peter a
when I do this eregi("^([a-zåäö_\.- ]+)$",$value); I get this: Warning: Invalid range end in /home/zinekweb/public_html/corporate/_mcm_contacts_upload.php on line 42 Why? I running Apache1.3 on my XP machine with PHP 4.2something.. but when I upload to a RedHat7.2 server with Apache.1.3 and

Re: [PHP] Why all the returned emails from this list?

2002-12-02 Thread Rick Widmer
At 11:16 PM 12/1/02 -0800, Troy May wrote: I'm getting nailed with a bunch of returned emails like this: [EMAIL PROTECTED] - no such user here. There is no user by that name at this server. : Message contains [1] file attachments What's going on? Each one has a different address, but the term

[PHP] php shipping rate question

2002-12-02 Thread Matt Friedman
Hi, I've found a number of UPS rate calculators in php and I'm wondering if anyone has used many shipping calculators written in php. If so, what success have you had? Any stories/recommendations to share? Thanks very much, Matt -- PHP General Mailing List (http://www.php.net/) To unsubscrib

[PHP] PHP Shipping Rate Question

2002-12-02 Thread Matt Friedman
Hi, I've found a number of UPS rate calculators in php and I'm wondering if anyone has used many shipping calculators written in php. If so, what success have you had? Any stories/recommendations to share? Thanks very much, Matt -- PHP General Mailing List (http://www.php.net/) To unsubscr

[PHP] Weird upload problem

2002-12-02 Thread Wilmar Perez
Hello guys Well, I've been trying to upload a file without much success so far. So I'm trying to find the error but honestly this has become a real puzzle for me. I’ve got the following form: File to upload: The action thing just passes the results to a function for it to process the up

Re: [PHP] PHP Problem or MySQL (Match ... against)?

2002-12-02 Thread Chris Wesley
On Mon, 2 Dec 2002, jtjohnston wrote: > SELECT id,AU,ST,BT,AT FROM jdaxell.ccl WHERE MATCH > (TNum,YR,AU,ST,SD,BT,BC,AT,PL,PR,PG,LG,AUS,KW,GEO,AN,RB,CO) AGAINST > ('"ready maria"' IN BOOLEAN MODE) ORDER > BY id asc > > When I run the same (copied and pasted) SQL in PHP, it is as though > MySQL is

[PHP] PHP Problem or MySQL (Match ... against)?

2002-12-02 Thread jtjohnston
I'm stuck. I have been to the MySQL lists for this. Now I'm reconsidering my PHP code. http://ccl.flsh.usherb.ca/print/display.table.inc.phps I just don't know where I'm going wrong anymore. If I run this SQL in PHPMyAdmin, it works. jdaxell.ccl should have one entry for "ready maria". SELECT i

[PHP] some data output formatting and grouping question...

2002-12-02 Thread Victor
I just have a mental block; I cannot at all conceive the necessary syntax to or even the theoretical algorithm that I need, to do the following: Consider the following table: U | X | Y --|---|-- me|001|0a me|002|0a me|003|0a me|002|0b me|003|0b me|004|0b ..|...|.. then the code says: SELECT *

Re: [PHP] Test links?

2002-12-02 Thread Beth Gore
DL Neil wrote: Beth, I noticed this reference to "$http_response_header" and straightaway quizzed the manual, only to find that the only references to it (eg file open) lead nowhere. Have gone through a few other pages, looking to see if I might happen upon some detail, but failed. Sadly you d

Re: [PHP] Red Hat 8 Apache problem - stumped :-(

2002-12-02 Thread Rasmus Lerdorf
Your best bet is to get rid of Apache 2.0 and install an Apache 1.3.x RPM instead. -Rasmus On 2 Dec 2002, Lee P. Reilly wrote: > Hi there, > > This might be better suited for an Apache newsgroup, but I thought I'd > try here first. I installed Apache and PHP on RH8 a few weeks ago > following th

Re: [PHP] Triggering a PHP Script

2002-12-02 Thread Ryan Bates
Don't worry. The newsletter is only sent to those who have requested it in their registration, and the user can easily unsubscribe at any time. Anyway, it looks like I will have to go with a CGI Script. Thanks for your reply. If anyone has any alternative methods please let me know. Ryan Bates

Re: [PHP] Who can tell me the best php-base webmail?

2002-12-02 Thread Jason Wong
On Tuesday 03 December 2002 02:34, Jonathan Sharp wrote: > also take a look at hord-imap (http://www.hord.org) That's horde with an 'e' on the end, it's silent but it's still there ;-) -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design

[PHP] Red Hat 8 Apache problem - stumped :-(

2002-12-02 Thread Lee P. Reilly
Hi there, This might be better suited for an Apache newsgroup, but I thought I'd try here first. I installed Apache and PHP on RH8 a few weeks ago following the instructions on [URL 1, below], and both were running with absolutely no problems. Today however, I rebooted my machine and http://localh

Re: [PHP] re: ini_set() / Jason Wong / dynamically setting this?

2002-12-02 Thread Jason Wong
On Tuesday 03 December 2002 01:20, Matt Babineau wrote: > Hi everyone: > > > > I just read the reply from Jason Wong pretty much just about my > question. Using the ini_set() command at the top of all my pages I think > would work out ok, but when I upload my pages to the server, how can I > dynami

Re: [PHP] Who can tell me the best php-base webmail?

2002-12-02 Thread Jonathan Sharp
also take a look at hord-imap (http://www.hord.org) -js On Mon, 2 Dec 2002 14:06:01 +0100 [EMAIL PROTECTED] wrote: > Le Lundi 2 D¨¦cembre 2002 13:30, [EMAIL PROTECTED] a ¨¦crit : > > > Who can tell me the best php-base webmail? > > I want a webmail for my mail server, > > give me a suggest, ple

[PHP] PHP Course - San Francisco, CA 12/16-12/18

2002-12-02 Thread Nick Cawthon
PHP Programming Bootcamp DESCRIPTION: This hands-on PHP Programming course provides the knowledge necessary to design and develop dynamic, database-driven web pages using PHP version 4. PHP is a language written for the web, quick to learn, easy to deploy and provides many advantages over other se

Re: [PHP] preg_match()

2002-12-02 Thread Adam Voigt
Well, if you truly mean split by row, if $emaillist contains them all: $earray = explode("\n",$emaillist); Then, if you wanted each email address in it's own subarray position: for($counter = 0; $counter < count($earray); $counter++) { $earray[$counter] = explode(";",$earray[$counter

Re: [PHP] preg_match()

2002-12-02 Thread Michael Sweeney
Why not use split() (http://www.php.net/split) or explode() instead of matching? ..michael.. On Mon, 2002-12-02 at 09:34, Sturle wrote: > Hello > > I have one coloumn with lots of e-mail adress like this: > > [EMAIL PROTECTED];[EMAIL PROTECTED];[EMAIL PROTECTED] > [EMAIL PROTECTED];[EMAIL PROTE

Re: [PHP] phpAds Sillyness

2002-12-02 Thread Adam Voigt
Hmm, you got me. The last time I installed it, it worked fine after I turned register global's on. There's a support forum on there website if no one else here has any bright idea's. -- Adam Voigt ([EMAIL PROTECTED]) The Cryptocomm Group My GPG Key: http://64.238.252.49:8080/adam_at_cryp

Re: [PHP] phpAds Sillyness

2002-12-02 Thread Matt \"TrollBoy\" Wiseman
I sure didn't. Here's my PHPInfo() http://www1.metalink.net/~mjw/phpAds/phpinfo.php Matt "TrollBoy" Wiseman Webmaster: Shoggoth.net Site Designer: phpslash.org The oldest and strongest emotion of mankind is fear, and the oldest and strongest kind of fear is fear of the unknown. -H.P. Lovecraft --

Re: [PHP] phpAds Sillyness

2002-12-02 Thread Adam Voigt
Did you change anything in the session settings from the PHP default? -- Adam Voigt ([EMAIL PROTECTED]) The Cryptocomm Group My GPG Key: http://64.238.252.49:8080/adam_at_cryptocomm.asc signature.asc Description: This is a digitally signed message part

Re: [PHP] phpAds Sillyness

2002-12-02 Thread Matt \"TrollBoy\" Wiseman
> A2: enable register_globals in your php.ini, and try again. If it works > then, shoot them. It was on; register_globals On On magic_quotes_gpc On On Any other suggestions? Matt "TrollBoy" Wiseman Webmaster: Shoggoth.net Site Designer: phpslash.org The oldest and

Re: [PHP] phpAds Sillyness

2002-12-02 Thread Ernest E Vogelsinger
At 19:01 02.12.2002, Matt \"TrollBoy\" Wiseman spoke out and said: [snip] >A fresh install of phpAds is resulting in a funky error, everytime you go to >add a client or a ad, it prompts you to log in again. >Now quoting from thier FAQ: >Q: The login doesn't w

[PHP] phpAds Sillyness

2002-12-02 Thread Matt \"TrollBoy\" Wiseman
A fresh install of phpAds is resulting in a funky error, everytime you go to add a client or a ad, it prompts you to log in again. Now quoting from thier FAQ: Q: The login doesn't work, it keeps prompting for username/password all over again.or I can't add banners. A: Make sure you have enabled mag

Re: [PHP] Triggering a PHP Script

2002-12-02 Thread DL Neil
Ryan, > My Problem: > I've got a PHP script (running on Apache) that can take several hours > to complete. The script sends out a newsletter to those who have > requested it. When calling this script from a web browser, the browser > hangs until the script has fully executed. If the user hits "Sto

Re: [PHP] Test links?

2002-12-02 Thread DL Neil
Rob/Beth, The code should also consider: 1 updating the db if the link is 'valid', ie if previously it had been 'down'! 2 putting an @ to prevent any errors causing a hard-stop at the fopen line 3 that the url/database must contain protocol information, ie http://www.nytimes.com not www.nytimes.c

[PHP] preg_match()

2002-12-02 Thread Sturle
Hello I have one coloumn with lots of e-mail adress like this: [EMAIL PROTECTED];[EMAIL PROTECTED];[EMAIL PROTECTED] [EMAIL PROTECTED];[EMAIL PROTECTED];[EMAIL PROTECTED] [EMAIL PROTECTED] And i want to take the first row and put the adresses into an array, then the second row... I try like thi

[PHP] Re: How do I run a command as root?

2002-12-02 Thread Luke van Blerk
Thanks for all the replys. I'll be checking out sudo. p.s I forgot to put 'in a script' "Luke Van Blerk" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi > > I'm trying to find out how to run a command on the server as root. Does > anybody know how to do this

Re: [PHP] Test links?

2002-12-02 Thread DL Neil
Beth, > When fopen successfully opens a file it populates an array > $http_response_header, which you can examine to see if the link works or > not - I don't believe you can actually get the file itself, but since > that's not what we're after that's not a problem! I noticed this reference to "$h

[PHP] re: ini_set() / Jason Wong / dynamically setting this?

2002-12-02 Thread Matt Babineau
Hi everyone: I just read the reply from Jason Wong pretty much just about my question. Using the ini_set() command at the top of all my pages I think would work out ok, but when I upload my pages to the server, how can I dynamically set the include path to match the root of my web folder on the

RE: [PHP] Who can tell me the best php-base webmail?

2002-12-02 Thread Shu Chow
We use SquirrelMail (http://www.squirrelmail.org). I've customized the front-end and it's a breeze. I can't give you first-hand testimony on administration, but our administrator likes it. Users have no compliants. We use it with Postfix. -- PHP General Mailing List (http://www.php.net/) T

[PHP] Triggering a PHP Script

2002-12-02 Thread Ryan Bates
My Problem: I've got a PHP script (running on Apache) that can take several hours to complete. The script sends out a newsletter to those who have requested it. When calling this script from a web browser, the browser hangs until the script has fully executed. If the user hits "Stop" while the

Re: [PHP] How do I include specific files?

2002-12-02 Thread Jason Wong
On Monday 02 December 2002 23:57, Roddie Grant wrote: > In PHP the include_path stops this process in its tracks. I'm with an ISP > so I don't suppose I can control include_path (.:/usr/local/lib/php). Are > there any other options? You can set the include_path at run-time using: ini_set("incl

RE: [PHP] Problem uploading files other than text/plain ones

2002-12-02 Thread Keith Sauvant
You know about the php.ini option "upload_max_filesize"? Perhaps its default value is not enough for your task? Greeting from Keith Aachen, Germany -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Problem uploading files other than text/plain ones

2002-12-02 Thread Wilmar Perez
Hello guys I'm trying to do a simple task: upload files. However, when I try to upload files other than text/plain ones I get an empty $_FILES array. Is there anything I've got to modify in my php.ini file? I'm just following the expample in the php manual, the only thing different is that I

  1   2   >