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
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
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
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
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
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
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
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; [
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
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" <[
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
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
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" <[
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-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
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
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
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
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
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
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
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"
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
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
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
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
> ***
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
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
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
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
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
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
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
$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:
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
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
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
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]
"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
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
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.
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
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
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
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
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
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
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
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
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'
./.
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
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
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
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
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
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
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
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
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
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
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]
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
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
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
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)
>
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;
>
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
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
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
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
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
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
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
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
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
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
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
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
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:
--
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:
>
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
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
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
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!?
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.
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 !
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'
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/
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
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...
>
$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()
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,
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
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
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
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. :)
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
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
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
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 - 100 of 186 matches
Mail list logo