Please,
Could you tell me if this problem has been resolved:
I am using php-5.2X and has this problem, I also had this problem when I was
using php-5.1.X.
My Apache is httpd-2.2.3.
Here is the post from someone who is having the same problem.
I config PHP4.0.6 for Apach
# [EMAIL PROTECTED] / 2006-12-16 09:52:18 -0500:
> On Sat, 2006-12-16 at 15:59 +, Roman Neuhauser wrote:
> > # [EMAIL PROTECTED] / 2006-12-16 07:24:49 -0500:
> > > On Sat, 2006-12-16 at 19:58 +0800, Kai Xiang wrote:
> > > > On 12/16/06, Richard Lynch <[EMAIL PROTECTED]> wrote:
> > > > > (*)
> >
On Sun, 2006-12-17 at 14:41 +, Roman Neuhauser wrote:
> # [EMAIL PROTECTED] / 2006-12-16 09:52:18 -0500:
> > On Sat, 2006-12-16 at 15:59 +, Roman Neuhauser wrote:
> > > # [EMAIL PROTECTED] / 2006-12-16 07:24:49 -0500:
> > > > On Sat, 2006-12-16 at 19:58 +0800, Kai Xiang wrote:
> > > > > On
Hi all,
I've a problem thats been bothering me for a week now
I have an array $animals
keys and values like this
1 => cat
2 => dog
3 => mouse
4 => horse
I want to be able to access them using either a key or a pointer, however
the key/pointer will be a variable
without variables, if I want
1 => cat
2 => dog
3 => mouse
4 => horse
iwfm with array(1=>'cat',2=>'dog',3=>'mouse',4=>'horse'):
output:
Array
(
[1] => cat
[2] => dog
[3] => mouse
[4] => horse
)
dog
source:
'cat',2=>'dog',3=>'mouse',4=>'horse');
print_r($animals);
$x=2;
echo $animals[$x]."\n";
?>
t
--
PHP Gen
- Original Message -
From: "julian haffegee" <[EMAIL PROTECTED]>
To:
Sent: Sunday, December 17, 2006 7:31 PM
Subject: [PHP] PHP problem with array keys / pointers
Hi all,
I've a problem thats been bothering me for a week now
I have an array $animals
keys and values like this
1 =
don't hijack an existing thread. (i.e.
don't reply to someone elses' post/reply if your
asking a new question.
you need to learn to use var_dump(), and if you look at
the line of code below you should have everything you need
to know about numeric array keys:
$a = array(2 => "foo"); $b = array("2
You probably didn't install PHP correctly.
On 12/16/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Please,
Could you tell me if this problem has been resolved:
I am using php-5.2X and has this problem, I also had this problem when I was
using php-5.1.X.
My Apache is httpd-2.2.3.
Here is th
Hi,
I have a page with a form on it which posts to itself. The problem is when
someone refreshes the page it enters the data into the DB again. How do I
clear these variables so that doesn't happen. I tried the unset function,
but no luck. I really don't want to use sessions or cookies as this is
Beauford wrote:
I have a page with a form on it which posts to itself. The problem is when
someone refreshes the page it enters the data into the DB again. How do I
clear these variables so that doesn't happen. I tried the unset function,
but no luck. I really don't want to use sessions or cookie
will set the element of ordinal number 0 and key ' 2' to 'dog'. To get
that value you would either ask for $array[0] or $array[' 2'].
thanks for all the comments so far, i'm not sure you are understanding what
I am asking for.
My problem is NOT knowing what is in the arrays, but how to ac
On Sun, 2006-12-17 at 23:19 +, julian haffegee wrote:
> > will set the element of ordinal number 0 and key ' 2' to 'dog'. To get
> > that value you would either ask for $array[0] or $array[' 2'].
>
>
> thanks for all the comments so far, i'm not sure you are understanding what
> I am askin
I'm working on a project where we'd want partner sites to get our
content on the other web sites.
A key priority is that they won't have much technical sophistication
(probably no db experience or php experience).
Also, these would be third party sites so there would also be an
issue of requi
[EMAIL PROTECTED] wrote:
i am moving my webserver from a windows box to a linux box with php ver
5.2.0 and noticed i am having a problem with a php file(code below). i
thought it was a module i was missing but looking at the php config
file all the same modules are loaded. allow_url_fopen is enab
If this is about search engine optimization, I'd suggest using Javascript.
Something like :
http://www.yoursite.com/include.php?article=1536f";>http://www.yoursite.com"; id="yoursite">Provided by YourSite
And inside the script, Ajax to fetch and display the content, and also add
if (var li
David Duong wrote:
Hi everyone,
Let me know if there is a better place to post this.
I am playing with the idea of creating a true (KISS) abstraction layer
that makes full use of PHP5's OOP support. So logically it would make
sense to make use PDO wherever possible, however, one of PDO's desi
Richard Lynch wrote:
> A cookie is sent BACK to the server after the server sends
> it to the browser. Period.
>
> It's kind of like when you go to a movie, and you buy your
> ticket from one person, and then you hand it to another,
> and they hand it back, and then you have to be prepared to
> sh
Tim wrote:
> Considering bruce wants to be able to display the data and then
> change location after a given time, and as stut said you can't
> do this with a header() as it redirects before output
Sure you can. Just use a Refresh header instead of Location.
Chris
--
Chris Shiflett
http://shifl
Richard Lynch wrote:
> The "old school" HTTP-EQUIV of a refresh with a time and URL
> would probably be suitable for this.
>
> YMMV
>
> And it's still not PHP. :-)
It is if you use header(). :-)
Chris
--
Chris Shiflett
http://shiflett.org/
--
PHP General Mailing List (http://www.php.net/)
T
19 matches
Mail list logo