Hi,
Saturday, January 3, 2004, 4:50:44 PM, you wrote:
C> You forgot to double slash the windows slash like: '\\'
C> I would write that same functionality as follows:
C> $sep = (PHP_OS == 'Windows')? '\\':'/';
C> if(substr($template_path,-1) == $sep)) $template_path .= $sep;
Not in single quote
So it's, at the time of this writing, 2:47 AM. Keep this in mind.
I was looking at my webserver configuration. I am in love with Suexec.
It's a gift from god for web hosts. Not only does it secure your
directories, but as a bonus it forces your users to keep their stuff
secure (i.e. by not runn
-Original Message-
From: Jeremy Russell [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 30, 2003 11:17 PM
To: [EMAIL PROTECTED]
Subject: [PHP] A hint...
Hello list..
I was needing a small hint on how to make a sort of status page...
What I have is a function that takes a few minute
I don't know, but maybe part of the trouble I have making canned code to
learn PHP/MySQL is that I'm using older versions? I'm on a Macintosh G3
PowerBook with OS 10.2.1. PHP is version 4.3.0; MySQL, 3.23.53; and
phpmyAdmin, 2.4.0.
What are the latest available post-beta, stable, fully-baked versi
Hi.
I have made a script in php that calls a java program.
This java program will make a connection to a
PostgreSQL db and do some operations. That java
program works just fine if I run it on a console, but
when it is php to runing it, it gives some errors
related to the charset encoding.
The erro
Hi,
I wish to call function f($params) using call_user_func_array() and pass to
f() an array of two objects as a parameter.
When I call f() directly, it works as expected. Function f() recognises that
2 objects are in the array and I can access their member variables.
When I call the same functi
I am a novice, I am sure this is pretty simple...
I have two arrays of integers, equal length.
The arrays elements consists of the integers 0 through 9.
The order of the numbers in the arrays should always be different.
Example 1: Is ok
xArray: 2 9 6 0 1 3 4 5 8 7
yArray: 3 7 1 9 0 8 6 2 4 5
Exa
Hello Austin,
Saturday, January 3, 2004, 1:29:14 AM, you wrote:
A> how do i make something where some1 enters text, a name, and email
A> address, etc. and can post it onto a textarea or something, in a format of
http://www.hotscripts.com/cgi-bin/search.cgi?bool=AND&query=shoutbox&catid=2
--
B
One approach:
for ($i=0; $i < sizeof($xArray); $i++) {
if ($xArray[$i] == $yArray[$i]) {
new_yArray();
break;
}
}
"Wknit" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I am a novice, I am sure this is pretty simple...
>
> I have two arrays of integers, equa
Hello,
I have recently launched the new Planet-Tolkien.com, one would think
that writing a message board from scratch and a dynamic weather system,
a simple session login would be the least of my problems right? Wrong.
It would appear that for Mozilla and Opera keep a $_SESSION is not an
issue an
I use sessions with IE all the time without such a problem. Are there any
points in the program that redirect the user off site and back or something
with that affect that IE might be handling in a wierd way? Do you have
pages that detect the browser and feed alternate content based on the
browse
"Are there any points in the program that redirect the user off site and
back or something with that affect that IE might be handling in a weird
way?"
Nope
"Do you have pages that detect the browser and feed alternate content
based on the browser?"
Nope
"do you always run the session_start befo
Does apache have permissions to write to the file and directory?
Aidan Lister wrote:
If anyone has successfully got php error logging working on a production
website, could you please reply with the steps taken?
I'm using RH7.3, Apache1.3x, PHP4.3x
My php.ini has:
log_errors = On
error_log = /va
How about simply:
echo "
window.top.main.location= 'http://localhost/phase1/report.php'';
";
?
"Geoffrey Thompson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I was only able to find one reference to targeting a named frame
WHERE IS THE ERROR?
The username and the password are the correct and the name of the
variables (login and pass) also match. I tried to get data from a
secure site but I always receive the next message instead of the page
I request:
We are connected with somesecuredomain.com
HTTP/1
php-general Digest 3 Jan 2004 20:25:12 - Issue 2510
Topics (messages 173674 through 173690):
Strange counter behavior
173674 by: Cesar Aracena
Re: End slash, small problem.
173675 by: Chris
173676 by: Tom Rogers
php stub
173677 by: Dan Mahoney
Re: A hint...
Have you tried the header(Cache-control: private) workaround for IE6? I
seem to remember reading something about that on one of the web dev sites
(devshed probably). Use that immediately after session_start() and see if
it makes a difference.
Kirk
"Tarrant Costelloe" <[EMAIL PROTECTED]> wrote
Doesn't seem to have solved the problem... My session include file at
the top of all documents looks like:
session_save_path("$some_path/sessions");
ini_set('session.use_cookies', 1);
ini_set('session.gc_probability', 1);
ini_set('session.gc_maxlifetime', 60 * 60);
ini_set('session.auto_start', '
Hi,
am a bit confused as to how you do this...first let me explain the flow of
input:
I will be getting $product1,$product2,$product3 etc from another script...I
dont know till what numberright now I am trying to catch the values till
20 with a "for" loop.
My problem is how do I attach the $i
IE and Moz have different JAVA script engines. Try turning off JAVA and
see if IE maintains it's session.
Tarrant Costelloe wrote:
Hello,
I have recently launched the new Planet-Tolkien.com, one would think
that writing a message board from scratch and a dynamic weather system,
a simple sessi
I want to create an array with some text. Let's say the following:
$sometext = array(explode(" ", "Objective: Position as a Machine Attendant
and or Operator Summary - Over 16 years experience in packaging and
maintenance of various operating machinery. - 13 years experience in cutting
steel and o
Is it possible to pipe email directly to PHP like it's possible to do
with perl? I need to do this using Exim which I'm also unfamiliar with
so if anyone has done this I'd appreciate knowing how! :)
Thanks
Ade
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.
If you're going to build your array that way, then you need to loop through
$sometext[0], not $sometext. You're creating an array in the first element
of the $sometext array, so $sometext element zero is an array containing
your exploded words.
Instead, try:
$sometext = explode(" ", "your long s
I can't belive it...
I checked the file permissions on so many occasions, I even used
/tmp/phperror_log just to make sure (why that doesn't work I'm not sure).
However sure enough, the directory wasn't world writeable.
Thanks Marek, I really appreciate your help.
"Marek Kilimajer" <[EMAIL PROT
Firstly I'd rewrite your other script to store the data in an array.
The benefits of doing so are simply demonstrated:
However, if you are unable to rewrite your script:
The correct syntax is:
"Ryan A" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
> am a bit confused as t
===
This message is for the benefit of new subscribers
and those new to PHP. Please feel free to add
more points and send to the list.
===
1. If you have any queries/problems about PHP try
http://www.php.net/manual/en first
Hey,
OK, got it, thanks!
-Ryan
On 1/4/2004 1:00:04 AM, Aidan Lister ([EMAIL PROTECTED]) wrote:
> Firstly
> I'd rewrite your other script to store the data in an array.
>
> The benefits of doing so are simply demonstrated:
>
> foreach ($products as $product)
> dosomethingto($product);
> ?>
>
> Ho
Guess I'm being nosy here, so forgive me, but why are you settting an
alternate save path and using ini_set at the start of each document? I know
that has nothing to do with the problem, but I was just wondering. Are you
hosting multiple sites off your server and have different session settings
d
Hi guys,
I am trying to install Turck MMCache on our server but have no idea about
linux...I have gone through all the steps a fellow list user (R'twick) gave
me to install this, up till
$PHP_PREFIX/bin/phpize
when I type that it says: no file or directory by that name
so after searching on the
I searched the archives and Google but couldn't find a solution.
I would like to know if there is a good server independent method method for
optimizing URLs that contain GET queries for search engines. Server URL
rewriting (i.e. mod_rewrite, etc...) is not an option unless it is
compatible with
30 matches
Mail list logo