[EMAIL PROTECTED] wrote:
Why does PHP give a parse error if you do:
echo array_keys($arr)[0];
This breaks syntax...
It makes you assign the result of the function to a var first like this:
$arr = array_keys($arr);
echo $arr[0];
How about
reset($arr);
Hello
I have a class called Member, it has member function called
vallidateForm(), i try to pass it a $HTTP_POST_VARS array it looks like this:
clas Member{
var $HTTP_POST_VARS;
function vallidateForm ($HTTP_POST_VARS){
echo $HTTP_POST_VARS['frmUsername'];
}
}
$user = new Member;
Hi Edward,
@ 3:43:51 AM on 11/4/2001, [EMAIL PROTECTED] wrote:
the installation packages :
apache_1.3.20.tar.gz
Why not 1.3.22?
mysql-3.23.41.tar.gz
php-4.0.6.tar.gz
installation steps :
Apache :
./configure --prefix=/usr/local/apache \
--enable-shared=max
make
make install
Would there be a way of adding one script to a common footer, which in
included in any file, and this script can check any file on the server, and
echo the last updated string to a file. Thus, you don't need to add the
script to the file, the footer automatically echos that info to any file on
On Sun, Nov 04, 2001 at 12:54:54AM -0700, [EMAIL PROTECTED] wrote:
Why does PHP give a parse error if you do:
echo array_keys($arr)[0];
It makes you assign the result of the function to a var first like this:
$arr = array_keys($arr);
echo $arr[0];
I just want to
Hi,
Is there any way to make php notify me of any errors through email?
I know it may sounds funny, but imagine having this huge site and u just
want it to run smoothly but u juct cant check it all the time . If there was
a way that php would notify u for a an error on a specific page/line that
Hi,
Anyone have any ideas on how I could modify
the following to work on nested tags?
The regex replaces custom tags [i] [u] [b]
with real tags.
The Regex takes any of the characters in the class \[([ubi])\]
then non greedily matches any character (.*?) then matches
the result of the first
Hello,
In my lnx server I can do index.php/var1/var2/var3
I try the same exact thing in windows (using the same config (Apache/php) )
and it gives me internal server error.
Any ideas?
Thanks
-- phaistonian
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
Hi,
I have IIS5 on W2k Server, and a can not use isapi modul from php 4.0.6. If I using
modul from 4.0.pl2 then everything is OK, but when I use 4.0.6 then it is not
functionally and i must use cgi.
Can you help me (someone).
Thanks,
Hello, I have tried the zend.com articles to no avail
on php/linux
4.03 or even 4.05 whatever
is there a way to speciy a directory, in let's say
zip.php and when joe schmoe goes to that page, that directory
which is specified is downloaded immediately as zip?
Not a user interface to make them
This is a difficult one, What I am doing is designing a website to sell
DVD's well what I am running into is that when a Person buys the DVD they
are getting charged 2.35 for shipping an additional 1.00 for purchasing 2 ..
Well that works fine if they buy the same DVD, but when they buy 2
Hi
I was wondering, is there a different way using .inc files? I have a lot of
.inc files, which are displayed as normal text when you call it in the
browser. I would like to still have a file with the username / password /
database / etc in, but make it say config.inc.php. How would I get the
Hi,
do aonyone know of any comprehensive tutorial for user authentication
session managment with php4 sessions and mysql? Preferably with some sort of
code examples?
I have tried searching the larger code libraries but haven´t found anything
that suits me (the ones i actually got interested in
Hi.
Is it possible to check the Content-type header of a remote
file? If so, how? I want to fetch a file using file(), but I
want to make sure it is an HTML file first.
Thanks,
_ Lasar
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Hi Daniel!
Phpbuilder have some articles with examples under security.
http://www.phpbuilder.com/columns/
Regards
Jan Grafstrom
Lillemans Hus AB
Sweden
Daniel alsén [EMAIL PROTECTED] skrev i meddelandet
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi,
do aonyone know of any comprehensive
Hi Rudi!
Check out this example from Hotscripts.
http://www.hotscripts.com/cgi-bin/dload.cgi?ID=12367
Regards
Jan Grafstrom
Rudi Ahlers [EMAIL PROTECTED] skrev i meddelandet
008401c16534$dcb77580$0c00a8c0@camelot">news:008401c16534$dcb77580$0c00a8c0@camelot...
Hi
I was wondering, is there a
Did I forget everything in a few months?
if ($name='admin') {
header(Location: $MYPATH/admin.php);
}
Doesn't. That is it doesn't redirect to whatever $MYPATH/admin.php
translates to. Doing an echo $MYPATH directly after the line shows that the
path is
php-general Digest 4 Nov 2001 17:48:36 - Issue 975
Topics (messages 73373 through 73400):
Re: Number_Format Question
73373 by: Steve Werby
Re: site last updated
73374 by: Steve Werby
73376 by: Chip
73377 by: speedboy
73385 by: Rudi Ahlers
Re:
you're assigning, not checking for equality...use two ='s
-Original Message-
From: Martin [mailto:[EMAIL PROTECTED]]
Sent: Sunday, November 04, 2001 12:49 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Am i crazy?
Did I forget everything in a few months?
if ($name='admin') {
Jack Dempsey wrote:
you're assigning, not checking for equality...use two ='s
Still not redirecting ...
Martin S
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators,
what happens? are you sure $name really equal's admin?
if you change header to echo $MYPATH does that work?
-Original Message-
From: Martin [mailto:[EMAIL PROTECTED]]
Sent: Sunday, November 04, 2001 12:54 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Am i crazy?
Jack Dempsey wrote:
Did I forget everything in a few months?
if ($name='admin') {
header(Location: $MYPATH/admin.php);
}
try if ($name =='admin') {
('==' instead of '=', otherwise you are assigning 'admin' to $name) !
oliver
--
PHP General Mailing List
sorry, didn't receive the answers from martin and jack before...
oliver
Martin wrote:
Did I forget everything in a few months?
if ($name='admin') {
header(Location: $MYPATH/admin.php);
}
Doesn't. That is it doesn't redirect to whatever
Hi Edward,
@ 9:35:20 AM on 11/4/2001, [EMAIL PROTECTED] wrote:
Now, I have just finished the reinstall Red Hat Linux System , Apache , php
and MySQL,
But when I start the apache ( web server ) after the re-installation and
uncomment the line, these is the error :
Syntax error on line 222
It has to do with the $name variable, if you've fixed the code to check for
equality instead of setting the variable:
if ($name=='admin') {
Echo $name and make sure that it is actually getting set..
Also make sure your header information is before html.. let's see.. yeah
that's about all I can
http://minwon82.com
php-general´Ô ¾È³çÇϽʴϱî?
¹Î¿ø»¡¸®´åÄÄ ¿¡¼ ÀÎ»ç µå¸³´Ï´Ù.
ÀÌ°÷¿¡¼´Â µî±âºÎµîº», ÅäÁö´ëÀå, Á¹¾÷Áõ¸í¼, °æ·ÂÁõ¸í¼, µî
°¢Á¾ ¹Î¿ø 34Á¾À» ¹Ù»Ú½Å Çö´ëÀεéÀ» ´ë½ÅÇÏ¿© ¹ß±Þ´ëÇà ¼ºñ½º ÇÏ°í ÀÖ½À´Ï´Ù.
½ÅûÀ» ÇϽøé ÀÔ±Ý È®ÀÎÈÄ 2½Ã°£ À̳»¿¡ Æѽº³ª À̸ÞÀÏÀ» ÀÌ¿ë ¿¶÷ °¡´ÉÇϸç
Is this possible what I want this to do is take a price say 10.00 in a field
in the mySQL databse and do a math set such as -0.5 * 1
This is in a link and I was echoing the field in the database but how do I
put a math thingy in there. ?php echo $products-Fields(itm_aship)?
Could I do this
This is what I did when I installed PHP and I already had mySQL on my RAQ3i
and it worked like a charm, I hope this helps you, -- you can skip by the
mySQL install and move on the PHP install below.
Since mySQL for the RAQ3i (especially if you used the BIN from Cobalt)
doesn't have a directory
This is what I did when I installed PHP and I already had mySQL on my RAQ3i
and it worked like a charm, I hope this helps you, -- you can skip by the
mySQL install and move on the PHP install below.
Since mySQL for the RAQ3i (especially if you used the BIN from Cobalt)
doesn't have a directory
It does not appear to be in the documentation yet (and only a little
blurb in the NEWS file)
but preg_grep has changed.
Assume $file_list is an array of file names using integer keys, e.g.,
$file_list { 0 = test, 1 = filenames }
$result = preg_grep(/name/i, $file_list);
Here is an example of
not to start a war, but have you seen php.net's documentation compared to
anything microsoft or anyone else has ever put out? i'd say that
documentation is microsoft's achilles heel
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
Good time of a day!
Very strange... the code you place here works good (if forget one '=' ). I
thinck you have to chek what you have in $name, $MYPATH,
$MYPATH/admin.php... by the way what error you have? not such file?
... or somth special?...
If still not working. (vay;-))) )
Jack Dempsey wrote:
what happens?
if ($name == admin) {
echo $name;
header(Location: $MYPATH/admin.php);
}
Displays admin on the page where the redirect is from (switch.php).
Without the echo statement I just get a blank
Richard Baskett wrote:
It has to do with the $name variable, if you've fixed the code to check
for equality instead of setting the variable:
if ($name=='admin') {
Echo $name and make sure that it is actually getting set..
Yes.
Also make sure your header information is before html..
Galkov Vladimir wrote:
Good time of a day!
Very strange... the code you place here works good (if forget one '=' ).
I
thinck you have to chek what you have in $name, $MYPATH,
$MYPATH/admin.php... by the way what error you have? not such file?
... or somth special?...
If still
Hello,
I have been asked to maintain a PHP site hosted on NT/IIS, and have
only an Apache/RH linux box to do test and development for it.
So far it would be a no-brainer, being PHP as portable as is.
The problem is that on the real server PHP should read and write an
Access database via ODBC,
well when you were using echo $name to test then you were outputting html,
hence no redirect... if your php is set up in such a way as to suppress
errors then you wouldn't have been warned about it..check that nothing else
is being outputted, eg a space before the first ?. If that doesn't fix it
Have you seen a MSDN subscription latly?
Its many many CDs of Help Files and such...
Php.net has comments added by coders on the end, but other than that they
have nothing over M$ unless i'm missing something?
Andrew
- Original Message -
From: Jack Dempsey [EMAIL PROTECTED]
To: [EMAIL
One observation on this.. there is a major difference between this and the
the header(location:...
header happens on the server side whereas the below is clientside and
therefore unreliable. I know that netscape, particullarly on unix, is bad
for ignoring this. header() is the only reliable way
Re: site last updated
73374 by: Steve Werby
73376 by: Chip
73377 by: speedboy
73385 by: Rudi Ahlers
I think that all is partially answers on question that have no answer at all
!
Question was : ... SITE last update - not html file inside site but
try this :
class me
{
var arr_post;
function init($par_arr_post)
{
$this-arr_post=$par_arr_post;
}
}
-Original Message-
From: Daniel Harik [mailto:[EMAIL PROTECTED]]
Sent: Sunday, November 04, 2001 8:42 PM
To: [EMAIL PROTECTED]
Why not
if (file_exists($fname=$MYPATH/admin.php) $name='admin')) header
(Location: .$fname) ;else echo Trouble with $fname;
-Original Message-
From: Martin [mailto:[EMAIL PROTECTED]]
Sent: Sunday, November 04, 2001 7:49 PM
To: [EMAIL PROTECTED]
Subject: Am i crazy?
Did I forget
On Mon, 5 Nov 2001 05:47, Kacey A. Murphy wrote:
Is this possible what I want this to do is take a price say 10.00 in a
field in the mySQL databse and do a math set such as -0.5 * 1
This is in a link and I was echoing the field in the database but how
do I put a math thingy in there. ?php
On Sat, 3 Nov 2001 00:32, Justin French wrote:
hi,
i was wondering if anyone has some sample code / links which could help
me generate HTML forms dynamically from the fields/types/lengths of
tables in a mySQL database.
ie, if i had a three column table with first (varchar 50), last
I would have to agree on a global scale.
However, strictly in discussion of server-side languages, I haven't seen
ASP documentation as complete/useful as PHP's... I have never had to
use anything besides the PHP manual to solve a problem in writing
something.
-Original Message-
At 10:41 AM -0800 11/4/01, Daniel Harik wrote:
Hello
I have a class called Member, it has member function called
vallidateForm(), i try to pass it a $HTTP_POST_VARS array it looks like this:
clas Member{
var $HTTP_POST_VARS;
function vallidateForm ($HTTP_POST_VARS){
echo
On Fri, 2 Nov 2001 18:33, Adrian D'Costa wrote:
On Fri, 2 Nov 2001, David Robley wrote:
What if we need both version??
There's nothing stopping you running both.
How do you compile it for both?
Adrian
To do the cgi compile, use all the configure values you need
Hello,
After seeing multiple message concerning the Location response-header using relative
URI's, and having to change this in multiple open-source projects, I'd like to point
out that the correct behaviour only allows ABSOLUTE URI's.
This may work on certain clients with a relative URI,
On Sat, 3 Nov 2001 00:53, Paul Mullett wrote:
Hello,
Could be a simple problem, using PHP4 on a Linux/Unix Cobalt RaQ4
server. I have been using it fine, but the mail() function wont send
mail, even with the most basic content and lack of headers.
Can anyone offer any advise on what
Hi All-
I'm designing a Portal environment for a very large number of
organisations and it
necessitates having a central server where users initially login and have
access to a few
functions.
For the more complex functions where it is necessary to redirect them to
another server,
local to them,
Hello :c)
im looking at some code i found on the net and
i cant find any info on this... it's used like:
$this-mode = $mode;
I have looked in the online help doc but it did'nt
return anything, any one know??
--
Thanks
Christian Charette
www.charetx2.com
--
PHP General Mailing List
$this refers to the current object
so $this-mode refers to the variable inside the current object called
mode
Hope this helps
Martin
-Original Message-
From: Christian C. [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 05, 2001 12:17 PM
To: [EMAIL PROTECTED]
Subject: [PHP] what's
http://www.php.net/manual/en/language.oop.php
This is what you want to read.
Matt.
- Original Message -
From: Christian C. [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, November 04, 2001 7:16 PM
Subject: [PHP] what's this???
Hello :c)
im looking at some code i found on
Perhaps make it an MD5 hash of the username and password in the url.
Or, make it a submit button.
Those two pop off my head.
- James
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Sunday, November 04, 2001 7:50 PM
To: [EMAIL PROTECTED]
Subject: [PHP]
or, instead of MD5 (depending on how secure you want it) you could use
base64_(en|de)code
-Original Message-
From: James [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 05, 2001 12:46 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [PHP] Secure transfer between servers
I'm interested in knowing how to do this too. If it's at all possible.
Martin
-Original Message-
From: Marco Fioretti [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 05, 2001 9:36 AM
To: [EMAIL PROTECTED]
Subject: [PHP] URGENT: Can PHP on Linux deal with Access DB?
Hello,
I have
Tom Carter wrote:
One observation on this.. there is a major difference between this and the
the header(location:...
header happens on the server side whereas the below is clientside and
therefore unreliable. I know that netscape, particullarly on unix, is bad
for ignoring this. header() is
For the more complex functions where it is necessary to redirect them to
another server,
local to them, I have a problem.
If these machines are on a LAN together I would suggest you use database
sessions. I.e. a table with records containing active sessions.
--
PHP General Mailing List
Tom Carter wrote:
well when you were using echo $name to test then you were outputting html,
hence no redirect...
I've tried both w/ and w/o the echo. No difference.
if your php is set up in such a way as to suppress
errors then you wouldn't have been warned about it..
No, nothing is
Hey all,
What is the best wat to post some variables to a cgi file and capture the
output so I may strip out all the html tags, I want to replace a forms
action with a php script which will mimic a forms post method, allowing me
to better format the response, as at the moment the cgi is written
Try putting exit; right after the header() function...
-JAson Garber
IonZoft.com
At 06:54 PM 11/4/2001 +0100, Martin wrote:
Jack Dempsey wrote:
you're assigning, not checking for equality...use two ='s
Still not redirecting ...
Martin S
--
PHP General Mailing List (http://www.php.net/)
To
Thanks,
I got to recompile php to do this (me too lazy), can't I do this with the
network/filesystem functions? will keep this in mind though.
Regards,
Joseph
-Original Message-
From: Jason G. [mailto:[EMAIL PROTECTED]]
Sent: Monday, 5 November 2001 4:14 PM
To: Joseph Blythe
Subject:
62 matches
Mail list logo