--- Analysis & Solutions
<[EMAIL PROTECTED]> wrote: > Olav:
> Perhaps because you're ignoring what I said.
> This will generate an error message if there's no
> player variable in the
> request string and you have error reporting set high
> enough. Evaluate
> for "empty($_GET['player'])"
>
I modified my example against user comment dated "01-Mar-2002 11:52" and
I got the desired output.
Thanks
Martin Towell wrote:
>Have a look at this page
>
>http://www.php.net/manual/en/function.set-error-handler.php
>
>and at the user comments dated: "09-Sep-2001 03:16" and "01-Mar-2002 11:52"
Have a look at this page
http://www.php.net/manual/en/function.set-error-handler.php
and at the user comments dated: "09-Sep-2001 03:16" and "01-Mar-2002 11:52"
these might help you
Martin
-Original Message-
From: Gerard Samuel [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 16, 2002
2 things that are foriegn to me. Im trying to construct a class to
handle errors.
I started out trying to make it recognise errors in the first place and
then expand, but Im having difficulty.
class.php
errorhandler);
}
function errorhandler($type, $str, $file, $line)
{
sw
Austin Marshall wrote:
> Evan Nemerson wrote:
>
>> I need to generate every possible combination of the the values in an
>> array. For example, if...
>>
>> $array = Array("A", "B", "C");
>>
>> I want to be able to do something like
>>
>> print_r(magic_function($array));
>>
>> which would output
Evan Nemerson wrote:
> I need to generate every possible combination of the the values in an array.
> For example, if...
>
> $array = Array("A", "B", "C");
>
> I want to be able to do something like
>
> print_r(magic_function($array));
>
> which would output
>
> Array
> (
> [0] => "ABC
Hi
What I do is use the function GetImageSize(), if that returns x and/or y =
0 it probably isn't an image file and dump it.
Tom
At 05:06 AM 16/05/2002, you wrote:
>On Wed, 15 May 2002, Andre Dubuc wrote:
> > Actually, I figured out how to do it: a combination of checking:
> > if ( $_REQUEST['p
recursive function, passing back in the array, minus the current position
and current combination. when array is empty, use current combination.
um... something like (but not tested)
function comby($arr, $comb = "")
{
$num = count($arr);
if ($num == 0)
{
echo $comb;
return;
}
> /* This page receives and handles the data generated
> by "form.html". */
> print "Your first name is $FirstName.\n";
> print "Your last name is $LastName.\n";
> print "Your E-mail Address is $Email.\n";
> print "This is what you had to say:\n
> $Comments\n";
More than likely you're using 4.2.0
nononononon
www.vectorstar.net
EXCELLENT hosting and it's free!
- Original Message -
From: "Salman Ahmed" <[EMAIL PROTECTED]>
To: "PHP List" <[EMAIL PROTECTED]>
Sent: Thursday, May 16, 2002 12:05 PM
Subject: [PHP] Plz dont hate me for this
Hi,
I am also PHP lover plz dont hate me f
I need to generate every possible combination of the the values in an array.
For example, if...
$array = Array("A", "B", "C");
I want to be able to do something like
print_r(magic_function($array));
which would output
Array
(
[0] => "ABC"
[1] => "ACB"
[2] => "BAC"
Are you using post or get? I imagine you'd run into some limitations
using get.
On Tue, 14 May 2002 12:33:22 +1200, Enrique Vadillo wrote:
> Hi,
>
> I'm not sure if this is purely a PHP problem but here it goes:
>
> i have a form that sends text data to a PHP script, i have some textarea
> fi
On Wed, 15 May 2002, k spellman wrote:
> /* This page receives and handles the data generated
> by "form.html". */
> print "Your first name is $FirstName.\n";
> print "Your last name is $LastName.\n";
> print "Your E-mail Address is $Email.\n";
> print "This is what you had to say:\n
> $Comments\n
The code for form.html is
HTML Form
First Name
Last Name
E-mail Address
Comments
and the code for the HandleForm.php is
Form Results
\n";
print "Your last name is $LastName.\n";
print "Your E-mail Address is $Email.\n";
print "This is what you had to say:\n
$Comments\n";
?>
The code for form.html is
HTML Form
First Name
Last Name
E-mail Address
Comments
and the code for the HandleForm.php is
Form Results
\n";
print "Your last name is $LastName.\n";
print "Your E-mail Address is $Email.\n";
print "This is what you had to say:\n
$Comments\n";
?>
On Wed, 15 May 2002, k spellman wrote:
> Just opened a "How to" book today on PHP. Already
> having problems and wouldn't mind an extra set of
> eyes. My basic form does not produce results.Any
> thoughts on this one?
>
> http://www.hermengoode.com/php/form.html
Well, you don't show your source
Just opened a "How to" book today on PHP. Already
having problems and wouldn't mind an extra set of
eyes. My basic form does not produce results.Any
thoughts on this one?
http://www.hermengoode.com/php/form.html
Thanks!
spellman
__
Do You Yahoo!?
On Wed, May 15, 2002 at 09:27:55PM -0400, Jule wrote:
>
>
>
> when it comes back and goes into the loop. Only the first name from
> $quiz[owner_name] is left, so where it used to be John Doe, is now only Joe.
You're missing quotes around the attribute values. Thus, the system is
assuming onl
On Wed, 15 May 2002, Jule wrote:
>
>
> but now here's the problem:
> when it comes back and goes into the loop. Only the first name from
> $quiz[owner_name] is left, so where it used to be John Doe, is now only Joe.
> how do i fix this?
Your HTML is invalid. You have to quote non-numeric valu
You need double quotes around the value. E.g.,
- Original Message -
From: "Jule" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 15, 2002 6:27 PM
Subject: [PHP] method=post problem
Hey guys and gals,
i have a form with method=post which sends
to the same page,
hey ,
there is one that I have used.
http://free4sure.com/free-hosting.html
you can give a try here..
Vinod
--
Vinod Palan A
Calypso Technology, Inc.
[EMAIL PROTECTED]
(415) 817-2463 Phone
"Salman Ahmed" <[EMAIL PROTECTED]> wrote in message
001c01c1fc7e$1bb35160$4a8305ca@home">news:001c01c1fc
Use quotes and a little common sense.
How do you expect HTML to know that you mean John Doe to be the entire
value? Computers only do what you tell them.
So what's the value there? Is it 'John', 'John Doe', 'John Doe crap=foo'
or what??
Hope you see the point...
---John Holmes...
>
Hi,
I am using Editplus and I feel satisfied while using it.
you can give a try..
Vinod
--
Vinod Palan A
Calypso Technology, Inc.
[EMAIL PROTECTED]
(415) 817-2463 Phone
"Juan Pablo Aqueveque" <[EMAIL PROTECTED]> wrote in message
5.1.0.14.2.20020515102655.00a86040@www2">news:5.1.0.14.2.20020515
Based on the parts of this thread that I have read, I didn't see anything
about the failing platform. What is the OS, Webserver, etc.? Does it have
to function thru a gateway or proxy server to get to URL you are trying to
open, perhaps security is tighter on this machine? Are tcp/ip connections
Hey guys and gals,
i have a form with method=post which sends
to the same page, and picks it up in an
if ($submitted) {} loop.
but now here's the problem:
when it comes back and goes into the loop. Only the first name from
$quiz[owner_name] is left, so where it used to be John Do
Well, let's just say that my host is not a server farm and my hosting fees
are incredibly hard to pass up on many levels (work that comes my way and
theirs..) and the simple fact that i can actually email and get a quick
response (or dare I say PHONE!) to Q's and exceptional service is one of m
Hi,
I am also PHP lover plz dont hate me for this but I really need to know any free perl
hosting company where I can host my perl script. Only circumstances has made this that
I programming in perl. I have no idea where to put my question, as I always did
programming in php and asked this lis
Greetings, Thomas.
Did you solve this problem? If not, I would suggest getting rid of the
"--enable-libgcc" in your ./configure command. Here's how I configured
my installation of 4.2.0 for Solaris 8: (Directory names XXX'ed out)
'./configure' '--prefix=XXX' '--enable-cli'
'--enable-magic-quot
A simple looks around at phpbuilder.com will result in an article on browser
detection & CSS... the browser detection function he writes can be used for
many things, including what you want.
Justin French
on 16/05/02 12:09 AM, Diana Castillo ([EMAIL PROTECTED])
wrote:
> What is the code to tel
On Wed, 2002-05-15 at 17:13, Frank wrote:
>
> After installing PHP 4.2.0 I got the following error-message under a run:
>
> "Warning: Call-time pass-by-reference has been deprecated - argument passed
> by value; If you would like to pass it by reference, modify the declaration
> of [runtime fu
AH! That is how I got it the first time for my L33T.ca account. I think I
got it from SourceForge.net and he knows I now have it posted there after
last weeks search.
Damn! This list is fast
Erik
>From: Jason Murray <[EMAIL PROTECTED]>
>To: "'Erik Gilchrist'" <[EMAIL PROTECTED
Damian,
Yes, I sent that to him, but who knows... well, at least I don't know. PHP
is new to me. SQL? Even newer.
I created an account like that on L33T.ca last week, and just sent my host
an email on that before posting here. I just figured that phpmysqladmin was
a different thing.
The
I think you're looking for phpMyAdmin and yes, it's very viable and PHP4
compatible.
http://www.phpwizard.net/projects/phpMyAdmin/
HTH
Danny.
- Original Message -
From: "Erik Gilchrist" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 16, 2002 1:15 AM
Subject: [PHP] phpm
Are you sure you don't mean "phpmyadmin"?
http://phpmyadmin.sourceforge.net/
EG> First off, I am a total newbie to php and DB stuff. Pardon the intrusion on
EG> your busy schedules. Really.
EG> My host is having a hard time finding phpmysqladmin and he touted this as a
EG> solution to my wa
Go to www.google.com -> enter "phpMyAdmin" -> hit "I'm Feeling Lucky"
:)
--
Jason Murray
[EMAIL PROTECTED]
Web Developer, Melbourne IT
"Work now, freak later!"
> -Original Message-
> From: Erik Gilchrist [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 16, 2002 10:15 AM
> To: [EMAIL PR
After installing PHP 4.2.0 I got the following error-message under a run:
"Warning: Call-time pass-by-reference has been deprecated - argument passed
by value; If you would like to pass it by reference, modify the declaration
of [runtime function name](). If you would like to enable call-time
First off, I am a total newbie to php and DB stuff. Pardon the intrusion on
your busy schedules. Really.
My host is having a hard time finding phpmysqladmin and he touted this as a
solution to my wanting to get into the DB arena as well as php. Does anyone
know where to get it? All of my
i looked at the php.ini file and f wrapper is configured. thanks for the
suggestion. i am still looking for any suggestions anyone has. thanks.
-jennifer
Miguel Cruz wrote:
> Sounds like maybe the fopen url wrapper is not installed. I've never taken
> any particular steps to install it, so I'm
Sounds like maybe the fopen url wrapper is not installed. I've never taken
any particular steps to install it, so I'm not sure how that would come
about.
miguel
On Wed, 15 May 2002, jennifer jefferson wrote:
> thanks for looking. my guess is that it could be a
> server configuration issue. i am
"SHEETS,JASON (Non-HP-Boise,ex1)" wrote:
> You need to tell PHP to input the value and you should be using "'s
>
> example:
>
>
>
> This example assumes you are using at least PHP 4.1, also you may use
> $_REQUEST instead of $_GET if you are going to be using both GET and POST
> methods.
>
> Jas
thanks for looking. my guess is that it could be a
server configuration issue. i am really not sure. the
actual script works just not on the server i need
it to work on. maybe it has something to do with the
.ini file or the installation. i am not very familiar
with that. does this sound likel
Hi Scott,
If you are using IE, make sure that the browser checks for updates every
visit to the page. (Tools->Internet Options->Settings). I am not sure
that this setting observes Cache-Control, etc...
Are you setting the Cache-Control header to Private and the expires
header to a suitable time?
Devin:
> I want to a kewl script that will format time from seconds. I have a script
> that returns the number of seconds a person has been an employee and
> I want to format it in human readable format like:
>
> 1 year 6 months 14 days, etc.
Start with the manual:
http://www.php.net/manual/en
On Wed, 2002-05-15 at 13:31, Matthew Walker wrote:
> I'm writing a coding standards document for our programmers, and I need
> to know if the 'echo' shortcut PHP tags are always on, or if we need to
> assume they might not be on.
>
> (By echo shortcut, I mean this syntax: )
The only guaranteed a
On Wed, 15 May 2002, Phil Schwarzmann wrote:
> I know I'll get mauled big-time on this mailing list but I'm thinking
> about putting PHP on hold for a while and learning ASP.NET
>
> I love PHP and open-source computing but if one wants to get a job in
> web development, you'll have a much better
I am unable to get this to work. You start with
system_logic.php?system=a900. It's supposed to start with memory
selection, the proceed to hard drive, and onward. Instead, it starts
with videocard, and keeps going through the videocard set, instead of
at least progressing into hard drive.
This is
Olav:
> > if( empty($Authorized) ) {
> > header ('Location: http://jaggu.org');
> > } else {
> > $user = $Session['user'];
> > }
>
> Thanks for the reply, but it didnt help :)
Perhaps because you're ignoring what I said.
> The code is without errors. What I submitted was
> wri
Phil Schwarzmann wrote:
> I know I'll get mauled big-time on this mailing list but I'm thinking
> about putting PHP on hold for a while and learning ASP.NET
>
> I love PHP and open-source computing but if one wants to get a job in
> web development, you'll have a much better time find a job with
Phil Schwarzmann <[EMAIL PROTECTED]> wrote:
> Any thoughts on this? What are the pros and cons of both?
i think you should not waste our time with such a discussion, perhaps by
taking it to a relevant forum. if you don't want to use php, that's your
problem. this list/newsgroup is for discussing
Jennifer, works just fine here..
-
$fp =
fopen("http://www.thedeal.com/NASApp/cs/ContentServer?pagename=TheDeal/xmlfe
ed","r");
if ($fp !== FALSE)
echo "The file exists!";
else
echo "The file does not exist";
-
This prints "The file exists!" so it may be something else i
This is not tested but should work
$mysql_host = "localhost:1433";
$mysql_login = "billy";
$mysql_pw = "bob";
if(!$db_conn = mysql_connect($mysql_host, $mysql_login, $mysql_pw)){
echo "Connection Failed";
}
Robert W. Collins II
Webmaste
yah, there's a function. (isn't there almost always?)
http://www.php.net/manual/en/function.array-values.php
it gives you a numerically indexed array of all the values in your current
array, associative or not.
-j
Original Message Follows
From: "1LT John W. Holmes" <[EMAIL PROTECTED]
http://www.php.net/manual/en/language.types.array.php
An array in PHP is actually an ordered map. A map is a type that maps values
to keys.
we're not working with C where each array value is right next to each other
in memory. it's an abstraction that does the job intelligently, but gives
Yes I believe he was talking about
>
> vs.
>
> not
> I don't know of any way to disable being on. Does
> ---John Holmes...
> - Original Message -
> From: "Pushkar Pradhan" <[EMAIL PROTECTED]>
> To: "Matthew Walker" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Wednesday, May
There is no [0]...only ['one'] and ['two']...
Look through the array functions, there may be a way to reassign the keys...
---John Holmes...
- Original Message -
From: "Robert Rothe" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 15, 2002 4:35 PM
Subject: [PHP] I'm doi
Thanks. So the next() and prev() functions just traverse an array using
some type of linked list? This is what precludes direct access to
specific elements?
"Thalis A. Kalfigopoulos" wrote:
>
> In an associative array, there is no notion of the 'n-th' element. So AFAIK you
>can't do that.
>
I know I'll get mauled big-time on this mailing list but I'm thinking
about putting PHP on hold for a while and learning ASP.NET
I love PHP and open-source computing but if one wants to get a job in
web development, you'll have a much better time find a job with both PHP
and ASP (among others) s
I believe he was talking about
vs.
not
To: "Matthew Walker" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, May 15, 2002 4:49 PM
Subject: Re: [PHP] PHP Tag question
> You can tell that from the php.ini file look for:
>
> ; Allow the tags are
> recognized.
> short_open_tag = On
Just attempt to connect. If it succeeds, the server is alive.
Matthew Walker
Senior Software Engineer
ePliant Marketing
-Original Message-
From: Scott St. John [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 15, 2002 6:53 AM
To: [EMAIL PROTECTED]
Subject: [PHP] SQL Server test tool
H
When you create an array this way, no numeric indexes are assigned.
Matthew Walker
Senior Software Engineer
ePliant Marketing
-Original Message-
From: Robert Rothe [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 15, 2002 2:35 PM
To: [EMAIL PROTECTED]
Subject: [PHP] I'm doing something
"Matthew Walker" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I'm writing a coding standards document for our programmers,
> and I need to know if the 'echo' shortcut PHP tags are always
> on, or if we need to assume they might not be on.
>
> (By echo shortcu
In an associative array, there is no notion of the 'n-th' element. So AFAIK you can't
do that.
cheers,
thalis
On Wed, 15 May 2002, Robert Rothe wrote:
> I've created an array. A very simple array that uses strings as keys.
>
> aname['one']=something;
> aname['two']=something else;
>
> Isn
I've created an array. A very simple array that uses strings as keys.
aname['one']=something;
aname['two']=something else;
Isn't there any way to directly access the 'n'th element?
example: aname[0]?
I've searched the group, but haven't found anything. Am I missing
something or can'
You can tell that from the php.ini file look for:
; Allow the tags are
recognized.
short_open_tag = On
So basically you can switch them on/off.
On Wed, 15 May 2002, Matthew Walker wrote:
> I'm writing a coding standards document for our programmers, and I need
> to know if the 'echo' shortcut
This might help you:
http://www.faqts.com/knowledge_base/view.phtml/aid/1982/fid/58
I've also seen before an actual php script that interacts with a C program
to do the same. Google for it and it will be esay to find.
--
Julio Nobrega.
Um dia eu chego lá:
http://sourceforge.net/projects/t
On 5/15/02 4:30 PM, "SHEETS,JASON (Non-HP-Boise,ex1)"
[EMAIL PROTECTED] pressed the keys forming the message:
> Sessions under windows were broken for 4.1.x
>
> They were fixed in 4.2.x so you should upgrade.
Great - a definitive answer. Thank you. I'll just have to make note of the
differenc
On Thu, 16 May 2002, karthikeyan wrote:
> Just assume that I have a text file with a separator like "|"
>
> It would be something like this
>
> "ImagePath" | "DialogName" | "Dialog location"
>
> I have to read the text file of above format and display in the html file.
>
> DialogName1
Dear All,
Greetings.
Please let me know if the following can be done with php. All I need to do is this,
Just assume that I have a text file with a separator like "|"
It would be something like this
"ImagePath" | "DialogName" | "Dialog location"
I have to read the text file of ab
You need to tell PHP to input the value and you should be using "'s
example:
This example assumes you are using at least PHP 4.1, also you may use
$_REQUEST instead of $_GET if you are going to be using both GET and POST
methods.
Jason
-Original Message-
From: M [mailto:[EMAIL PROTECT
In my expierence you'll have much greater chance of sucess if you compile
with --with-sybase-ct :)
I just used --with-sybase-ct=/usr/local - I didn't bother with --with-mssql
or --with-sybase
Paticulars:
FreeBSD 4.5
PHP 4.2.0
FreeTDS 0.53
Of course, using this methods means you also have to us
On Wed, 15 May 2002, M wrote:
> suppose this form into myurl.html (i will replace < and > by [ and ] to avoid
> unwanted url treatment into msgs)
>
> [form]
> [input type=text name=driver length=20]
> [input type=text name=os length=20]
> [/form]
>
> I figured could open myurl.html already with
I'm writing a coding standards document for our programmers, and I need
to know if the 'echo' shortcut PHP tags are always on, or if we need to
assume they might not be on.
(By echo shortcut, I mean this syntax: )
Matthew Walker
Senior Software Engineer
ePliant Marketing
---
Outgoing mail is
"1LT John W. Holmes" wrote:
>
> You need to get a little more specific. Is this a specific form, or do you
> want to be able to post any form? What kind of script is processing the
> form? Is it looking for GET or POST data? GET data is as simple as creating
> a URL with the nec. fields. POST is
On 5/15/02 3:47 PM, "1LT John W. Holmes" [EMAIL PROTECTED] pressed
the keys forming the message:
> I'm not sure what it could be then. If you try a simple test script, doing
> nothing but starting a session and setting a value, does it work?
No.
> If that still doesn't work, then definitely upg
Hello
I have a script which uses fopen( ). It works on my local machine which has
php and apache on a windows platform as well as on another server
(php/apache) which is windows based. However, when I have the same script on
a unix machine (php/apache), the fopen gives me the following error:
At 15.05.2002 15:20, you wrote:
>
>Hello, I am interested on some info - how do robots work to fill web
>forms authomatically?
>Sometimes I notice a blurr code to be manually writen to avoid these
>robots when filling forms, but I am interested in programm just one of
>these machines. Is it nece
On Wed, 15 May 2002, George Whiffen wrote:
> 1. My biggest concern is the slowest user i.e. at the end of a modem
> on the other side of the planet. I thought they would almost certainly
> have modem compression so doing our own compression doesn't
> really help them at all i.e. actual download s
It seems that lots of DOM stuff was added in 4.2.1! Still I can't seem to see the
namespace definition attributes of an element.
The code:
$xmlstr='http://www.ns.com/ns1/";
attr="value"/>';
$domdoc=domxml_open_mem($xmlstr);
$root=$domdoc->document_element();
echo("".htmlentities($domdoc->html_
On Wed, 15 May 2002, arnaud gonzales wrote:
> I'm newbie in php and i would like to clearly understand how can i use:
> LENGTH in string fgets ( int fp [, int length])
>
> "Returns a string of up to length - 1 bytes read from the file pointed to by
> fp. Reading ends when length - 1 bytes ha
It seems that lots of DOM stuff was added in 4.2.1! Still I can't seem to see the
namespace definition attributes of an element.
The code:
$xmlstr='http://www.ns.com/ns1/";
attr="value"/>';
$domdoc=domxml_open_mem($xmlstr);
$root=$domdoc->document_element();
echo("".htmlentities($domdoc->html_
try mktime() function.
--
Best regards,
George Nicolae
IT Manager
___
PaginiWeb.com - Professional Web Design
www.PaginiWeb.com
"Vinod Palan" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> hi ,
> Do any one have date functions like that we
That is a whole seperate request that has nothing to do with Java servlets.
Who cares what program generates the HTML, it could be Frontpage for all I
care. If you want this to work, then try_param.php has to be a seperate PHP
file that creates image headers() and outputs image data
What a
On Thursday 16 May 2002 03:31, Joshua E Minnie wrote:
> Can anybody tell me why a call to header would fail. What I mean by this
> is that it doesn't redirect at all. Here is a snippet of the code that I
> am using:
>
> ...
> if(session_is_registered("user")) {
> header("Location: http://www.
On Wed, 15 May 2002, Joshua E Minnie wrote:
> Can anybody tell me why a call to header would fail. What I mean by this is
> that it doesn't redirect at all. Here is a snippet of the code that I am
> using:
>
> ...
> if(session_is_registered("user")) {
> header("Location: http://www.somwhere.
I have a PHP script that is run hourly by cron; I would like to make this
multithreading rather than configure cron to run the script more than once
per hour. Is this possible using PHP? I've tried using ticks, but it
doesn't appear to work - the tick function doesn't execute more than once at
t
On Wed, 15 May 2002, Vinod Palan wrote:
> Do any one have date functions like that we have in asp 1) Dateadd()
> 2) Datediff()
> etc?
You might be able to get what you need with strtotime, which is a
marvelous thing. See:
http://www.gnu.org/manual/tar-1.12/html_chapter/tar_7.html
The rest of
On Thursday 16 May 2002 03:06, Miguel Cruz wrote:
> On Wed, 15 May 2002, Andre Dubuc wrote:
> > Actually, I figured out how to do it: a combination of checking:
> > if ( $_REQUEST['pix']['type'] == "image/jpeg")} blah, blah, blah
>
> I'm pretty certain that the 'type' that appears here is just d
Can anybody tell me why a call to header would fail. What I mean by this is
that it doesn't redirect at all. Here is a snippet of the code that I am
using:
http://www.somwhere.net/admin.php";);
}
...
?>
I am using PHP 4.1.2 on Win NT 4.0
--
Joshua E Minnie/CIO
[EMAIL PROTECTED]
"Don't work fo
On 5/15/02 2:21 PM, "1LT John W. Holmes" [EMAIL PROTECTED] pressed
the keys forming the message:
> You probably want to get 4.2, or 4.2.1 if it's out.
Didn't think those were considered production quality just yet.
> How are you registering variables for the session? Is register_globals on or
>
No really. If I generate html on-fly in Java servlets
and 'try_param.php' is pointed in img then php does not generate any
output. But that is my goal.
However if I point 'try_param.php' in image in static html and I load that
file image is generated.
So my question is if I need any specific c
hi ,
Do any one have date functions like that we have in asp 1) Dateadd()
2) Datediff()
etc?
Thanks
Vinod
--
Vinod Palan A
Calypso Technology, Inc.
[EMAIL PROTECTED]
(415) 817-2463 Phone
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- Analysis & Solutions
<[EMAIL PROTECTED]> wrote: > Olav:
>
> On Wed, May 15, 2002 at 11:53:06AM +0100, Olav
> Bringedal wrote:
>
> > $user=$Session["user"];
> >
> > if(!$Authorized)
> > {
> > header ("Location: http://jaggu.org";);
> > }
>
> As I was saying before, write your code in a
On Wed, 15 May 2002, Joshua E Minnie wrote:
> I have been using some simple session management for some of my pages. I am
> inquiring about the use of transparent session id usage. I have read the
> manual and I am still a little confused on how to go about using it.
>
> I did run phpinfo() to
Hi
I think that would be problem of the method you are using.
Can you tell if you were using post method?
Thanks
Vinod
"Tim Ward" <[EMAIL PROTECTED]> wrote in message
01D892A483EAD511926A00500416D3C01C6B49@HUNTERS-MAIL">news:01D892A483EAD511926A00500416D3C01C6B49@HUNTERS-MAIL...
Are you POSTing
On Wed, 15 May 2002, Maciej Przybycien wrote:
> I included php file as html img:
> height="240" >
> and Netscape brawser seems not to interpret that. However if I change
> try_param.php -> try_param.png then image can be desplayed.
Does try_param.php contain the magic line:
header('Content
On Wed, 15 May 2002, Andre Dubuc wrote:
> Actually, I figured out how to do it: a combination of checking:
> if ( $_REQUEST['pix']['type'] == "image/jpeg")} blah, blah, blah
I'm pretty certain that the 'type' that appears here is just derived from
the file name, and therefore is not trustworthy
On Wed, 15 May 2002, Devin Atencio wrote:
> I want to a kewl script that will format time from seconds. I have a script
> that returns the number of seconds a person has been an employee and
> I want to format it in human readable format like:
>
> 1 year 6 months 14 days, etc.
Say you had 18001
Thanks Miguel,
Actually, I figured out how to do it: a combination of checking:
if ( $_REQUEST['pix']['type'] == "image/jpeg")} blah, blah, blah
and then using 'fread' on the actual file itself, applying my 'eregi'
verification code. It works!
The problem before was that I was attempting
So if you see an image, what's the problem?
---John Holmes...
- Original Message -
From: "Maciej Przybycien" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 15, 2002 2:50 PM
Subject: [PHP] php and servlets (fwd)
>
>
> The problem seems to come because I generate html a
On Wed, 15 May 2002, Olav Bringedal wrote:
> That is all well, but if php 4.2.1 interprets any
> output (as errors not only screen errors) as something
> that is sent before a header in a redirect, there is
> no other way (that i'm aware of) around it.
>
> Like this:
>
> $user=$Session["user"];
1 - 100 of 196 matches
Mail list logo