Re: [PHP] Include(remote HTML file) doesn't work since upgrade

2003-07-24 Thread Police Trainee
my phpinfo output does not have that particular init value "disable-url-fopen-wrapper". "allow_url_fopen" is enabled, safemode is off, and include_path is set to .:/usr/local/lib/php. further ideas? --- Curt Zirzow <[EMAIL PROTECTED]> wrote: > * Thus wrote Police Trainee > ([EMAIL PROTECTED]): > >

Re: [PHP] Sorting algorithm(s) used by PHP's sort function

2003-07-24 Thread Curt Zirzow
* Thus wrote Shaunak Kashyap ([EMAIL PROTECTED]): > Does anyone know what sorting algorithm(s) -- quicksort, mergesort, > radix sort, etc. -- does PHP use internally in its sort function? Zend actually does the sorting, and its quicksort. Curt -- "I used to think I was indecisive, but now I'm no

Re: [PHP] Link acting as a submit button

2003-07-24 Thread Curt Zirzow
* Thus wrote Matt Palermo ([EMAIL PROTECTED]): > I am trying to create a submit button out of a hyperlink using the > following > code: > > (this is in a file called index.html) > this > page > > > > This works fine as an ht

Re: [PHP] PHP should know my data!

2003-07-24 Thread Lars Torben Wilson
On Thu, 2003-07-24 at 15:24, John Manko wrote: > LOL :) - Now that's funny! > > Robert Cummings wrote: > > >Unfortunately I don't think some people "got" the joke. Next thing you > >know their going to complain that PHP should have told them the > >punchline ;) > > > >Cheers, > >Rob. Oh fer Pet

RE: [PHP] PHP should know my data!

2003-07-24 Thread Chris Hubbard
Hmm. You're right. Maybe something like the following would help: ". $rs .""; ?> -Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: Thursday, July 24, 2003 2:24 PM To: Chris Hubbard Cc: John Manko; PHP General Subject: RE: [PHP] PHP should know my data! Unfortun

[PHP] Re: cookies in asp

2003-07-24 Thread Baroiller Pierre-Emmanuel
If it's a real cookie, you can get it with php into the cookie vars.. If it's an asp session, forget it... "Carlos Castillo" <[EMAIL PROTECTED]> a écrit dans le message de news:[EMAIL PROTECTED] HI, I have the following problem, i have a website with php and asp files, in one asp fil

Re: [PHP] PHP should know my data!

2003-07-24 Thread John Manko
LOL :) - Now that's funny! Robert Cummings wrote: Unfortunately I don't think some people "got" the joke. Next thing you know their going to complain that PHP should have told them the punchline ;) Cheers, Rob. On Thu, 2003-07-24 at 18:17, Chris Hubbard wrote: Now this is funny. John, you've

RE: [PHP] PHP should know my data!

2003-07-24 Thread Robert Cummings
Unfortunately I don't think some people "got" the joke. Next thing you know their going to complain that PHP should have told them the punchline ;) Cheers, Rob. On Thu, 2003-07-24 at 18:17, Chris Hubbard wrote: > Now this is funny. John, you've captured the irony of a number of recent > posts.

RE: [PHP] PHP should know my data!

2003-07-24 Thread Chris Hubbard
Now this is funny. John, you've captured the irony of a number of recent posts. Congrats. Been a while since I laughed this hard. Cobol. egad. That's a nice touch. Thanks for the levity. chris -Original Message- From: John Manko [mailto:[EMAIL PROTECTED] Sent: Thursday, July 24, 2003

[PHP] Re: PHP should know my data!

2003-07-24 Thread Bobby Patel
auto-populate data, as in putting in mock data depending on column type? or transferring data from another data source. If the former, you can look at 3rd party sources (I think I saw one from winSQL), if the latter you can convert any data source to a (tab, comma, etc.) delimeted file which you c

Re: [PHP] PHP should know my data!

2003-07-24 Thread Lars Torben Wilson
On Thu, 2003-07-24 at 15:04, John Manko wrote: > I just wrote a web app, but I'm completely disgusted with PHP. The > application works great, but PHP is not smart enough to know what data > belongs in my database. Really, I have to enter the stuff in myself. I > spent 2 long days writing thi

RE: [PHP] PHP should know my data!

2003-07-24 Thread Roger B.A Klorese
> From: Chris W. Parker [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 24, 2003 3:07 PM > To: John Manko; PHP General > Subject: RE: [PHP] PHP should know my data! > > > Color me ignorant... Isn't "ignorant" the color they dropped from the rainbow? Red, Orange, Yellow, Green, Blue, ignorant,

RE: [PHP] PHP should know my data!

2003-07-24 Thread Chris W. Parker
John Manko on Thursday, July 24, 2003 3:04 PM said: > Sometimes I wonder how long this > "innovative" technology will last when there are incompetent > languages like PHP, Perl, and Java. Color me disappointed. Color me ignorant, but what the heck are you talking a

[PHP] PHP should know my data!

2003-07-24 Thread John Manko
I just wrote a web app, but I'm completely disgusted with PHP. The application works great, but PHP is not smart enough to know what data belongs in my database. Really, I have to enter the stuff in myself. I spent 2 long days writing this (sweating and crying), and you mean to tell me that

[PHP] cookies in asp

2003-07-24 Thread Carlos Castillo
HI,   I have the following problem, i have a website with php and asp files, in one asp file i create some cookie that i need to access on another php file.do you have any idea.???   Thanks,   Carlos A. Castillo. Ingeniero de desarrollo [EMAIL PROTECTED] __

[PHP] creating search

2003-07-24 Thread Ryan A
Hi everyone, I think i have read about this on the list before...or someone i'm sure must have had the same problem. I have a couple of tables, some with pretty large amount of fields (48 or more) is there anyway to automatically create search forms after looking at the database? or anyone have any

Re: [PHP] fwrite int or float

2003-07-24 Thread Ted Huntington
I should have type "signed 32 bit little endian" and little endian float. Ted Huntington wrote: > ok I see to use the "pack" command, but now how do I format to 32 bit > little endian? > > Ted Huntington wrote: > > > Is there some easy way to fwrite a 32 bit int or float? > > > > -- > > Ted Hunti

RE: [PHP] arguments against moving site from Linux/Apache/PHP server to Windows/IIS/PHP needed

2003-07-24 Thread Roger B.A Klorese
> From: Chris Shiflett [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 24, 2003 2:22 PM > > I thought that's what the Web server was supposed to do. Well, that flies in the face of the filter-pipeline model, doesn't it? One program, one job. The web server should do the right thing in the fac

Re: [PHP] fwrite int or float

2003-07-24 Thread Ted Huntington
ok I see to use the "pack" command, but now how do I format to 32 bit little endian? Ted Huntington wrote: > Is there some easy way to fwrite a 32 bit int or float? > > -- > Ted Huntington > Programmer Analyst I > Main Library > University of California, Irvine > PO Box 19557 > Irvine, CA 92623-

[PHP] Regexp (ereg) help

2003-07-24 Thread Reuben D. Budiardja
Hi all, If I have the following string: $str = "This is a %ANS[1] test, and %ANS[2] test, and %ANS[10], test" and want to use ereg($pattern, $str, $regs); what is the $pattern should be so that in $regs I have $regs[1] == "%ANS[1]"; $regs[2] == "%ANS[2]"; $regs[3] == "%ANS[10]"; ... In fact,

RE: [PHP] arguments against moving site from Linux/Apache/PHP server to Windows/IIS/PHP needed

2003-07-24 Thread Chris Shiflett
--- "Chris W. Parker" <[EMAIL PROTECTED]> wrote: > If you ever use IIS you can get a tool (free) from MS called URLScan. > It's sort of like mod_rewrite in that it rejects all those strange > requests before they even get to IIS. Good tool. It's meant to only > allow well formed, valid http request

[PHP] Re: PHP webpage like MySQL, PART 2

2003-07-24 Thread Bobby Patel
Are you talking about editing mutiple rows at the same time? if so there is no efficient way to check what row has been edited and which haven't. What I would is use HTML variable arrays for the names of the fields. example you have change the name attribute to name = [data][$id][FirstName], so no

[PHP] Display Records (brief summary and full details)

2003-07-24 Thread Pushpinder Singh Garcha
Hello All, I am trying to create a small MySQL application using PHP. I have a table of contacts with each record having over 30 fields. I have a search page where a logged-in admin can search for a particular record on the basis of certain parameters. This is a sample code:

RE: [PHP] arguments against moving site from Linux/Apache/PHP server to Windows/IIS/PHP needed

2003-07-24 Thread Chris W. Parker
Jim McNeely on Thursday, July 24, 2003 1:57 PM said: > If you have to move to Windows, at least use Apache. I note in my > server access logs on my Windows test machine that people are trying > to hack in every day and I have a very obscure site just to test my > own

Re: [PHP] arguments against moving site from Linux/Apache/PHP server to Windows/IIS/PHP needed

2003-07-24 Thread Jim McNeely
If you have to move to Windows, at least use Apache. I note in my server access logs on my Windows test machine that people are trying to hack in every day and I have a very obscure site just to test my own clients' web apps. It always looks like some kind of super long url trying to do some ki

[PHP] Re: PHP Webpage like MySql- need to be able to see all fields and edit

2003-07-24 Thread Bobby Patel
You could look at a nice GUI package that does all the database modifications , its called phpMyAdmin (www.phpmyadmin.net). But maybe this is too extrememe to what you want. "Matt Hedges" Hello. I am building a webpage for a sorority- http://www.ole

[PHP] fwrite int or float

2003-07-24 Thread Ted Huntington
Is there some easy way to fwrite a 32 bit int or float? -- Ted Huntington Programmer Analyst I Main Library University of California, Irvine PO Box 19557 Irvine, CA 92623-9557 Phone Bus Off 949 824 8926 Phone MRC 949 824 1674 emesg: [EMAIL PROTECTED] webpage: http://business.lib.uci.edu/webp

Re: [PHP] Include Problems

2003-07-24 Thread Eric Fleming
I figured out what was wrong with it, thanks for all your help. I hate syntax errors. I needed to echo the variable when trying to display it and the double "=" helped resolve the other problem. Thanks everyone. "Chris W. Parker" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Jay

[PHP] PHP webpage like MySQL, PART 2

2003-07-24 Thread Matt Hedges
Many hanks for ya'lls help earlier. I've figured out how to pull the data and edit it: http://www.hedges.org/aoii/olemiss/updatesister.php However, for some reason I can't get it to edit whatever row. In the code (pasted below) I have to specificy $id=row to edit... I can't figure out how to ma

[PHP] Re: ARRAY QUESTION

2003-07-24 Thread Kevin Stone
"Dale Hersh" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have a question regarding the count function. Here goes: > > Lets pretend I have this array called myStuff. If I add two elements to > myStuff and call the count function, I will get a result of 2. My question > is how do

RE: [PHP] Include Problems

2003-07-24 Thread Chris W. Parker
Jay Blanchard on Thursday, July 24, 2003 1:12 PM said: > I just cleaned it up some, used non deprecated formatting tags and sis > it all in one shot. Yeah but Jay, you didn't allow for an else. Your code should have an else in there so that even if he's not at home

RE: [PHP] Include Problems

2003-07-24 Thread Jay Blanchard
[snip] What is different about the code that you wrote except that you have the html being output by php? [/snip] I just cleaned it up some, used non deprecated formatting tags and sis it all in one shot. HTH -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php

Re: [PHP] I'm really getting annoyed with PHP

2003-07-24 Thread Lars Torben Wilson
On Thu, 2003-07-24 at 04:18, Comex wrote: > <[EMAIL PROTECTED]> > Lars Torben Wilson: > > On Wed, 2003-07-23 at 18:21, Daryl Meese wrote: > >> Well, I know I am not running the latest version of PHP but I don't > >> believe this is accurate. I believe PHP case sensitivity is based > >> on the os t

Re: [PHP] Include Problems

2003-07-24 Thread Eric Fleming
I have ran it on my local machine and at my hosting company and it doesn't work for me. I even tried using wrote in message news:[EMAIL PROTECTED] > Eric, I tried your code on my machine and it seems to print the name of > the variable just fine. The only change I had to make to your code was >

Re: [PHP] I'm really getting annoyed with PHP

2003-07-24 Thread Kevin Stone
"Zerof" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > You are absolutely right, exit, quits my script, this let me use an independent script to > handle the headers. if used with conditional calls. . > > zerof > - > "Comex" <[EMAIL PROTECTED]> escreveu na mensagem > news:[

Re: [PHP] Include Problems

2003-07-24 Thread Jason Giangrande
Eric, I tried your code on my machine and it seems to print the name of the variable just fine. The only change I had to make to your code was add the long PHP tags (i.e. [Site Name] home It printed home twice once

Re: [PHP] Include Problems

2003-07-24 Thread Eric Fleming
What is different about the code that you wrote except that you have the html being output by php? "Jay Blanchard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] [snip] <-incHeader.php--> [Site Name] home <-incHeader.php

RE: [PHP] Include Problems

2003-07-24 Thread Jay Blanchard
[snip] <-incHeader.php--> [Site Name] home <-incHeader.php--> [/snip] home"); } ?> HTH! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] ARRAY QUESTION

2003-07-24 Thread Chris W. Parker
Dale Hersh on Thursday, July 24, 2003 12:41 PM said: > Lets pretend I have this array called myStuff. If I add two elements > to myStuff and call the count function, I will get a result of 2. My > question is how do I re-initialize the array after adding elements so

Re: [PHP] Include Problems

2003-07-24 Thread Eric Fleming
Here is a snippet from the header file. You can see that I am just trying to determine what the value of the subnav variable is set to in order to determine which navigational link is bold. There are other places the variable is used, but you can get an idea based on what is below. Thanks for an

RE: [PHP] ARRAY QUESTION

2003-07-24 Thread Jay Blanchard
[snip] Lets pretend I have this array called myStuff. If I add two elements to myStuff and call the count function, I will get a result of 2. My question is how do I re-initialize the array after adding elements so when I call the count function on the array, I get a result of 0. [/snip] If you ad

[PHP] ARRAY QUESTION

2003-07-24 Thread Dale Hersh
I have a question regarding the count function. Here goes: Lets pretend I have this array called myStuff. If I add two elements to myStuff and call the count function, I will get a result of 2. My question is how do I re-initialize the array after adding elements so when I call the count function

Re: [PHP] Include Problems

2003-07-24 Thread Eric Fleming
Yeah, that is a problem, but I can't even print out the value of the subnav variable. It prints nothing when I try to print the variable. "Jason Giangrande" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Eric, If you want to check to see if $subnav is equal to "home" you want > to

Re: [PHP] Include Problems

2003-07-24 Thread Jason Giangrande
Eric, If you want to check to see if $subnav is equal to "home" you want to use == and not =. Perhaps this is your problem. Jason On Thu, 2003-07-24 at 15:35, Eric Fleming wrote: > Here is a snippet from the header file. You can see that I am just trying > to determine what the value of the sub

Re: [PHP] I'm really getting annoyed with PHP

2003-07-24 Thread Chris Shiflett
--- Pushpinder Singh Garcha <[EMAIL PROTECTED]> wrote: > Can somebody tell me why meta-refresh is not preferred to do > re-directs? Sure. > using headers in php requires that no output is sent to the browser I think this is what is causing you trouble, as this is incorrect. You can have output a

Re: [PHP] Include Problems

2003-07-24 Thread Eric Fleming
Here is a snippet from the header file. You can see that I am just trying to determine what the value of the subnav variable is set to in order to determine which navigational link is bold. There are other places the variable is used, but you can get an idea based on what is below. Thanks for an

[PHP] PHP Upgrade Problem

2003-07-24 Thread Shaun
Hi, The following code snippet is supposed to return the current page i am on and append some variables. $s = getenv('SCRIPT_NAME'); $link = "$s?month=$month&year=$year&goto_date=yes"; However, since upgrading to PHP version 4.3.2 it returns the following URL: execscriptdir/php.cgi?day=19&month

Re: [PHP] Include Problems

2003-07-24 Thread Jason Giangrande
Is the code you are trying to call $subnav from inside a function? If so you will need to tell the function that by using the global keyword (i.e. global $subnav;). Other than that the code you've shown looks right to me. Jason On Thu, 2003-07-24 at 13:55, Eric Fleming wrote: > I am having some

RE: [PHP] Include Problems

2003-07-24 Thread Jennifer Goodie
Without seeing what you have in your includes, it will be hard to determine where your scope is messed up. > $subnav = "home"; > include("incHeader.php"); > ?> > > > > The content would go here. > > > > > > Now, when I try to reference the subnav variable in the inHeader.php or > incFooter.p

RE: [PHP] Include Problems

2003-07-24 Thread Jay Blanchard
[snip] The content would go here. Now, when I try to reference the subnav variable in the inHeader.php or incFooter.php files, it comes up blank. I am basically trying to adjust the navigation on each page depending on the page I am on. I am just learning PHP, have programmed in ColdFusi

Re: [PHP] Include Problems

2003-07-24 Thread Jeff Harris
On Jul 24, 2003, "Eric Fleming" claimed that: |I am having some problems using variables in included files. Can someone |please look at my code below and see how I might accomplish what I am trying |to do? [snip] |Now, when I try to reference the subnav variable in the inHeader.php or |incFooter.

[PHP] Include Problems

2003-07-24 Thread Eric Fleming
I am having some problems using variables in included files. Can someone please look at my code below and see how I might accomplish what I am trying to do? The content would go here. Now, when I try to reference the subnav variable in the inHeader.php or incFooter.php files, it comes up

[PHP] Re: header & headers_sent BUG

2003-07-24 Thread Eric Fleming
I am having some problems using variables in included files. Can someone please look at my code below and see how I might accomplish what I am trying to do? The content would go here. Now, when I try to reference the subnav variable in the inHeader.php or incFooter.php files, it comes up

[PHP] Same pattern, ereg_replace catches it, ereg doesn't

2003-07-24 Thread Reuben D. Budiardja
Hi all, My guess is I miss something really dumb, but here is my problem. I want to use ereg to find some pattern, but it doesn't seems to work. The same pattern uses with ereg_replace, works fine and replaced the pattern. Here is my code, and the output: // OUTPUT : String is: This is a %AN

Re: [PHP] I'm really getting annoyed with PHP

2003-07-24 Thread Curt Zirzow
* Thus wrote Pushpinder Singh Garcha ([EMAIL PROTECTED]): > hello everyone, > > Can somebody tell me why meta-refresh is not preferred to do re-directs > ? > I know Javascript is browser dependent, so its undependable. Again, this has already been mentioned three (3) times in this thread alone,

Re: [PHP] I'm really getting annoyed with PHP

2003-07-24 Thread Curt Zirzow
* Thus wrote Jim Lucas ([EMAIL PROTECTED]): > can someone post the original source that he submitted. I was gone > yesterday and missed it. dont bother. his original post was in some other exhausted long threaded that resulted in nothing. Curt -- "I used to think I was indecisive, but now I'm

Re: [PHP] just looking for some opinions...

2003-07-24 Thread Curt Zirzow
* Thus wrote Dan Joseph ([EMAIL PROTECTED]): > Hi, > > > > Let's say I have a number: 1281924 > > > > > > The rules call for removing "1280+", meaning remove 128 and all 0's that > > > come after it, until you run into another number. > > > > > > In the end, it would leave 1924, and everything

RE: [PHP] just looking for some opinions...

2003-07-24 Thread Dan Joseph
Hi, > make me wonder why people are on the list if they all post answers > only back to the user. Probably just a case of hitting reply and not paying attention to it, or not realizing that it replies to the direct user. -Dan Joseph -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] I'm really getting annoyed with PHP

2003-07-24 Thread Chris W. Parker
Pushpinder Singh Garcha on Thursday, July 24, 2003 11:10 AM said: > hello everyone, > > Can somebody tell me why meta-refresh is not preferred to do > re-directs ? I think because it breaks the back button (explained in more detail later). > using headers in php r

Re: [PHP] just looking for some opinions...

2003-07-24 Thread Curt Zirzow
* Thus wrote Dan Joseph ([EMAIL PROTECTED]): > Thanks John, > > You and 4 others (3 private direct replies) all gave me the same > suggestion. I have no idea why I never think to use a regex... Appreciate > the thought! make me wonder why people are on the list if they all post answers on

RE: [PHP] just looking for some opinions...

2003-07-24 Thread Dan Joseph
Hi, > > Let's say I have a number: 1281924 > > > > The rules call for removing "1280+", meaning remove 128 and all 0's that > > come after it, until you run into another number. > > > > In the end, it would leave 1924, and everything else on the beginning > would > > be gone. > > $new_number =

Re: [PHP] I'm really getting annoyed with PHP

2003-07-24 Thread Pushpinder Singh Garcha
hello everyone, Can somebody tell me why meta-refresh is not preferred to do re-directs ? I know Javascript is browser dependent, so its undependable. using headers in php requires that no output is sent to the browser, what if the code logic requires that there is some output sent to the brow

Re: [PHP] command line or http browser?

2003-07-24 Thread Curt Zirzow
* Thus wrote ermelir ([EMAIL PROTECTED]): > thanks for your answer and sorry for my poor english ;) > in the list of returns values, there somes I can't determine if command line > or server values > * isapi IIS sapi > * nsapi Netscape sapi > * embed > * milter > * activescript > * java_servlet I

Re: [PHP] REVISED: PHP timeout doing fread from Apache Coyote

2003-07-24 Thread Curt Zirzow
Ok, I've got it working now, it looks like you have to make your script more complient to HTTP specs, it seems this server is very picky on how you read the data. which is very odd.. got it working at: http://zirzow.dyndns.org/php/fread/timeout.php funny though you should be able to do a straight

Re: [PHP] I'm really getting annoyed with PHP

2003-07-24 Thread Jim Lucas
can someone post the original source that he submitted. I was gone yesterday and missed it. Thanks Jim - Original Message - From: "Curt Zirzow" <[EMAIL PROTECTED]> To: "PHP" <[EMAIL PROTECTED]> Sent: Thursday, July 24, 2003 9:11 AM Subject: Re: [PHP] I'm really getting annoyed with PHP

  1   2   3   >