each php function is executed by the internal function execute()
please include the details about this frames also (configure php with
--enable-debug first) e.g.:
(gdb) frame 6
output...
(gdb) print (char *)(executor_globals.function_state_ptr-function)-
common.function_name
output...
with this
Victor Spng Arthursson wrote:
Have been playing around a bit with this code, but I can't get it to
work with international characters For example, if I feed my function:
function split_bokid($bokid)
{
if
(preg_match('/^([a-z]{2,3})([0-9]{4,5}(\-[0-9]{1,2}){0,1})$/
I asked it before, and got a fine tool at this site:
http://www.babysimon.co.uk/khtml2png/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
Speaking of MySQL, I heard tale that 5.0 would include VIEWS, but I
can't find that in any of the new features logs. Anyone know about
this? It'd be a great feature to have. Unless, of course, anyone knows
how to do this without a CREATE VIEW statement.
[/snip]
It is called a SELECT
Donald Tyler [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Anyone know if Rasmus (or anyone for that matter) is writing a book on PHP
5? And when it might be available?
Core PHP Programming third edition by Leon Atkinson covers the PHP 5 (in
state it was when the book went to
Tim, et al --
...and then Tim Thorburn said...
%
% Hi,
Hi!
%
% A client of mine asked today if I could setup their current mass mailer to
% send out attachments - I've never sent attachments with the mail() function
% before, but before we get into that ... I wanted to ask an opinion of
Hi
This is my first experience with php... and I'm already having trouble...
I´m working on an html form for a website which uses php to create an
e-mail. My 'Submit' button has a php document as action. It works great on
my unix server, but when I try to submit the form on my windows server,
I get over a
thousand emails a day (29382 so far this month). When I get an important
email that requires me to drag out the web browser, it immediately becomes
pretty unimportant.
not to mention the countless mails we recieved from you a couple of
months ago on this mailing lists topic in both
2004-01-22 kl. 10.40 skrev Dagfinn Reiersl:
I assume you mean:
$test = split_bokid(12345);
Yes!
I don't know. It works fine on my computer. The letters display
correctly on the command line and even in Mozilla.
Hmmm try the following:
If you store session variables , but the user has session cookies disabled,
is there any way to recuperate those session variables?
--
--
Diana Castillo
Global Reservas, S.L.
C/Granvia 22 dcdo 4-dcha
28013 Madrid-Spain
Tel : 00-34-913604039
Fax : 00-34-915228673
email: [EMAIL PROTECTED]
Web :
Hi,
Friday, January 23, 2004, 12:24:24 AM, you wrote:
CSA Hi
CSA This is my first experience with php... and I'm already having trouble...
CSA I´m working on an html form for a website which uses php to create an
CSA e-mail. My 'Submit' button has a php document as action. It works great on
CSA
snip
If you store session variables , but the user has session cookies
disabled,
is there any way to recuperate those session variables?
/snip
Yes, look at the session.use_trans_sid variable.
http://www.php.net/session
If cookies are disabled, php will pass the session id as a ur variable
or
Thanks Paul...,
That makes a lot of sense. My first thought is to place the files in
question in a particular subdirectory and do a readdir to populate the
array.
-Original Message-
From: Paul Chvostek [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 21, 2004 11:18 PM
To: Alex
Diana Castillo wrote:
If you store session variables , but the user has session cookies disabled,
is there any way to recuperate those session variables?
--
--
Diana Castillo
Global Reservas, S.L.
C/Granvia 22 dcdo 4-dcha
28013 Madrid-Spain
Tel : 00-34-913604039
Fax : 00-34-915228673
email:
VIEWs are those nice things that PostgreSQL includes that MySQL doesn't
yet. ;P
Jay Blanchard wrote:
[snip]
Speaking of MySQL, I heard tale that 5.0 would include VIEWS, but I
can't find that in any of the new features logs. Anyone know about
this? It'd be a great feature to have. Unless,
maybe this work:
replace the special-characters first, eg.:
$bokid = str_replace(å, _, $bokid);
and replace them back after preg_match
or try the preg_match with the hexcode of this special chars:
\xhh character with hex code hh
(http://ch2.php.net/manual/de/pcre.pattern.syntax.php)
g. martin
If I want to store a session id in a database, how would I do it , like
this?
$session_id=SID ; ?
and then if I want to retrieve this session id and get all of the info back
that goes with this session id, I would say
session_start()
and then what?
thanks
--
--
Diana Castillo
Global Reservas,
Diana Castillo wrote:
If I want to store a session id in a database, how would I do it , like
this?
$session_id=SID ; ?
and then if I want to retrieve this session id and get all of the info back
that goes with this session id, I would say
session_start()
and then what?
thanks
You'll find some
Joe Harman wrote:
Thanks for your comments Chris and Rob... Chris you have great points to
make, my ears are wide open...
The reason I thought about storing the array in a blob is because every
test generated will be different. the 102 question test will be generate
randomly from a bank of 500
--- Diana Castillo [EMAIL PROTECTED] wrote:
If you store session variables , but the user has session cookies
disabled, is there any way to recuperate those session variables?
Cookies come in two types: session cookies and persistent cookies. Session
cookies have no set expiration date, so they
snip
If I want to store a session id in a database, how would I do it ,
like
this?
$session_id=SID ; ?
and then if I want to retrieve this session id and get all of the info
back
that goes with this session id, I would say
session_start()
and then what?
thanks
/snip
You could just have php store
--- Diana Castillo [EMAIL PROTECTED] wrote:
If I want to store a session id in a database, how would I do it, like
this?
$session_id=SID ; ?
and then if I want to retrieve this session id and get all of the info
back that goes with this session id, I would say session_start() and
then what?
Anyone know of any php document management systems? if its open source that
would be even better.
TIA
Angelo
Disclaimer
This e-mail transmission contains confidential information,
which is the property of the sender.
The
--- Diana Castillo [EMAIL PROTECTED] wrote:
php does it if the user has not disabled cookies and if you remain
on the same server, but if you are changing servers and the user has
disabled cookies
If by changing servers you mean the user visits a different domain, then
passing the session
On 22 January 2004 14:24, Carolina Silva Animas wrote:
Hi
This is my first experience with php... and I'm already
having trouble...
I´m working on an html form for a website which uses php to create an
e-mail. My 'Submit' button has a php document as action. It
works great on
my unix
I'm trying to get php 4.3.4 installed as a module for Apache 1.3.28. I
have apache unzipped/untarred and I ran the ./configure script for it
(per the instructions in the PHP install). I then configured php with
the following line-
$ ./configure --with-mysql=/usr/local/mysql \
Hi all,
I am new member to the list, let's see ;)
I am hosting my site in a shared hosting plan in US while I am in Saudi
Arabia. I want to show the current datetime at my local. Should I use
setlocale()? I mean is there a way which will give me the local datetime
without calculating the
On Thu, 2004-01-22 at 09:43, Thaddeus J. Quintin wrote:
I'm trying to get php 4.3.4 installed as a module for Apache 1.3.28. I
have apache unzipped/untarred and I ran the ./configure script for it
(per the instructions in the PHP install). I then configured php with
the following line-
snip
Should I use
setlocale()? I mean is there a way which will give me the local
datetime
without calculating the difference manually?
/snip
I have not used it, but it looks like setlocale() will give you what
you want.
http://www.php.net/manual/en/function.setlocale.php
snip
Suppose that I
Hamid Hossain wrote:
Hi all,
I am new member to the list, let's see ;)
I am hosting my site in a shared hosting plan in US while I am in Saudi
Arabia. I want to show the current datetime at my local. Should I use
setlocale()? I mean is there a way which will give me the local datetime
without
Radith --
...and then Raditha Dissanayake said...
%
% I get over a
% thousand emails a day (29382 so far this month). When I get an important
...
% not to mention the countless mails we recieved from you a couple of
% months ago on this mailing lists topic in both the PHP and the qmail
% list
Hi,
I have an question on how to create a completely database / xml driven site
i.e. the page names, links, the site map etc are held in the database. I
think I have solved most problems but what I would really like to do is
limit the number of pages I need. Can I manipulate the server such that
Brad Pauly wrote:
On Thu, 2004-01-22 at 09:43, Thaddeus J. Quintin wrote:
I'm trying to get php 4.3.4 installed as a module for Apache 1.3.28. I
have apache unzipped/untarred and I ran the ./configure script for it
(per the instructions in the PHP install). I then configured php with
the
Hi All,
I have a question about connecting to a MSSQL back end. I keep getting the
error that the php_mssql.dll wont load because it isn't present.
From what I can see so far is that php needs to be compiled with that
extension uncommented in order to get the dll. Is that correct?
Thank you Ü
Now, I don´t get all the warnings, but the php file still doesn't recognize
the values for the variables.
Do you have any clue of why this is happening?
Carolina
-Mensaje original-
De: Ford, Mike [LSS] [mailto:[EMAIL PROTECTED]
Enviado el: Jueves, 22 de Enero de 2004 10:31
I assume you are working on a win32 platform, if so uncomment that
relevent line in the php.ini file and copy the dll to the win folders.
(all this is explained in great detail in teh installation guide)
If you are working on linux this approach will not work with mssql.
Alex Hogan wrote:
Hi
hi,
If i understand you correctly this can be done using apache url
rewrites. We have done something similar (though not with php) on
http://www.kelanisearch.com/ on this site regardless of the page that's
accessed the same script is called, isn't that what you are looking for?
If so there
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
If your Web server is running on a machine that is separate from your
database server, then you'll also need to copy the file ntwdblib.dll
from the database server to your C:\WINDOWS\system32 folder. PHP needs
that DLL for the mssql functions to work
Mark Charette wrote:
If you read through the archives you'll find it isn't so much that
PHP is the problem per se, but many of the PHP modules. If you use the
multi-threading model of Apache 2 (the raison d'etre for using
Apache 2 for
most people) then all the modules have to be thread-safe,
--- Thomas Svenson [EMAIL PROTECTED] wrote:
I am using the pre-forked model in Apache2 yes. So far I haven't
noticed any problems with PHP(4/5beta).
If the problems with PHP is with the non pre-forked models, then its
time to update the recommendation to not run PHP on Apache2. Instead
it
Donald Tyler wrote:
Anyone know if Rasmus (or anyone for that matter) is writing a book
on PHP 5? And when it might be available?
I bought Core PHP Programming, 3rd edition. It is written by Leon Atkinson
together with Zeev Zend Suraski. The foreword is by Andi also Zend
Gutmans.
It covers
Hello,
I am having problems generating an array based on data passed from a form.
The form has a series of fields with the same name math. When submited if
i have register_globals=on i have no problems calling a $math variable and
it spits out all the values assigned to math, however with
snip
I am having problems generating an array based on data passed from a
form.
The form has a series of fields with the same name math. When
submited if
i have register_globals=on i have no problems calling a $math variable
and
it spits out all the values assigned to math, however with
PHP has encountered an Access Violation at 00C4DA27
I'm getting this error a lot with an intensive script I'm running. Though
I've also seen it with other, less intensive scripts in the same project.
I will get the error 10 times in a row. Then have the script run ok
for a while. This is on
Personally, I would think XP is extremely buggy on the memory allocation
part... It seems unable to handle LOTS of allocations/reallocations after
eachother... I made a program, which can do one allocation 260 times or so..
Then it crashes... I haven't seen any logic at all in this...
Hi Tristan
It seems wierd to me that $math would be an array even after that you have
named all your form fields to $math.
Well, what you can do otherwise that is a very known method is naming your
fields name[].
In your case this would be math[].
If you name many of your fields this way,
I still can't access anything on bugs.php.net so I'm not sure exactly what
you need. I grabbed all of the execute() frames, though, and ran that print
function and got this:
(gdb) print (char
*)(executor_globals.function_state_ptr-function)-common.function_name
Attempt to extract a component of
Dan Egli wrote:
Except that a lot of software, including the Webmail system I
have(SquirrelMail), requires mod_php. If it was a simple decision
I'd say oh well. But the fact is that I have several pieces of
software that require mod_php. If it is not currently safe to run
PHP as Roxen
Chris Shiflett wrote:
So, I'm not sure what documentation you're referring to exactly, nor
am I sure that there would be a lot of support in updating it.
This one:
-8.
Warning
Do not use Apache 2.0 and PHP in a production environment neither on Unix
nor on Windows.
-8.
You
Please disregard my last post - I'd switched Apache back from the debug
module for the night and forgotten to turn it back on.
I've attached the full trace but here's the main part:
(gdb) print (char
*)(executor_globals.function_state_ptr-function)-common.function_name
$4 = 0x7bb69250
Perfect, complicated but perfect!
Thanks
Raditha Dissanayake [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
hi,
If i understand you correctly this can be done using apache url
rewrites. We have done something similar (though not with php) on
http://www.kelanisearch.com/ on this
snip
echo form method='get' action='exams2.php';
$Student = array (albert Einstein, Ivan the Terrible, Napolon,
Simon Bolivar, Issac Newton);
while(list(,$name)=each($Student)){
echo what grade did $name get in Maths?;
echobrbr;
echo select name='Math[]'
Hello.
OK, so I'm new and I'm doing this Useractive/O'Reilly Learn PHP course
and they want us to make a guessing game where you have to guess a
number between 0-100 and get 10 tries; each time you're told if your
guess was higher, or lower, or just right.
I've hit a wall. Can you help me
Hi!
How I can do following:
1.
i have page which list (admin)
id menunamepagenameno
1 First First page 1 edit (link to edit-page)
2 Second Second page 2 edit
3 Third Third page 3 edit
Hi!
How I can do following:
1.
i have page which list (admin)
id menunamepagenameno
1 First First page 1 edit (link to edit-page)
2 Second Second page 2 edit
3 Third Third page 3 edit
I can
I thought this was possible, but it doesn't seem to be working:
I have a class, that has a private variable called $this-Connection, which
is a Database Connection pointer to a MySQL database. During the lifetime of
the Class, it uses the connection multiple times without a problem.
The class
Jonno Agnew wrote:
if ($guessnumb) {
Try $_GET['guessnumb'] or $_POST['guessnumb'] if the form is posted.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Everyone:
On top of the amazing success of a PHP meetup ( http://php.meetup.com/ )
with 3,430 members, I would invite everyone to check out the new Software
Developers meetup. This sounds like a great way for software developers in
general to get together in person around the world to discuss
Got the book Core PHP Programming 3rd Edition, which covers PHP5.
One thing that it talks about is that with, specially, the new oop model it
will now be much easier to develop in PHP using Design Patterns (DP).
Since that is new to me I have been searching for some easy reading to
understand
On Thu, 2004-01-22 at 14:31, Thomas Svenson wrote:
Got the book Core PHP Programming 3rd Edition, which covers PHP5.
One thing that it talks about is that with, specially, the new oop model it
will now be much easier to develop in PHP using Design Patterns (DP).
check out
For the first time ever I installed FreeBSD 4.9, I then installed Apache 1.3 and PHP
4.3.3-CGI from /usr/ports on the
machine. It seems that everything is ok, but when I try to use a .php file it does not
run it through the parser. So
when I hit test.php in my browser it outputs:
?
print Test
OK, now I have done some work and it gets even stranger.
Two Objects
Validator
Importer
Both objects have private variables called $this-Connection
However, when I change the DB for one objects connection pointer, the other
objects connection pointer ALSO changes DB.
Is it not possible to
Hi all!
I'm trying out this script I found in a book I bought. It does not work
though.. The code is below. It looked like an easy solution for what I want
to do.
It takes a template PDF file and replaces description1 with a value,
bedr1 with a value,...
I want to be able to generate an PDF
Ray Hunter wrote:
On Thu, 2004-01-22 at 14:31, Thomas Svenson wrote:
Got the book Core PHP Programming 3rd Edition, which covers PHP5.
One thing that it talks about is that with, specially, the new oop
model it will now be much easier to develop in PHP using Design
Patterns (DP).
check out
Tom Ray [List] wrote:
[snip]...
?php
print Test 123;
?
I'm sure I'm missing a line or two in my httpd.conf, but I really don't know what
they would be. Anyone with experience
with FreeBSD/Apache/PHP give me a hand?
Do you have the following line in your httpd.conf:
AddType
Looking at the URL:
guess.php?guessnumb=21guessnumb=tries=1
I notice that 'guessnumb' is in there twice.
PHP will use the last one in that list
I notice that in your form, you have two inputs with the same name
input type=text name=guessnumb size=5 maxlength=3 /
input type=hidden
It depends, how are you creating the connections, and where are you keeping
the connection ID
and when you query, or select database, or anything to do with the
databases, do you make sure you specify that connection id?
//Notice the TRUE, that creates a new conenction, and doesnt use the
Tom Ray [List] wrote:
For the first time ever I installed FreeBSD 4.9, I then installed Apache 1.3 and PHP
4.3.3-CGI from /usr/ports on the
machine. It seems that everything is ok, but when I try to use a .php file it does not
run it through the parser. So
when I hit test.php in my browser it
As far as AddType goes for PHP this is what I have:
IfModule mod_php3.c
AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php3-source .php3s
/IfModule
IfModule mod_php4.c
AddType application/x-httpd-php .php
AddType
Tom Ray [List]
--- Tom Ray [List] [EMAIL PROTECTED] wrote:
It seems that everything is ok, but when I try to use a .php
file it does not run it through the parser.
Make sure this is in your httpd.conf:
AddType application/x-httpd-php .php
Of course, also make sure you have PHP. :-)
Chris
=
Chris
--- Tom Ray [List] [EMAIL PROTECTED] wrote:
As far as AddType goes for PHP this is what I have:
[snip]
IfModule mod_php4.c
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
/IfModule
My bet is that you didn't build Apache with PHP
Design Patterns is a big category that can cover any area of design. In
general the idea is that there are Best practices ways of solving
particular design problems. Java is the area (particularly J2EE) where I've
seen the biggest promotion of the idea coming out of a company (in this case
Sun)
Tom Ray [List] wrote:
[snip...]
IfModule mod_php4.c
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
/IfModule
AddType application/x-httpd-php3-source .php3s
/IfModule
Seems you have two '/IfModule's in continuation. Did you
You're running into an old error. I believe that this was a problem with
previous versions of PHP, are you using the newest version?
Barring that, if you add true to the end of the mysql_connect call to
make it a different connection, that should also fix things.
Or you could try using
Hey, Mita Kuuluu?
I'm not exactly sure what you mean, but basically you want to edit and move
around the values?
the 'no' field is basically an order?
to do the edit page you can use a combination of HTML forms and the mysql
results...
and to move them up or down, you can have a link that has
Hi Tom,
On Thu, Jan 22, 2004 at 04:45:08PM -0500, Tom Ray [List] wrote:
For the first time ever I installed FreeBSD 4.9, I then installed
Apache 1.3 and PHP 4.3.3-CGI from /usr/ports on the machine. It seems
that everything is ok, but when I try to use a .php file it does not
run it through
Tom Ray [List] wrote:
As far as AddType goes for PHP this is what I have:
IfModule mod_php3.c
AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php3-source .php3s
/IfModule
IfModule mod_php4.c
AddType application/x-httpd-php .php
Hi everyone,
I was just curious if there is an equivalent of DBM files used in Perl
scripts.
Thanks in advance.
-Gohaku
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi.
I have a db class that accesses and executes querys as well as returns
the result (if you so choose to have it returned).
One method within this class is called query() (how genius!). It's
defined like so:
?php
function query($sql, $current_line)
{
$this-Result = mysql_query($sql) or
Hello,
1- Would someone please tell me if it is possible to
run OOP codes written for PHP4 on PHP5 yet? Or we need
to change codes?
2- Also what should we do? Continue with developing
OOP codes for PHP4 or wait for PHP5 to appear on
hosting servers (mostly using redhat distros) and then
develop
At the risk of being glib, DBM files.
http://www.php.net/manual/en/ref.dba.php
-Original Message-
From: gohaku [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 22, 2004 5:04 PM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP Equivalent of DBM Files
Hi everyone,
I was just curious if there
In a recent discussion about the MS terra server it was mentioned
this could not be done with PHP because the terraserver
has special front-end code that allows images to be passed by reference,
so the image data goes directly from the database access back end to the
client browser, without
On Friday, January 23, 2004, at 03:17 PM, Kevin Waterson wrote:
The implication is that the 'middle layer' (PHP) would slow things down
to an unusable state. so, when I extract an image from the database and
echo it to a webpage, is there any copying done? or is it a direct
stream to the
On Friday 23 January 2004 09:38, Chris W. Parker wrote:
?php
function query($sql, $current_line)
{
$this-Result = mysql_query($sql) or die($this-stop($current_line));
if(!$this-Result)
{
echo mysql_error();
}
The if-clause will never be evaluated because if there had been an
This one time, at band camp, Justin French [EMAIL PROTECTED] wrote:
In other words, you HTML source looks like this:
img src='images.php?id=45'
NOT
img src='{RAW BINARY DATA HERE}'
Yes, but how is this different from anything the terraserver is doing?
when the images.php script is
Hi,
Friday, January 23, 2004, 2:17:07 PM, you wrote:
KW In a recent discussion about the MS terra server it was mentioned
KW this could not be done with PHP because the terraserver
KW has special front-end code that allows images to be passed by reference,
KW so the image data goes directly
This one time, at band camp, Tom Rogers [EMAIL PROTECTED] wrote:
php can output the stream without having to save it to a file first if
that is what is worrying you.
That was sorta my concern, but not so much as a file, does it copy to
memory anywhere, or, is it a direct stream to the
Hi,
Friday, January 23, 2004, 3:18:06 PM, you wrote:
KW This one time, at band camp, Tom Rogers [EMAIL PROTECTED] wrote:
php can output the stream without having to save it to a file first if
that is what is worrying you.
KW That was sorta my concern, but not so much as a file, does it copy
89 matches
Mail list logo