SID. If you are posting form data, make sure there is an input
for the session name with a value of the session id, etc.
Hope that helps.
--
Jason k Larson
Dave Alger wrote:
Hi All,
I'm struggling with a session problem and I'm not sure where I should be
looking for the answer.
Most o
ferent servers, both PHP version 4.3.2.
Any thoughts, comments, suggestions would be kindly appreciated.
Regards,
Jason k Larson
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
mode.
Unless you decide to do a ocicommit () afterwards, it's not being committed due to the
OCI_DEFAULT mode.
Or maybe you could try this:
$execute = ociexecute($stmt, OCI_COMMIT_ON_SUCCESS);
--
Jason k Larson
Moore, Christie wrote:
I don't receive any errors from this code but when I l
This hardly belongs on the PHP list ... but try looking into JavaScript focus().
--
Jason k Larson
Angelo Zanetti wrote:
Hi guys how do I set the cursor to start in a particular textfield (password field) when my php page starts?
TIA
--
PHP General Mailing List (http://www.php.net/)
To
*woot!* :)
I love being right. ;)
--
Jason k Larson
Emma Jane Hogbin wrote:
What ended up working was passing the session ID to the pop-up window
"manually" by including it in the function (and thus the URL).
emma
--
PHP General Mailing List (http://www.php.net/)
To unsubscr
Try adding the SessionID to the URL.
openEdit("add=event&cellid=10&");
or a little better:
$thisSession = Session_Name().'='.Session_ID();
openEdit("add=event&cellid=10&");
Then of course the editsmall.php must still do a session_start somewhere.
--
http://us2.php.net/manual/en/function.session-set-cookie-params.php
set the domain strictly to "test.com" not "subdomain.test.com" etc etc
--
Jason k Larson
Dale wrote:
HELP? I AM ABOUT TO PULL MY HAIR OUT?
I have already spent time reading over the online php manual and
This is all dependent on how you are performing the transaction. Are you using raw
sockets to connect or perhaps cURL? The answer lies in that when whatever is making the
connection and reading the data returned, the headers will be sent there.
--
Jason k Larson
Ralph wrote:
Hi, I
e
excess that I use, or prerouting tables, for that matter.
--
Jason k Larson
Luis Lebron wrote:
I know there is a lot of expertise on running web servers in this group. So,
I'm going to ask a couple of questions.
I am currently a public web server with an iptables firewall. A securit
Call it a hunch ...
./configure --with-apxs2=/usr/local/apache2/bin/apxs \
--with-mysql=/usr/local/mysql
--
Jason k Larson
Ron Dyck wrote:
I'm currently attempting to upgrade to the latest version of php.
When I run:
./configure --with-apxs2=/usr/local/apache2/bin/apxs \
--with-mysql
("{mail.hot.ee:110/pop3/notls}INBOX", "pop3testing", "testing");
Hope that helps.
--
Jason k Larson
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Shouldn't the correct suntax for pop3 be:
$mbox = imap_open ("{mail.hot.ee:110/pop3}", "pop3testing", "testing");
http://us2.php.net/imap_open
--
Jason k Larson
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
est.
Hope that helps.
--
Jason k Larson
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
an identical 'name' attribute could be used several times without conflict.
For PHP use, you have to use the 'name' attribute, but you've already figured that out.
--
Jason k Larson
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
g.
note that this is completely untested, I just wrote it here in email.
Hope that helps.
--
Jason k Larson
fongming wrote:
Hi, Sir:
There
I hope you all can take a joke, cause this is just a result of April Fools day. Try
looking at your phpinfo script again tomorrow.
And ignore Don Read ... his suggestion is just plain evil.
--
Jason k Larson
Sebastian wrote:
sorry what is Thies?, I have this too in my phpinfo... do i need it
It's an April Fools joke ... nicely done too.
Chris Edwards wrote:
read: http://php.weblogs.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
s my values prior were magically recreated after the object was
instanciated.
Rasmus, any ideas here? I'm thinking this is a bug.
--
Jason k Larson
Jens von Pilgrim wrote:
Hello,
Jason wrote:
JL> Maybe I'm missing something here ... but what is the point of trying
JL> to create
PHP3 it is in all versions of PHP4. If you can't use foreach, writing the
while loop differently (not using each()) should work better.
HTH,
Jason k Larson
Patrick Teague wrote:
I'm currently having a problem with another array in a class & I can't
figure it out -
class myClas
Maybe I'm missing something here ... but what is the point of trying to create a reference
to a new object ... it hasn't been ceated prior to make reference to. Can't you simply
create the new object and then make whatever (if needed) references?
--
Jason k Larson
Jens von Pi
Search the list archives, this question gets asked (and answered) a lot.
http://marc.theaimsgroup.com/?l=php-general
HTH,
Jason k Larson
Haseeb Iqbal wrote:
thanx to all those who replied to my previous question.
1 more question.i need help with reqular expressions.i want to check valid
(email
I use phpAdsNew in a production environment and it has been rock solid stable. I am hugely
impressed with phpAdsNew and would recommend it to anyone for a real banner ad solution.
But then again, I'm only serving maybe 5 million views in a month with it.
--
Jason k Larson
Boaz Yahav
mhash (PHP 3>= 3.0.9, PHP 4 )
mhash -- Compute hash
Description:
string mhash ( int hash, string data [, string key])
^ salt/seed/key - whatever you want to
call it
--
Jason k Larson
Dennis Gearon wrote:
I don't see anywhere on that page
First of all, the example you gave is only using one argument to the MD5 function.
Secondly, if you *want* to seed/salt the MD5 with a key you can use:
http://www.php.net/manual/en/ref.mhash.php
--
Jason k Larson
aka: der Ritter
Dennis Gearon wrote:
The usage of md5() in PHPLIB show TWO arguments
d
base64 value that you then need manipluated into an array, maybe yes?
--
Jason k Larson
Hilmi Hilmiev wrote:
Dear All,
I have stream data encrypted BASE64. My problem is that I must decode
this BASE64 to 8-bit unsigned array and I don't know how :( Have a
native possibility in PHP fo
It's seeing the - as a range identifier, escape it to get the literal hyphen.
How about this:
[a-zA-Z0-9_\-.]*
In my tests, the period didn't need to be escaped with the \.
HTH,
Jason k Larson
Liam Gibbs wrote:
I'm not sure why, but I can't include a period in my eregi sta
That's exactly what logical operators are for.
http://www.php.net/manual/en/language.operators.logical.php
use || instead of && for allowing either to be true.
if ((test1) || (test2) || (test3))
{
\\ if any of these can return true, this will execute
}
HTH,
Jason k Larson
Liam G
How about:
preg_match_all ('/([a-zA-Z0-9]+)/', $subject, $matches);
HTH,
Jason k Larson
Justin French wrote:
Unfortunately, I'm no good with regexp's, so you'll have to hope someone who
IS reads your post :)
Justin French
on 12/03/03 5:14 AM, Kenn Murrah ([EMAIL PROTE
And what about:
print htmlspecialchars('[EMAIL PROTECTED]@#%:[EMAIL PROTECTED]@[EMAIL PROTECTED]|#:~December,2003~on~fjskl');
It seems to work for me.
--
Jason k Larson
Niklas Lampén wrote:
print htmlspecialchars("[EMAIL PROTECTED]@#%:[EMAIL PROTECTED]@[EMAIL
PROTECTED]|#:~De
http://www.php.net/manual/en/function.constant.php
$msg = constant('_LANG'.$num);
HTH,
--
Jason k Larson
Vincent M. wrote:
Hello,
I do a lot of define like that:
define ("_LANG1", "Server options");
define ("_LANG1", "Manage your system");
etc.
ue;
}
else
{
foreach ($value as $subkey => $subvalue)
{
$destination_Array[] = $subvalue['code'];
}
}
}
--
Jason k Larson
Konference wrote:
Hi all,
i have o question, is there some solution how
Include can handle URLs as the path if allow_url_fopen is set correctly
in the php.ini. But it does have some limitations if being done on a
Win32 platform instead of (*)nix.
Try reading this, it might shed some needed light.
http://www.php.net/manual/en/function.include.php
HTH
--
Jason k
not trim whitespace from begin/end of lines
-v : show lines that do NOT match pattern
--
Jason k Larson
{R}ichard Ashton wrote:
On Wed, 5 Mar 2003 10:21:30 -0500, 1LT John W. Holmes wrote:
$ts = '/(' . $trigger_string .')/is';
echo "trigger_string is $ts ";
$matche
How about Apache Bench?
http://httpd.apache.org/docs/programs/ab.html
--
Jason k Larson
Tamas Arpad wrote:
Hi,
I'm searching for a good http benchmark tool. Of course I found some, but
don't know them and don't know which one to choose.
I found JMeter slow, in other aspects it w
mance even better.
It's always nice to write your own stuff to learn, but seriously, if you
are planning to do anything that other people need to rely on for a
banner management system and server, use phpAdsNew. You can find it on
SourceForge.
Regards,
Jason k Larson
Joseph Bannon wrote:
An
trouble. I'd like to see that. That is, unless it's not a PHP
behavior problem, but a scripting or logic issue due to poor development.
--
Jason k Larson
Leif K-Brooks wrote:
I think you mean worse. Short tags cause nothing but trouble.
Jason k Larson wrote:
or even better:
--
P
e complex ways too and, of course, the use of ()s ...
but I think I've made my point.
HTH,
Jason k Larson
M.A.Bond wrote:
With the output you are getting you will not see the output from the .' '.
As it inserts a space into the ouputted text. There is an error after the
$_SERVER[
My understanding is:
- each time a request causes a *session file to be created or accessed*.
--
Jason k Larson
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
. is a string concatenation operator.
' or " are strings.
Read http://www.php.net/manual/en/language.operators.string.php
By the way, __LINE__ is available in addition to __FILE__.
Hope that helps,
Jason k Larson
Stephen Ford wrote:
Partial success. The code and output are shown be
The 'magic constant' __FILE__ is one way.
or even better:
HTH,
Jason k Larson
Stephen Ford wrote:
How can I display the script file name? Presumably something like-:
While I'm learning php and developing various Web page versions, I want to
be sure the that the disp
What about using a ';' semicolon seperated list.
Ricardo Fitzgerald wrote:
Hi to all,
I wrote a small form which dumps data to a php script that uses mail ()
to send an html newsletter, so far is working except
that it's not sending to BCC: headers, in my form I have a field to
enter a comma deli
e to
wonder if you are asking the list stupid questions.
--
Jason k Larson
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
$name1 = 'Hello, World!';
$i = 1;
$var = 'name'.$i;
print ${$var};
HTH,
Jason k Larson
Jeff Pauls wrote:
Hi,
I've been playing with this for a while now. Say I had the following variables:
$name1 = "joe";
$name2 = "janis";
$name3 = "joanne";
I
carriage returns in a text field (textarea) are different than how HTML
formats data to be displayed. Look into the nl2br() function.
http://www.php.net/manual/en/function.nl2br.php
HTH,
Jason k Larson
Daniel Guerrier wrote:
Is it possible to maintain the carriage returns in a
database insert
I've read up on and hasn't addressed any of these
issues).
Regards,
Jason k Larson
Rhett Livingston wrote:
I upgraded my development system from PHP 4.1.2 to PHP 4.3.0 last week and
the performance of my scripts took a dive. Specifically, the average time
to parse my scripts (time from
Sessions have a list of options that can be set, but I don't see
anything remotely similar to a 'data size'.
What error are you getting, or please explain further in more detail.
Regards,
Jason k Larson
Joseph Bannon wrote:
Where can I set the session
hp
If the track_errors feature is enabled, any error message generated by
the expression will be saved in the global variable $php_errormsg. This
variable will be overwritten on each error, so check early if you want
to use it.
Hope that clears things up a bit.
Regards,
Jason k Larson
Hans Prins
as you
shown.
Hope that helps ...
Jason k Larson
Anthony Ritter wrote:
This is what I was getting at.
The following is correct mysql syntax in which a comma must be added after
each field - except for the last field - in this case price:
i.e.,
.
CREATE TABLE chairs(
id int(5
use:
--with-mysql=/usr/lib/mysql
HTH,
Jason k Larson
PathFinder Software wrote:
Hi,
During the configure I get this error message.
configure: error: Cannot find header files under /var/lib/mysql
a whereis mysql produce the following output:
mysql: /usr/bin/mysql /usr/lib/mysql /usr/include
file to determine if the
PHPv4.2.3 install overwrote the older one successfully or not. If you
still have problems, then you might need to check the path you are
giving to the --with-apxs for compiling PHP.
HTH,
Jason k Larson
PathFinder Software wrote:
Hi,
I upgraded PHP from 4.0.3pl1 to ph
ave made recent upgrades and changed
environments. However the code consistently dies in the exact place, a
place where other fsocket reads and writes are successfully been made.
Any suggestions would be appreciated.
Regards,
Jason k Larson
--
PHP General Mailing List (http://www.php.net/)
To uns
Because all of your field names are overwriting each other until the
last one wins.
name="date"
This needs to be different for each field so PHP can assign that name as
the variable.
HTH,
Jason k Larson
CF High wrote:
Hey all.
Got a problem with I'm sure a simple solution:
Try these:
http://www.php.net/manual/en/function.urldecode.php
http://www.php.net/manual/en/function.rawurldecode.php
HTH,
Jason k Larson
Sarah Gray wrote:
Hello,
Forgive me if this is an obvious question, but I am passing a value (a
string with spaces and quotations) back in a query string
#x27;surname'];
$email=$row['email'];
$comments=$row['comments'];
HTH,
Jason k Larson
Aaron Downes wrote:
Dear Sir/Madam,
trying to displaying records by php get error :
Parse error: parse error in /hsphere/local/home/ozhomene/ardownes.com/ViewConta
,
Jason k Larson
electroteque wrote:
hi guys i am trying to create callback error functions handlers , i was
wondering if there was a way to get the file and line caught in a error
function say with a database abstraction query without having to explicitly
put the line and number in the query function
reference to the array.
The second line removes the first reference without removing the second.
See this for more info:
http://www.php.net/manual/en/language.references.unset.php
Regards,
Jason k Larson
David T-G wrote:
Brent, et al --
...and then Brent Baisley said...
%
% I had to do s
Are you wanting to have PHP dynamically create ODBC datasources instead
of creating them via the typical Control Panel method?
If so, and if possible, would be tricky, but I'll bet it can be done.
Regards,
Jason k Larson
Edward Peloke wrote:
Thanks Jason,
I know how to connect to an
http://www.php.net/manual/en/function.odbc-connect.php
Edward Peloke wrote:
Haven't had a single response so I am not sure if this isn't possible or
just really easy and something I should already know.
Thanks,
Eddie
-Original Message-
From: Edward Peloke [mailto:[EMAIL PROTECTED]]
Sent
high availability point of view).
HTH,
Jason k Larson
Heo, Jungsu wrote:
(Sorry for disturb you if this kind of message posted earlier.
but I can't find answers on mailint list archive)
Hello, there!
I'm developing web service.
There are several web servers for one Service.
(Linux virtual
Follow the ISAPI module install instructions.
http://www.php.net/manual/en/install.iis.php
Regards,
Jason k Larson
Mike Potter wrote:
Do you know how do do this?
Thanks,
Mike
"Jason K Larson" wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>Discus
Discussion on this list has suggested that it can work if PHP is set to
run as ISAPI, not CGI.
HTH,
Jason k Larson
Mike Potter wrote:
HELP!
I know I'm new at this so please don't laugh. But I can't get this to work!
I am using Microsoft IIS with the latest PHP installed.
t/manual/en/function.preg-split.php
HTH,
Jason k Larson
Philip Hallstrom wrote:
Why not:
$array = split("[ ,]", $line);
?
On Wed, 22 Jan 2003, Kris wrote:
Hi
I'm having dramers with fscanf
I have a line:
text, text, text
I can't work out how to scan removing the comma
he moment is to create a copy and
unset the original as you described as brute force.
HTH,
Jason k Larson
David T-G wrote:
Hi, all --
If I have an associative array
Array
(
[t] => Array
(
[t1] => temp1
[t2] => temp2
ksort.php
HTH,
Jason k Larson
David T-G wrote:
Hi, all --
If I have an associative array $a like
Array
(
[t] => temp1
[u] => ugh
[m] => moo
)
is there any way to re-order the keys so that
foreach (array_keys($a) as $k)
{ print "$k\n" ; }
will p
Unix/Linux use: cron (crontab)
Windows use: at
HTH,
Jason k Larson
Jack wrote:
Dear all
I built a page which will import data from csv files to database, i want
this task to be done automatically at the midnight of each date.
so does anyone know if there is any function work as similar as
http://phpwhois.org/
Ashley M. Kirchner wrote:
I'm looking for a script, or class, that I can feed a domain name to
and get back whois information, preferably already parsed into things
like, the registrar, the registrant, ns servers, created/expire dates...
Regardless of who the registrar
_4_1_0.php
Regards,
Jason k Larson
Dara Dowd wrote:
Is it "better" to pass variables through functions or to simply
declare them as global within the function's scope?
The variables in this particular case are things like MySQL database
connections and tablenames.
Thanks,Dara
Forms have two distinct methods. GET and POST. if the form has a
method of POST vars are stored in $_POST, ditto for GET.
Use $_POST['id'] not $_GET['id'] if your form uses the POST method.
HTH,
Jason k Larson
Jason k Larson wrote:
$query = "SELECT Newsheadline
$query = "SELECT Newsheadline, News, Contact FROM news WHERE Newsid =
'$_GET['id']'";
It looks like here that again $_GET['id'] has an empty value;
Jason k Larson
Frank Keessen wrote:
Thanks, but not working:
The error message:
Error in query: SELE
could alternatively use a meta-refresh for
the redirect. This would give you the chance for the headers to be read
and the cookie created.
Hope that helps,
Jason k Larson
J. Alden Gillespy wrote:
After I set a cookie and then send a redirect header, the cookie doesn't
show up, bu
ostgres
offer.
PHP uses Postgres' pglib for it's interface which puts the stability and
compatability in Postgres' hands, which of course is the best possible
thing to do. So you can rest assured that PHP knows how to talk to
Postgres.
HTH,
Jason k Larson
John Wells wrote:
I
That's not going to 'empty' the array it's going to undefine it.
Just overwrite the array with a new empty array like:
$a = array();
That keeps the variable an array variable type and is of course empty.
HTH,
Jason k Larson
Justin French wrote:
on 15/01/03 7:52 AM, Sc
print the before and
after session ids, if they change, you are just creating new empty
sessions, which should explain the lacking session variables.
HTH,
Jason k Larson
James Tan wrote:
Dear Sir/Madam,
I've been coding session for quite sometime, but this is the first time i
encount
s font
files if you want. So just copy, for instance, arial.ttf where you need it.
HTH,
Jason k Larson
Breno Cardoso Perucchi wrote:
How I can resolve this ?
This is my configuration of php (phpinfo)
Somebody can help me ? This is very important
GD
GD Support enab
FYI:
Don't like auto register globals ... try the following at the beginning
of your script.
ini_set ('register_globals','Off');
Works for me places I'm hosted at.
HTH,
Jason k Larson
Noel Wade wrote:
Hi all,
So I have a session variable; but with register_gl
Sounds vague.
Here's the reference page for starters.
http://www.php.net/manual/en/ref.ftp.php
HTH,
Jason k Larson
Mukta Telang wrote:
Hi,
I am told to " merge ftp and www " !
I cant understand what it means..
May be it means that it should be possible to browse ftp directory
Your SQL statement is selecting from two tables, it doesn't know which
table the 'active' column belongs to. Try one of the following as
appropriate to your schema:
tasks.active="yes"
or
users.active="yes"
HTH,
Jason k Larson
Bruce Levick wrote:
I h
How about if you quote index/key names in arrays like:
if($_GET['test'] == "test") { echo "A"; }
HTH,
Jason k Larson
Markus Jäntti wrote:
If have this piece of code (test.php):
if($_GET[test] == "test") { echo "A"; }
else { echo "B&quo
ps.name FROM shops WHERE name = '".$name."'";
$result = mysql_query($query);
while ($record = mysql_fetch_assoc($result)) {
while (list($feildname, $feildvalue) = each ($record)) {
echo $feildname. ": " .$feildvalue. "";
}
echo"";
}
?>
HT
What about if you use this instead:
HTH,
Jason k Larson
Elaine Kwek wrote:
i am now facing a problem in multiple select.
This is my example code in html.
123
234
345
i select all the value and pass to php...it should be a array.
but when i display the destList value, it just
How about:
http://www.php.net/manual/en/function.str-pad.php
HTH,
Jason k Larson
Cesar Aracena wrote:
Hi all,
Sorry to bother you all, but I need something I haven't used in quite a
long time. Dows anyone remembers the PHP function to fill a number with
zeros until it reaches a de
http://www.php.net/manual/en/function.mysql-insert-id.php
Cesar Aracena wrote:
Hi all,
This is a fast question. Does anyone remembers how to obtain the ID auto
assigned after an INSERT statement under MySQL?
Thanks in advanced,
Cesar L. Aracena
[EMAIL PROTECTED]
[EMAIL PROTECTED]
(0299) 156-3
do the following (in your welcome.php file).
$user = $_GET['user'];
HTH,
Jason k Larson
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
What version of PHP were you using prior to 4.2.3?
I'm using DOMXML support extensively (pun?) in my build of 4.2.3. So, what
errors are you getting or what makes you think its shot?
Jason k Larson
At 01:47 PM 12/28/2002 -0500, Russell P Jones wrote:
My sysadmin just complied 4.2.3
ll, have fun ...
Jason k Larson
@ Nilaab wrote:
Hello Everyone,
I have a multi-dimensional array called $cat_data, and I need to access
certain elements in the array using the next() and prev() functions. I did
consider using loops like for, foreach, and while...but for this
particular
applic
I can personally recommend www.icdsoft.com as they are CHEAP! But offer
everything you could hope for. Support has been awesome and service has
been very reliable.
Jason k Larson
Stephen wrote:
Hello,
I need a nice, reliable host for my new website. It needs to be fast,
reliable, needs a
I created a static link from my dev site to your referer2.php script,
and your phpinfo listed a HTTP_REFERER as expected.
Jason k Larson
John Nichel wrote:
Is this something that can be turned on/off in the .ini file or via the
webserver itself? Neither my test servers, nor the ISP which
You can't use REMOTE_PORT reliably for this purpose, it will always be
different, until they get recycled by the server.
How are you performing the redirect? via PHP, or maybe with Apache and
a Rewrite rule or something?
Jason k Larson
John Taylor-Johnston wrote:
>[SERVER_POR
88 matches
Mail list logo