Re: [PHP] uksort wisdom

2002-02-04 Thread Edward van Bilderbeek - Bean IT
shouldn't it be: uksort($array_array,"cmp"); Greets, Edward - Original Message - From: "Sondra Russell" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 05, 2002 5:52 AM Subject: [PHP] uksort wisdom > Hi Guys! > > I'm looking to get a *deeper understanding* of ukso

RE: [PHP] whic OS is under?

2002-02-04 Thread Jerry Verhoef (UGBI)
http://www.php.net/manual/en/function.php-uname.php Take a look at the example there > -Original Message- > From: Ivo Stoykov [mailto:[EMAIL PROTECTED]] > Sent: Monday, February 04, 2002 2:45 PM > To: [EMAIL PROTECTED] > Subject: [PHP] whic OS is under? > > > Hi group: > > Is there a

Re: [PHP] Problem...header already sent by

2002-02-04 Thread Jason Wong
On Tuesday 05 February 2002 15:20, Peter wrote: > Hi Ryan, > Thanks for the examples. Okay, I deleted the other stuff and just put > this code and I get this from > my interpreter? Is this a setting problem? Are you running PHP as a CGI? If so, what you want to do cannot be done. See chapte

Re: [PHP] Problem...header already sent by

2002-02-04 Thread Ryan F. Bayhonan
It will work as expected Peter. So where do we go from here?? Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: Changes in Sessions (PHP Versions)

2002-02-04 Thread Travis Simpson
Sorry, I probably worded my question wrong. I am creating a 10 step (or so) form that is non-linear... The user enters all of their information and is able to go back and change information that they have filled in. So I have the form (POST) information set into session variables as soon as they

Re: [PHP] Problem...header already sent by

2002-02-04 Thread Peter
Hi Ryan, Thanks for the examples. Okay, I deleted the other stuff and just put this code and I get this from my interpreter? Is this a setting problem? Thanks, Peter * /* error message from the web server */ The server encountered an i

[PHP] Syntax high lighting

2002-02-04 Thread Jason Rennie
Hi all, A few months ago I saw a php class (?) for doing syntax high lighting of various programming languages. But I lost the link in a compter crash and now I cant find it again. does anybody know of a php script to do this sort of code highlighting similar to the show_source() function for ph

RE: [PHP] Problem...header already sent by

2002-02-04 Thread Peter Brown
If you include ob_start() at the beginning of the code this will turn output buffering on and hence enable you to send the header() tag at any line in the code. Peter -Original Message- From: Ryan F. Bayhonan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 5 February 2002 5:54 PM To: Peter; [

Re: [PHP] Problem...header already sent by

2002-02-04 Thread Ryan F. Bayhonan
Hello Peter. Good Day. Omitting does not solve the problem. I've experience this problem also before. I found out that the once causing the problem is when any data that has been sent to the client. I have listed some example below. Examples: All of these will cause a warning when header is cal

Re: [PHP] Problem...header already sent by

2002-02-04 Thread Peter Ruan
Okay, I deleted the other stuff and just put this code and I get this from my interpreter? Is this a setting problem? Thanks, Peter [Mon Feb 04 22:36:30 2002] [error] [client 127.0.0.1] malformed header from script. Bad header=HTTP/1.0 401 Unauthorized: /apache/php/php.exe "Niklas lampén" <[

Re: [PHP] Problem...header already sent by

2002-02-04 Thread Peter Ruan
Okay, I deleted the other stuff and just put this code and I get this from my interpreter? Is this a setting problem? Thanks, Peter "Niklas lampén" <[EMAIL PROTECTED]> wrote in message 007701c1ae09$1bde80b0$ba93c5c3@Niklas">news:007701c1ae09$1bde80b0$ba93c5c3@Niklas... > There can't be _anythin

[PHP] whic OS is under?

2002-02-04 Thread Ivo Stoykov
Hi group: Is there a way to guess which OS the script is running? I couldn't find anything in the manual about this. Thank you Ivo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problem...header already sent by

2002-02-04 Thread Peter Run
Okay, I deleted the other stuff and just put this code and I get this from my interpreter? Is this a setting problem? Thanks, Peter [Mon Feb 04 22:36:30 2002] [error] [client 127.0.0.1] malformed header from script. Bad header=HTTP/1.0 401 Unauthorized: /apache/php/php.exe "Martin Towell" <[

Re: [PHP] Collecting Meta Tags and Traping Errors

2002-02-04 Thread Analysis and Solutions
Hi Philip: "Philip J. Newman" wrote: > > $get_url = "http://www.philipsdomain.com/";; > $metatags = get_meta_tags($get_url,1); > echo $metatags['keywords']; > echo $metatags[description]; > ?> This code works perfectly for me, on an NT 4 machine using PHP 4.0.7 dev. Oh, perfectly, spare the f

[PHP] Re: PHP Classes and Sessions

2002-02-04 Thread Yasuo Ohgaki
Php-List wrote: > What is the proper way to transfer class properties through-out my pages... > > let's say i have a ShoppingCart Class and i have methods like > addToCart(id, qty) and deleteFromCart(id) > also i have properties like CartItems("id" => array(), "qty"=> array()) > > this is what i

Re: [PHP] Collecting Meta Tags and Traping Errors

2002-02-04 Thread Philip J. Newman
Warning: get_meta_tags("http://www.philipsdomain.com/";) - No error in d:\website\myphp\test01.php on line 5 even with the changes i get the error http://www.philipsdomain.com/";; $metatags = get_meta_tags($get_url,1); echo $metatags['keywords']; echo $metatags[description]; ?> - Origi

RE: [PHP] Accessing Oracle DBMS_OUTPUT from PHP

2002-02-04 Thread Rudolf Visagie
Hi, I don't think PHP can pick up responses from the DBMS_OUTPUT object; it only picks up raised errors. Speaking under correction though. -Original Message- From: Robert Mena [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 05, 2002 1:29 AM To: php mailing list Subject: [PHP] Accessin

Re: [PHP] Redirect problem.... UGH!!

2002-02-04 Thread Analysis and Solutions
Hi Robert: > Perhaps you can help, since my posts don't seem to be making it to the > newsgroup. > > I have been trying to use readfile() or header() to load another PHP... Check the archives: http://groups.google.com/groups?hl=en&group=php.general Good luck, --Dan -- PHP scr

Re: [PHP] Problem...header already sent by

2002-02-04 Thread Peter
Hi Ryan, I tried and took the tags out and I still get the same messaage. Why? Thanks, Peter > Hello Peter. > > I discribe my reply below: > > > ** > > Warning: Cannot add header information - headers already sent by (output > > started at C:\apache\htdocs\proj\sport

Re: [PHP] Collecting Meta Tags and Traping Errors

2002-02-04 Thread Analysis and Solutions
Hi Philip: Several problems... > $get_url = "http://www.philipsdomain.com";; Put a "/" on the end there. Without it, you're not really hitting a page, but rather a redirect to a page. > $metatags= get_meta_tags($get_url,1); > > echo "$metatags[Keywords]"; The manual indicates that the key

Re: [PHP] Ports

2002-02-04 Thread Evan Nemerson
There are 2^16 ports. The networkice page just lists the ports that exploitable services run on, and would be ineffective for a port scan. Scanning all 2^16 ports, or even the first 49151, would be incredibly inefficient. Scanning all the IANA ports would be rather inefficient and insufficien

RE: [PHP] Problem...header already sent by

2002-02-04 Thread Martin Towell
you have : 24. header("www-Authenticate: Basic realm='Private'"); 25. header("HTTP/1.0 401 Unauthrized"); I have (and this works) Header ("WWW-authenticate: Basic realm=\"$blah\""); Header ("HTTP/1.0 401 Unauthorized"); * "Unauthrized" should be "Unauthorized" - missing "o"

RE: [PHP] Problem...header already sent by

2002-02-04 Thread Niklas Lampén
There can't be _anything_ before headers. Even a single space and/or linebreak causes an error. Niklas -Original Message- From: Peter Ruan [mailto:[EMAIL PROTECTED]] Sent: 5. helmikuuta 2002 7:42 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] Problem...header already sent

Re: [PHP] Problem...header already sent by

2002-02-04 Thread Peter Ruan
I tried it w/o the tag and I get the BAD Header message. -Peter >From: Jeff Sheltren <[EMAIL PROTECTED]> >To: "Peter Run" <[EMAIL PROTECTED]>,[EMAIL PROTECTED] >Subject: Re: [PHP] Problem...header already sent by >Date: Mon, 04 Feb 2002 21:30:42 -0800 > >You can't send anything before you send

RE: [PHP] PHP Classes and Sessions

2002-02-04 Thread Martin Towell
i believe you're meant to serialise objects and then register the serialised version?? Don't quote me on that, never used sessions, but I didn't read/hear it somewhere Martin -Original Message- From: PHP-List [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 05, 2002 4:30 PM To: [EMAIL

Re: [PHP] Problem...header already sent by

2002-02-04 Thread Ryan F. Bayhonan
Hello Peter. I discribe my reply below: > ** > Warning: Cannot add header information - headers already sent by (output > started at C:\apache\htdocs\proj\sports\phps\verify.php:2) in > C:\apache\htdocs\proj\sports\phps\verify.php on line 26 > ***

Re: [PHP] Problem...header already sent by

2002-02-04 Thread Jeff Sheltren
You can't send anything before you send headers... the "html" tag is messing you up I believe. Jeff At 08:24 PM 2/4/2002 -0800, Peter Run wrote: >Hi, > I get the warning message (see below), whenever I try anything with >authentication/session with PHP. This is tried under Windows (PHPTriad

[PHP] PHP Classes and Sessions

2002-02-04 Thread PHP-List
What is the proper way to transfer class properties through-out my pages... let's say i have a ShoppingCart Class and i have methods like addToCart(id, qty) and deleteFromCart(id) also i have properties like CartItems("id" => array(), "qty"=> array()) this is what i do... //when the user enters

[PHP] Problem...header already sent by

2002-02-04 Thread Peter Run
Hi, I get the warning message (see below), whenever I try anything with authentication/session with PHP. This is tried under Windows (PHPTriad). I get the same message with my Linux drive as well. I appreciate your help. Please reply here and cc: to my personal email [EMAIL PROTECTED] Thanks

Re: [PHP] IP based redirection

2002-02-04 Thread J.F.Kishor
Hi, This could be done by having a conf file through which you could get the IP address of the machine from where the request is come. ie.. You can include the above conf file in other scripts of yours and you and do a check according to your need, and display pages

Re: [PHP] Can PHP read system installation?

2002-02-04 Thread Tyler Longren
Well, the OSTYPE variable contains some useful info. As do the LC_ALL, HOSTTYPE, MACHTYPE, and SERVER_SOFTWARE variables. Check php_info() for more useful variables. Tyler - Original Message - From: "Ryan F. Bayhonan" <[EMAIL PROTECTED]> To: "Tyler Longren" <[EMAIL PROTECTED]>; <[EMAIL

Re: [PHP] Can PHP read system installation?

2002-02-04 Thread Ryan F. Bayhonan
What if the pc runs not on linux let say windows, how do i do it? Thanks. Ryan - Original Message - From: "Tyler Longren" <[EMAIL PROTECTED]> To: "Ryan F. Bayhonan" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, February 05, 2002 12:50 PM Subject: Re: [PHP] Can PHP read system

Re: [PHP] Can PHP read system installation?

2002-02-04 Thread Tyler Longren
Well, if you know the box is running Linux, you can get the kernel info by doing this: system("uname -a"); Tyler - Original Message - From: "Ryan F. Bayhonan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 04, 2002 10:51 PM Subject: [PHP] Can PHP read system installat

Re: [PHP] Limit 15 where "Newest"

2002-02-04 Thread Tyler Longren
$sql="select author, title, chapter from table order by date DESC limit 15"; That's how you'd go about getting the 15 most recent table entries. The "next 15" thing will require a bit more though. Tyler - Original Message - From: "WIll" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent:

[PHP] Can PHP read system installation?

2002-02-04 Thread Ryan F. Bayhonan
I just would like to know if PHP can sort of identify all the software installed in a given computer (e.g. OS ). If PHP can what particular function to use. Thanks. Regards, Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Picking a random record from a database.

2002-02-04 Thread Tyler Longren
SELECT * FROM table ORDER BY rand() LIMIT 1; Tyler - Original Message - From: "Philip J. Newman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 04, 2002 10:37 PM Subject: [PHP] Picking a random record from a database. I have a database of Jokes. I have 30 Jokes I

[PHP] Limit 15 where "Newest"

2002-02-04 Thread WIll
I am trying to write a limit statement for my database. I want to say something like $sql="select author, title, chapter from database where last_update = "Newest" order by date limit 15"; My question is how do you say " Newest" in php MySQL? And how do you put t link on the bottom of the page

[PHP] Picking a random record from a database.

2002-02-04 Thread Philip J. Newman
I have a database of Jokes. I have 30 Jokes I would like (each time the page is loaded) to have a random Joke appear. Can anyone help. Philip J. Newman Philip's Domain - Internet Project. http://www.philipsdomain.com/ [EMAIL PROTECTED]

Re: [PHP] breaking out of two loops

2002-02-04 Thread Daniel Grace
"Lars Torben Wilson" <[EMAIL PROTECTED]> wrote in message 1012867253.2248.185.camel@ali">news:1012867253.2248.185.camel@ali... > On Mon, 2002-02-04 at 15:54, Erik Price wrote: > > Short and sweet: > > > > If I have an "if" statement inside a "switch" statement, how can I > > "break" out of both bl

Re: [PHP] Reading log files.

2002-02-04 Thread Lars Torben Wilson
On Mon, 2002-02-04 at 19:22, Jared wrote: > I am creating a script that reads "Radius" log files and prints them to > the browser. I want the User to be able to specify the Number of lines > they want to see beginning at the end of the file and going up instead > of reading the lines at the begin

[PHP] Collecting Meta Tags and Traping Errors

2002-02-04 Thread Philip J. Newman
I'm trying to get the meta tags. http://www.philipsdomain.com";; $metatags= get_meta_tags($get_url,1); echo "$metatags[Keywords]"; echo ""; echo "$metatags[Description]"; ?> This is the error I get Warning: get_meta_tags("http://www.philipsdomain.com";) - No error in d:\website\myphp\test1.

Re: [PHP] Templating

2002-02-04 Thread Lars Torben Wilson
On Mon, 2002-02-04 at 18:20, Trent Gillespie wrote: > I have a template file that I would like to add the content to no write over it. I >want the string $content to be added to my template instead of writing over it. Here >is my current script > > $tutorial = "template.php"; > > > $fp = fope

Re: [PHP] Reading log files.

2002-02-04 Thread Jeff Sheltren
Well, the first thing that comes to mind would be using the UNIX tail command. Of course, this does you no good if you're on windows, but I'm not sure if that is the case. if $n is the number of lines specified by the user, then the code would be like: System("tail -$n logfile"); Jeff At 1

Re: [PHP] Grabing Meta Tag information.

2002-02-04 Thread Lars Torben Wilson
On Mon, 2002-02-04 at 19:21, Philip J. Newman wrote: > Is someone able to point me into the right direction. > > I have a disire to make a database of hyperlinks. At the moment the process is, >some what slow, as I have to input all the data by hand. I would like some way that >I can just put

[PHP] Reading log files.

2002-02-04 Thread Jared
I am creating a script that reads "Radius" log files and prints them to the browser. I want the User to be able to specify the Number of lines they want to see beginning at the end of the file and going up instead of reading the lines at the beginning (Which I can do). Does anyone have an idea o

[PHP] Grabing Meta Tag information.

2002-02-04 Thread Philip J. Newman
Is someone able to point me into the right direction. I have a disire to make a database of hyperlinks. At the moment the process is, some what slow, as I have to input all the data by hand. I would like some way that I can just put the URL in and it fetches the META TAG information. If you

[PHP] Templating

2002-02-04 Thread Trent Gillespie
I have a template file that I would like to add the content to no write over it. I want the string $content to be added to my template instead of writing over it. Here is my current script $tutorial = "template.php"; $fp = fopen("$tutorial","w"); fputs($fp, $content, strlen($content)); If y

[PHP] Re: Changes in Sessions (PHP Versions)

2002-02-04 Thread Yasuo Ohgaki
Travis Simpson wrote: > Hey, > > I am just wondering if there were any changes done to the session > "engine" or settings between PHP 4.0.6 and 4.1.1. > > I have been getting nothing but grief from 4.0.6 and 4.1.1 seems to work > fine. > What did work with 4.0.6 and what didn't with 4.1.1? I

[PHP] Re: PHP v4.1.1 WDDX problems

2002-02-04 Thread Yasuo Ohgaki
Adam Cassar wrote: > Hi All, > > I am attempting to compiler php v4.1.1 as a fast cgi runner with WDDX. > > I get all the way through the compile and it get's stuck at: > > ./.libs/libphp4.a(wddx.o): In function `php_wddx_push_element': > /usr/local/src/php-4.1.1/ext/wddx/wddx.c:780: undefined

[PHP] PHP v4.1.1 WDDX problems

2002-02-04 Thread Adam Cassar
Hi All, I am attempting to compiler php v4.1.1 as a fast cgi runner with WDDX. I get all the way through the compile and it get's stuck at: ./.libs/libphp4.a(wddx.o): In function `php_wddx_push_element': /usr/local/src/php-4.1.1/ext/wddx/wddx.c:780: undefined reference to `xml_utf8_decode' ./.

Re: [PHP] Ports

2002-02-04 Thread Steve Edberg
Well, a quick google - http://www.google.com/search?hl=en&q=tcp+ports - gave me: http://www.networkice.com/advice/Exploits/Ports/ and http://www.iana.org/assignments/port-numbers This would presumably be the authoritative source; the answer to your question

[PHP] testing for cookies on the server side (again, still can't get my head around it)

2002-02-04 Thread Justin French
Hi all, Forgive me for re-posting this topic, but I still can't get my head around the right way to work with sessions/cookies, whilst providing some sort of server side testing for people without cookies. I do not want to do it client side (javascript etc). I've got a block of code that I can

Re: [PHP] Sockets

2002-02-04 Thread Mike Frazer
As I said, you're probably better off with fsockopen() anyway. Remember, the oure socket functions are experimental (or at least were last time I checked that part of the manual) and you never really know with experimental things. As well, they may change at any time, rendering your scripts usel

Re: [PHP] OS X cersion coming soon...(was Re: [PHP] Zend Studio)

2002-02-04 Thread Erik Price
On Monday, February 4, 2002, at 07:23 PM, Michael Zornek wrote: >> http://www.zend.com/store/products/zend-studio.php is pretty >> descriptive, >> and you can try it out for free... > > Anyone interested in an OS X version hold tight, their PR people tell > me it > should be out in 30 days or

Re: [PHP] strtotime problem

2002-02-04 Thread DL Neil
Torben, > > > No offense, but in TFM (which you have of course R), follow the 'Date > > > Input Formats' link to: > > > > > >http://www.gnu.org/manual/tar-1.12/html_chapter/tar_7.html > > > > > > You will find this sentence: > > > > > >The construct 'month/day/year', popular in the United

[PHP] OS X cersion coming soon...(was Re: [PHP] Zend Studio)

2002-02-04 Thread Michael Zornek
Twas 2/4/02 5:49 PM, when "Zeev Suraski" <[EMAIL PROTECTED]> said: > http://www.zend.com/store/products/zend-studio.php is pretty descriptive, > and you can try it out for free... Anyone interested in an OS X version hold tight, their PR people tell me it should be out in 30 days or so. Mike

[PHP] Re: Installing PHP 4.1.1 on Redhat w/ RPMs

2002-02-04 Thread J Smith
Personally, I'd recommend compiling from source it is at all possible. You'll likely get improved performance, and it's nice to know you can set things up exactly as you see fit. Another thing you could try if that seems daunting or you need to install the RPMs onto several machines that all

[PHP] Ports

2002-02-04 Thread Liam MacKenzie
Just a quick question... What is the highest port possible? I want to make a PHP port scanner, but need to know the portrange. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] breaking out of two loops

2002-02-04 Thread Lars Torben Wilson
On Mon, 2002-02-04 at 15:54, Erik Price wrote: > Short and sweet: > > If I have an "if" statement inside a "switch" statement, how can I > "break" out of both blocks that I am in? Will one "break" end > everything? Or should I use one for each level deep that I am? > > > Erik >From the man

[PHP] breaking out of two loops

2002-02-04 Thread Erik Price
Short and sweet: If I have an "if" statement inside a "switch" statement, how can I "break" out of both blocks that I am in? Will one "break" end everything? Or should I use one for each level deep that I am? Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECT

[PHP] Re: Yet another regex question

2002-02-04 Thread liljim
Hello again, > This is excellent. If you don't mind digging out your functions, I'd much > appreciate it... I'll have a look tomorrow. > The previous question was for alpha only, no numeric ...names dont have > numbers, but addresses usually do. Alright, well: [a-z] matches a through z [A-Z]

[PHP] RE: Yet another regex question

2002-02-04 Thread Simon H
Thanks James This is excellent. If you don't mind digging out your functions, I'd much appreciate it... > Hello, Simon > > "Simon H" wrote in message... > > I'm trying to validate an input form, for database INSERT/UPDATE. I'm > > looking for a couple of Techniques and I cant seem to find

[PHP] Accessing Oracle DBMS_OUTPUT from PHP

2002-02-04 Thread Robert Mena
Hi, I have developed some php scripts to interact to an oracle db using a set of predefined stored procedures (which I did not write). Those procedures are called either by a desktop delphi application and my php scripts (linux+apache+mod_php...). I'd like to know how can I access the contents

Re: [PHP] strtotime problem

2002-02-04 Thread Lars Torben Wilson
On Mon, 2002-02-04 at 15:05, DL Neil wrote: > Torben, > > No offense, but in TFM (which you have of course R), follow the 'Date > > Input Formats' link to: > > > >http://www.gnu.org/manual/tar-1.12/html_chapter/tar_7.html > > > > You will find this sentence: > > > >The construct 'month/day

[PHP] Re: problems using an elsif statement on apache php 4.06

2002-02-04 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > I have two php scripts being included on my website. > > one is a switch statement used for page navigation, and the other is an > elseif used to display different html code based on the value of a variable > (different on each page) >

[PHP] Re: HELP! I was just wondering

2002-02-04 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > I've been playing around with php alot lately and started to scheme ways to > use it-lol > > so heres what I tried to do: > > first there is a switch statement: > switch($page) { > > case "refer": require("some_file.php"); > exit; >

[PHP] Re: HTTP Error 405 using POST method

2002-02-04 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Hi. I'm learning PHP3 on an IIS 4.0 box and I started by trying out this > simple HTML form. The form lets the user input his/her name, email address, > and select whether he/she likes oranges or apples and sends the data to a > .php fil

[PHP] Re: Yet another regex question

2002-02-04 Thread liljim
Hello, Simon "Simon H" wrote in message... > I'm trying to validate an input form, for database INSERT/UPDATE. I'm > looking for a couple of Techniques and I cant seem to find examples > anywhere: > > 1. Validate Alpha Text with spaces, such as NAME, CITY, STATE, but limit the > length of ea

Re: [PHP] strtotime problem

2002-02-04 Thread DL Neil
Torben, > > toni, > > > > > $date1 = "10/12/2002"; > > > $date1 = date("D M j Y", strtotime($date1)); > > > $date2 = date("D M j Y"); > > > $date3 = date("D M j Y", $date1); > > > print $date1.""; > > > print $date2.""; > > > print $date3.""; > > > > > > The code above gives me the following outp

Re: [PHP] uksort wisdom

2002-02-04 Thread Lars Torben Wilson
On Mon, 2002-02-04 at 20:52, Sondra Russell wrote: > Hi Guys! > > I'm looking to get a *deeper understanding* of uksort. My quandry: > > $array[listing1][name] = "listing 1"; > $array[listing1][premiere] = ""; > $array[listing2][name] = "listing 2"; > $array[listing2][premiere] = ""; > $array[l

Re: [PHP] Sockets

2002-02-04 Thread Evan Nemerson
That's the first thing I tried- doesn't work with the lower-level sockets. (the socket_* functions) Right now I have an fsockopen version, and I'm commenting out the socket version- hopefully I'll be able to get it to work later. Thanks, but do you have any other ideas??? -Evan On Mond

[PHP] Changes in Sessions (PHP Versions)

2002-02-04 Thread Travis Simpson
Hey, I am just wondering if there were any changes done to the session "engine" or settings between PHP 4.0.6 and 4.1.1. I have been getting nothing but grief from 4.0.6 and 4.1.1 seems to work fine. Any help would be MUCH appreciated. Thanks, -Travis Oh, if this isn't the right list to post

Re: [PHP] Zend Studio

2002-02-04 Thread Zeev Suraski
At 06:44 PM 2/4/2002, Alex Shi wrote: >Hi, > >After a long time absent from Zend I came across to it today just for >any new articles. To my surprise they changed their home page and >it seems like they are promoting their Zend Studio 2.0. I have no idea >what it is. Is it like a Visual Studio? Do

Re: [PHP] sockets

2002-02-04 Thread Evan Nemerson
You have two options. You could use cURL, or you could do a post request by hand. I reccomend the first, but if you need to do it by hand, you'll need to read up on the HTTP/1.1 RFC (2616, if memory serves, but im not 100% on that one). NOTE: With the script i sent you, if you need to send mor

Re: [PHP] strtotime problem

2002-02-04 Thread Lars Torben Wilson
On Tue, 2002-02-05 at 14:11, DL Neil wrote: > toni, > > > $date1 = "10/12/2002"; > > $date1 = date("D M j Y", strtotime($date1)); > > $date2 = date("D M j Y"); > > $date3 = date("D M j Y", $date1); > > print $date1.""; > > print $date2.""; > > print $date3.""; > > > > The code above gives me

Re: [PHP] general question...

2002-02-04 Thread Erik Price
On Wednesday, January 30, 2002, at 03:32 AM, jas wrote: > Using php3 is there a way to have a page only be access if the user is > coming from another page? I don't quite know how to word what I am > thinking > but for instance... > Form <-- page that contains a form to submit an email addres

Re: [PHP] strtotime problem

2002-02-04 Thread DL Neil
toni, > $date1 = "10/12/2002"; > $date1 = date("D M j Y", strtotime($date1)); > $date2 = date("D M j Y"); > $date3 = date("D M j Y", $date1); > print $date1.""; > print $date2.""; > print $date3.""; > > The code above gives me the following output: > > Fri Oct 11 2002 > Mon Feb 4 2002 > Wed

[PHP] Re: PEAR IMAGICK [WAS-> RANT: Why doesn't PHP have built-in support for dynamic]

2002-02-04 Thread Christian Stocker
In <[EMAIL PROTECTED]>, Michael Kimsal wrote: > Christian Stocker wrote: > > >>>see (which is how I labelled it above) and what I'm capable of actually >>>contributing. >>>Doing C-code PHP extensions is beyond my capabilities, so I make do >>>with what others contribute. Simply because somethi

RE: [PHP] Oddity

2002-02-04 Thread Andrew Chase
You can also do \n"; } ?> (mysql_fetch_array uses MYSQL_BOTH for the second argument by default, which returns an array using both numeric and associative keys - that's why you were getting double results. :)) Per the manual: --

Re: [PHP] strtotime problem

2002-02-04 Thread Lars Torben Wilson
On Mon, 2002-02-04 at 13:40, toni baker wrote: > $date1 = "10/12/2002"; > $date1 = date("D M j Y", strtotime($date1)); > $date2 = date("D M j Y"); > $date3 = date("D M j Y", $date1); > print $date1.""; > print $date2.""; > print $date3.""; > > The code above gives me the following output: >

[PHP] Can anyone jog my memory on HTTP_REFERER & Javascript "location:replace"?

2002-02-04 Thread Scott Fletcher
Hi! I had found a way around the problem and it work, but when I enabled the web security features, it messed up. So, with some debugging and I found the problem and I'm not sure how to find a way around it. You see I use page1.php to do certain features but the problem is that PH

Re: [PHP] General question...

2002-02-04 Thread Bogdan Stancescu
You just need to take a look at HTTP_REFERER - just search for it on php.net, I'm sure you'll find relevant data. Bogdan jas wrote: > Ok I think I know what I need to learn... how can I do a redirect based on > whether or not a user came from a certain page? For example... if a user > comes fr

Re: [PHP] Re: General question...

2002-02-04 Thread Lars Torben Wilson
On Mon, 2002-02-04 at 13:52, Philip Hallstrom wrote: > Something along the lines of: > > if( ereg("/confirm.php", $_SERVER['HTTP_REFERER']) ) { > Header("Location: thanks.php"); > exit; > }else { > Header("Location: index.php"); > exit; > } > > You might want to do some

[PHP] Search

2002-02-04 Thread TV Karthick Kumar
Hi all, Is there any other way to search all the html pages in a website with a given keyword and link to those pages, wihout using the udmsearch and mnogo... if so, please let me know... Thanks. TIA, Karthick _ Do You Yahoo!?

[PHP] Apache/PHP get stuck when using form "POST".

2002-02-04 Thread Scott Fletcher
Hi! I have an interesting problem. I am wondering if it is related to PHP or Apache. So, I need your feedback on this one. What happen is when I use the HTML Form "POST" and submitted it. It worked fine and getting to the 2nd page. The 2nd page include some PHP script and a modem script.

Re: [PHP] Email Attachment

2002-02-04 Thread Mauricio Sthandier
Thanxs... I couldn't use your script (because of my lack of experiencie maybe) but you gave me a very good hint about what to look for. I sent an attachment (with a class located in this URL : http://renoir.vill.edu/~ylee/mailfile.txt), but that wasn't what my boss was thinking of. (Now he tells !

[PHP] uksort wisdom

2002-02-04 Thread Sondra Russell
Hi Guys! I'm looking to get a *deeper understanding* of uksort. My quandry: $array[listing1][name] = "listing 1"; $array[listing1][premiere] = ""; $array[listing2][name] = "listing 2"; $array[listing2][premiere] = ""; $array[listing3][name] = "listing 3"; $array[listing3][premiere] = "yes"; I'

[PHP] Re: General question...

2002-02-04 Thread Philip Hallstrom
Something along the lines of: if( ereg("/confirm.php", $_SERVER['HTTP_REFERER']) ) { Header("Location: thanks.php"); exit; }else { Header("Location: index.php"); exit; } You might want to do some additional checking as well.. the above would match both "/path/to/

[PHP] General question...

2002-02-04 Thread jas
Ok I think I know what I need to learn... how can I do a redirect based on whether or not a user came from a certain page? For example... if a user comes from a page called confirm.php then it takes them to a page called thanks.php and if the user came from a different server or typed the url dir

Re: [PHP] PHP and Apache authorization: how to logout. Help!

2002-02-04 Thread LaserJetter
I read somewhere that if you type an underscore it clears authentication info. I haven't tried it and it seems obscure but its worth a try! LJ "Frederick L. Steinkopf" <[EMAIL PROTECTED]> wrote in message 018201c1ac67$c4d9c6a0$851a88ac@frederis">news:018201c1ac67$c4d9c6a0$851a88ac@frederis... >

[PHP] strtotime problem

2002-02-04 Thread toni baker
$date1 = "10/12/2002"; $date1 = date("D M j Y", strtotime($date1)); $date2 = date("D M j Y"); $date3 = date("D M j Y", $date1); print $date1.""; print $date2.""; print $date3.""; The code above gives me the following output: Fri Oct 11 2002 Mon Feb 4 2002 Wed Dec 31 1969 Is the strtotime()

Re: [PHP] date problems

2002-02-04 Thread Edward van Bilderbeek - Bean IT
i think it is the strtotime() function that gives the trouble... why don't you try mktime() ? > sounds like it might have something to do with leap year. > > Jim Lucas > - Original Message - > From: "toni baker" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, February 04,

[PHP] Re: PEAR IMAGICK [WAS-> RANT: Why doesn't PHP have built-in support for dynamic]

2002-02-04 Thread Michael Kimsal
Christian Stocker wrote: >>see (which is how I labelled it above) and what I'm capable of actually >>contributing. >>Doing C-code PHP extensions is beyond my capabilities, so I make do with >>what others contribute. Simply because something is opensource doesn't >>mean everyone has equal talent

Re: [PHP] date problems

2002-02-04 Thread Jim Lucas [php]
sounds like it might have something to do with leap year. Jim Lucas - Original Message - From: "toni baker" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 04, 2002 12:03 PM Subject: [PHP] date problems > $date1 = "12/12/2001"; > $date1 = date("D M j Y", strtotime($d

[PHP] HELP! I was just wondering

2002-02-04 Thread cyberskydive
I've been playing around with php alot lately and started to scheme ways to use it-lol so heres what I tried to do: first there is a switch statement: On that some_file.php I have an elseif like so: Then on the page where thee are required I require them at the top of the page. and I have th

[PHP] javascript delete

2002-02-04 Thread Mostafa Al-Mallawani
hi, i know this question's been asked before but i can't find the email...how do i do the delete link that pops up a message box with the information of the deleted entry using php? like the one in phpmyadmin 2.2.3. thanks. :)

[PHP] problem with mail()/html/outlook

2002-02-04 Thread ryan-php
I'm trying to send an html email via a php script, but I'm running into a rather bizarre problem. I can get it to send the email just fine, but when it is read on windows Outlook (macintosh outlook express are unaffected) clients, it strips two characters after any '=' signs, so it plays havoc

Re: [PHP] general question...

2002-02-04 Thread Tyler Longren
if (eregi("page_user_has_to_come_from",$HTTP_REFERER) != "") { print "You didn't come from the right page, please go back."; } else { print "Congrats, you came from the right page!"; } Tyler - Original Message - From: "jas" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednes

[PHP] Large File Uploads

2002-02-04 Thread Ben Sinclair
I'm having some trouble with a file upload script that runs over SSL. It seems that the file is kept in memory while being uploaded and then flushed to disk as a temp file. This is fine, but when you are dealing with large files, you can run out of memory. Apache (or PHP?) also doesn't seem to rec

[PHP] general question...

2002-02-04 Thread jas
Using php3 is there a way to have a page only be access if the user is coming from another page? I don't quite know how to word what I am thinking but for instance... Form <-- page that contains a form to submit an email address to a mailing list Confirm <-- page that confirms the users email add

  1   2   >