Yasuo Ohgaki wrote:
> How did you install Apache and PHP? PRM or source?
> I compile from source for these. You might have httpd.conf that is actually used
> by apache may be located some where else.
>
> If you are compile from source and need the same file layout as RedHat,
> use --with-layout=R
On 31 Mar 2001 22:03:54 -0800, Sean Weissensee <[EMAIL PROTECTED]> wrote:
>I have a shopping cart system I wrote which display several detail lines
>of items purchased, at the moment if the user changes a quantity they have
>to manualy
>click a link to recalulate the total, I would like this to ha
sniper Sat Mar 31 22:20:45 2001 EDT
Modified files:
/php4/ext/gdgd.c gd_ctx.c
Log:
According to GD documentation the macros should be used instead..
Index: php4/ext/gd/gd.c
diff -u php4/ext/gd/gd.c:1.119 php4/ext/gd/gd.c:1.120
--- php4/ext/gd/gd.c:1.11
I would like to achieve this as well,
I have a shopping cart system I wrote which display several detail lines
of items purchased, at the moment if the user changes a quantity they have
to manualy
click a link to recalulate the total, I would like this to happen as soon as
the
user tabs of the qt
sniper Sat Mar 31 21:55:22 2001 EDT
Modified files:
/php4/ext/informix ifx.ec
Log:
Fixed bug #10095.
Index: php4/ext/informix/ifx.ec
diff -u php4/ext/informix/ifx.ec:1.52 php4/ext/informix/ifx.ec:1.53
--- php4/ext/informix/ifx.ec:1.52 Sun Feb 25 22:
On 31 Mar 2001 21:07:59 -0800, Michael Hall <[EMAIL PROTECTED]> wrote:
>
>I'm using the following expression to check input strings:
>
>if (!ereg("^[[:alnum:]_-]+$", $string)) { get outta here! }
>
>This works fine except for when a string has spaces, as in text. What do I
>need to add to the expr
On 31 Mar 2001 20:33:56 -0800, LDL Enterprise <[EMAIL PROTECTED]>
wrote:
> Could someone please give me a clue. I have a form
> that pulls the quantity from a mysql database. I want the user to be
> able to update the quatity by just entering the new quantity and when
> th
sniper Sat Mar 31 21:42:07 2001 EDT
Modified files:
/php4/ext/gdgd.c gd_ctx.c php_gd.h
Log:
Fixed bug #8137 and killed some compile warnings.
Index: php4/ext/gd/gd.c
diff -u php4/ext/gd/gd.c:1.118 php4/ext/gd/gd.c:1.119
--- php4/ext/gd/gd.c:1.118
apparently, "echo" solved my problem - much to my
surprise & disgust, considering the head i was putting
into it. printf() apparently didn't print any special
chars coming in it - while echo prints anything &
everything without a problem!!!
Though i am having some problems with slashes, i guess
s
awright, basically what i want is to write a script
that can open a file and read some values that i want,
for eg:- yahoo mail. if i have an account and i can
make a page that logs on to my yahoo mail using my
account, i want to display the number of unread
messages ( & perhaps read messages ) on
I missed that you are discussing about transitivity. Your claim sound fair to
me too. I'm relatively new to PHP :) So I'm not sure, but it's probably because
historical reason that PHP dose not have transitivity for equality operator.
We can still workaround with type casting, though.
Do you kn
I'm using the following expression to check input strings:
if (!ereg("^[[:alnum:]_-]+$", $string)) { get outta here! }
This works fine except for when a string has spaces, as in text. What do I
need to add to the expression to handle spaces (internal, not at the
beginning or end).
Thanks
Mick
I don't think this is possible. If you're using PHP, then data must be
sent to the server via a POST or GET method. As far as I know, that means
using a form with submit button.
Sounds like you might be thinking Javascript or something.
Mick
On Sat, 31 Mar 2001, LDL Enterprise wrote:
> Hi all
Hi all,
Could someone please give me a clue. I have a form that
pulls the quantity from a mysql database. I want the user to be able to
update the quatity by just entering the new quantity and when they unfocus
on the text box it will automatically update without pressing a submit
button
New version pushed with all the current CVS changes.
- fixes for numerous small bugs
- fix for memory alignment errors on 64 bit systems
- many new cache-visibility functions added
- optional fcntl locks under shm versions (look in apc_cache.c)
As always, available at http://apc.communityconnect
Oops I pasted older RFC number for HTTP/1.1, newer version is
RFC 2616
Reading older version will also help, though.
--
Yasuo Ohgaki
"Adi Wibowo" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> Hi I write a script that create a report.
> Using header ("lo
Reading RFCs will help.
RFC 2068 RFC 1945 RFC 2936
Regards,
--
Yasuo Ohgaki
"Adi Wibowo" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> Hi I write a script that create a report.
> Using header ("location : filename") to tell browser to download file
> ins
Firstly, I spent 3 hours searching the archives and trying all the
suggestion that I could find. No go.
The box that I want to put this on is a Cobalt Qube2
The pdflib compiles and installs correctly as a shared library
It is compiled with tiff and zlib support only (png is explicitly off)
Here
How about take a look at notes (PHP Manual)?
http://www.php.net/manual/en/install-windows.php
You might need to change \ to /, or / to \, or get rid of drive letter in
extension_dir, as I needed to load extension for PHP for Windows.
Regards,
--
Yasuo Ohgaki
"Christian Dechery" <[EMAIL PROTECT
You need to provide what OS you are using.
I think you may get better response if you ask mailing list discussing about
your OS for this matter.
Regards,
--
Yasuo Ohgaki
""pnp"" <[EMAIL PROTECTED]> wrote in message
013301c0b8e5$37735220$[EMAIL PROTECTED]">news:013301c0b8e5$37735220$[EMAIL PROTE
There is a section for that in the PHP Manual
http://jp.php.net/manual/en/migration4.php
I suggest you to read www.zend.com documents also.
Regards,
--
Yasuo Ohgaki
""Chris"" <[EMAIL PROTECTED]> wrote in message
00ce01c0b942$4cc0d5a0$01c8c8c8@ibcserver">news:00ce01c0b942$4cc0d5a0$01c8c8c8@ib
It's not explain why you get additional char at the end of string, but chop() in
PHP does not get rid of last char, but it also suppose to get rid of spaces
including newline.
What char code are you using? Char code may be the cause.
--
Yasuo Ohgaki
""Marcus Ouimet"" <[EMAIL PROTECTED]> wrote i
If you need shorter result, how about use a part of md5 hash result?
--
Yasuo Ohgaki
""David P. Schwartz"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> the PHP crypt function uses DES and it only generates a hash based on the
> first 8 chars of a string, a
How did you install Apache and PHP? PRM or source?
I compile from source for these. You might have httpd.conf that is actually used
by apache may be located some where else.
If you are compile from source and need the same file layout as RedHat,
use --with-layout=RedHat (or like) for Apache's con
PHP has type juggling feature. PHP4 supports "total equality"(?) operator "===".
If you need variable to be match for both type and value. Use "===", then you
can avoid type juggling.
http://www.php.net/manual/en/language.types.type-juggling.php
http://www.php.net/manual/en/language.operators.com
Can somebody please help me out??
I'm going nuts...
what's wrong with this piece of code?
if(!isset($script_total_time))
{
// register the session variables to keep track of
step times
$script_total_time=(float)$tot
Hum. Maybe it is because of the weekend or maybe it is because the
combination of RH7, Oracle and PHP is too volitile, but I have yet to
hear of anyone who has gotten this to work. Well, my experience brings
up serious doubts that it can be done (but I will persist!)
I will quickly recap if
Has anyone successfully handled MS SQL error messages?
some articles? or code? anyone?
thanks...
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [E
I'm trying to figure out how to do a WHILE inside of an array.
Here is the while statement.
$modyear = "1982";
$curyear = date("Y");
$curyear = $curyear + 1;
while($modyear <= $curyear){
echo "".$modyear.;
$modyear++;
}
The array I want to use the WHILE in, looks like this. The X is where I
w
jmoore Sat Mar 31 16:35:50 2001 EDT
Removed files: (Branch: PHP_4_0_5)
/php4/ext/midgard topic.c style.c snippetdir.c snippet.c
sitegroup.c session.sql session.modules.c
session.c README.session preparser.c
emile Sat Mar 31 16:23:56 2001 EDT
Removed files:
/php4/ext/midgard .cvsignore ChangeLog INSTALL LICENSE Makefile.in
README.session article.c attachment.c calendar.c
config.m4 config.m4.session element.c event.c
My setup is PHP 4.0.4p1 with Apache 1.3.19 (PHP as a module), and sendmail
at /usr/sbin/sendmail. I have sendmail_path = /usr/sbin/sendmail -t -i in
my php.ini. THis is all on Linux.
When I use mail() in any which way, it returns as if it were sucsessful,
but in my maillog I see;
Mar 31 16:22:16
Here's what I want to do:
multiple forms on separate pages that collect data from the user. When all
appropriate data is entered, the user can send all data to the process
script. I want the user to be able to jump from one page to another in no
particular order and back while entering data. Th
zeevSat Mar 31 14:54:07 2001 EDT
Modified files: (Branch: PHP_4_0_5)
/php4/ext/standard output.c
Log:
MFH - header handling with output buffering
Index: php4/ext/standard/output.c
diff -u php4/ext/standard/output.c:1.48.2.1 php4/ext/standard/output.c:1.4
zeevSat Mar 31 14:53:19 2001 EDT
Modified files:
/php4/ext/standard output.c
Log:
Fix headers handling with output buffering
Index: php4/ext/standard/output.c
diff -u php4/ext/standard/output.c:1.51 php4/ext/standard/output.c:1.52
--- php4/ext/standard/
I don't recommend putting the Session ID in the URL. Subscibed members could
pass URL's to eachother and that way they could have eachother's settings.
""David Hynes"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I am using sessions to password protect a sec
I am using sessions to password protect a section of a website.
I am storing the session ID in a cookie but just in case cookies are not
enabled, I am also passing the session ID in the query string to each page
in the protected directory.
Please can someone tell me if this could cause any probl
Hi I write a script that create a report.
Using header ("location : filename") to tell browser to download file
instead of displaying it to screen.
On some computer it work, but on another (using the same browser) is
always displayed. I try to change file extension to treat browser to
download
I get the "No such file or directory" right after the "license box" shows up
in the PHP4 compile. Like this (no matter what directory I've tried in that
big old list so far):
./WTConfigure: --with-openlink=/usr/local/openlink/lib: No such file or
directory
"./WTConfigure" is just a shell script
php-general Digest 31 Mar 2001 20:02:27 - Issue 600
Topics (messages 46438 through 46466):
$PHP_SELF
46438 by: Steve Haemelinck
46439 by: elias
Re: PostgreSQL users
46440 by: Yasuo Ohgaki
Problems with files!
46441 by: Ales Kunst
GD/PHP Image Creation
Hi there,
sometimes I test a new regular expression.
So I've created a test site, which works with
ereg, eregi, preg_match on PHP 4.0.4. Some options
allowed and a benchmarks shows how effective an
expression is.
You're invited to take a look here:
http://www.php.comzept.de/rexpr/
Please send m
ahh, ok, misread your post...don't know what it could be..don't have
experience with php and dlls...
best of luck!
-jack
Christian Dechery wrote:
>
> of course...
> it's while loading apache that the error message appears...
>
> >restart apache/php?
> >
> >-jack
> >
> >Christian Dechery wrote:
of course...
it's while loading apache that the error message appears...
>restart apache/php?
>
>-jack
>
>Christian Dechery wrote:
> >
> > I posted a message a while ago about having trouble loading php_mssql.dll
> > extension.
> > It gave me that error: 'can't find ...'. So I was stuppid enough
restart apache/php?
-jack
Christian Dechery wrote:
>
> I posted a message a while ago about having trouble loading php_mssql.dll
> extension.
> It gave me that error: 'can't find ...'. So I was stuppid enough to realize
> I didn't have MS SQL 7 installed here.
>
> Somone here told me to downlo
--
$_ = 'George Schlossnagle';
s#.#(ord$')-(ord$&)+((index($_,$')-$&)?1002:0)#ego;s#-#((substr($],4,1)-6)?67:$-[0])#eog;$:=$_;print
join('',(map chr$_,reverse
map{substr($:,(3*$_),3)+(11,-109,-14,94,-894,-28,-61,-202,-417,83,-20,-678,53,96,4,-494,82,-869,-826,24,16,-684,-450,-27)[$_]}(0...length
I posted a message a while ago about having trouble loading php_mssql.dll
extension.
It gave me that error: 'can't find ...'. So I was stuppid enough to realize
I didn't have MS SQL 7 installed here.
Somone here told me to download a proggie called Dependency Walker, that
lists all the depende
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Are you bored and want some excitement?
Las Vegas Has Just Showed Up In Your Neigbourhood!
In fact, you wont even have to leave your computer!
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Queensclub Online Casino
> I want to check if a variable contains a price, like
> $19.99
> It definitely would be a dollar sign, two integers a dot and
> two integers. Here is what I tried which doesn't work.
>
> if (ereg("\$([0-9]{2}).([0-9]{2})", $Price))
> or
> if (ereg("\$([0-9]{2})\.([0-9]{2})", $Price))
>
> Than
I've just finished a proof of concept tutorial about how to create a GTK app
to be your backend on a dynamic PHP site. It steps you through makeing the API,
the GTK app, and the frontend. You can check it out at:
http://gtk.php-coder.net/docs/joe2001_03_31.4.html
For you GTK users it also has a
you can use shared memory functions to ineract between
C and PHP.
--- Ft Karras <[EMAIL PROTECTED]> wrote:
> Somebody knows if it is possible to link C and PHP?
>
> I have a C library and need to 'include' with PHP
> code, as it does PERL,
> is it possible?
>
> Thanks
>
> --
> PHP General M
Somebody knows if it is possible to link C and PHP?
I have a C library and need to 'include' with PHP code, as it does PERL,
is it possible?
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To
that didn't work. I tried that.
"CC Zona" <[EMAIL PROTECTED]> wrote in message
9a3hk3$bn7$[EMAIL PROTECTED]">news:9a3hk3$bn7$[EMAIL PROTECTED]...
> In article <9a3fme$4hg$[EMAIL PROTECTED]>,
> [EMAIL PROTECTED] ("McShen") wrote:
>
> > i have a table named "refer"
> > I wanna duplicate a table nam
Jon Jacob wrote:
> Jeff Oien wrote:
>
> > I want to check if a variable contains a price, like
> > $19.99
> > It definitely would be a dollar sign, two integers a dot and
> > two integers. Here is what I tried which doesn't work.
> >
> > if (ereg("\$([0-9]{2}).([0-9]{2})", $Price))
> > or
> > if
I am still only getting the source of the php file. Has anybody
successfully compiled Apache 1.3.x (1.3.19 in my case) and PHP
(4.0.4pl1) under RH7? My httpd.conf has the proper AddType line and the
php4 module is installed according to httpd -l.
If you have done this successfully, please let
On Sat, 31 Mar 2001 20:07:10 +0600, ([EMAIL PROTECTED]) wrote:
>Dear Friends,
>
>I am accessing a MySQL database through PHP.
>
>I have to calculate the difference between todays date and the date
>obtained
>from MySQL database.
select to_days(curdate())-to_days(datefield) from table;
- Mark
Jeff Oien wrote:
> I want to check if a variable contains a price, like
> $19.99
> It definitely would be a dollar sign, two integers a dot and
> two integers. Here is what I tried which doesn't work.
>
> if (ereg("\$([0-9]{2}).([0-9]{2})", $Price))
> or
> if (ereg("\$([0-9]{2})\.([0-9]{2})", $Pr
Here is my problem.
I have a file, static.php
static.php writes to index.html by way of...
$filename = "/web/h16/docs/index.html";
$fp = fopen("$filename","w");
fwrite($fp, "\n");
etc..
If I hit static.php from the command line, index.html gets written just fine.
static.php does it's
I want to check if a variable contains a price, like
$19.99
It definitely would be a dollar sign, two integers a dot and
two integers. Here is what I tried which doesn't work.
if (ereg("\$([0-9]{2}).([0-9]{2})", $Price))
or
if (ereg("\$([0-9]{2})\.([0-9]{2})", $Price))
Thanks.
Jeff Oien
--
PHP
I keep a copy of php.4.0.3.pl1 at
http://glaykos.mm.di.uoa.gr/~rouvas/tmp/inet/linux/php/>
Both the original version I downloaded as well as a version with the
bc-lib and conf files for SuSE exist.
-Stathis.
James Moore wrote:
>
> > I need an older version of PHP because my pam_auth won't
sas Sat Mar 31 07:53:14 2001 EDT
Modified files:
/php4/ext/ircg ircg.c php_ircg.h
Log:
Add ircg_html_encode() which is an interface to the standard
HTML encoder for URLs and color attributes.
Index: php4/ext/ircg/ircg.c
diff -u php4/ext/ircg/ircg.
Lots of ways to do it, here's one.
Convert them both to unix timestamps and subtract.
$nowstamp=mktime() ;
$result=mysql_query(SELECT UNIX_TIMESTAMP(mydatefield) AS dbdate FROM
mydatabase);
$row=mysql_fetch_array($result);
$dbdate=$row["dbdate"];
$thedifference=$nowstamp - $dbdate;
//above
This is what I'd do:
$sql = "SELECT disinct category FROM article ORDER BY category";
$r = mysql_query($sql);
while($cat = mysql_fetch_array($r))
{
$id = $cat['id'];
$sql = "SELECT * FROM article WHERE category='$id'";
$x = mysql_query($sql);
while($row = mysql
At 11:58 30/3/2001 -0500, you wrote:
>Hope it helps.
>Let me know if it works for you.
well... it was in fact a great idea... but it didn't work... for some
reason... ob_*() functions do not grab warnings and error messages
generated by PHP... so warnings AND the error messages were lost...
ma
Dear Friends,
I am accessing a MySQL database through PHP.
I have to calculate the difference between todays date and the date obtained
from MySQL database.
The Database string is in the form of \"-mm-dd\".
I have to convert the above string into unix timestamp so that i can calcualte
th
chregu Sat Mar 31 05:38:58 2001 EDT
Modified files:
/php4/pear/Experimental/XML fo2pdf.php
Log:
- converted tabs to spaces
- more links in the docs about xsl:fo
Index: php4/pear/Experimental/XML/fo2pdf.php
diff -u php4/pear/Experimental/XML/fo2pdf.php
On Fri, Mar 30, 2001 at 06:45:21PM -0500, ..s.c.o.t.t.. [gts] wrote:
> i dont see how a surfer could get your PHP source code
> via the webserver.
what happens if the webserver once gets started without the php-interpreter
being there? You get to see the raw-files (if they are in the document-ro
Hi All,
I need to automatically create a large GIF image made up of numerous smaller
GIF/JPG files.
The list of images (either GIF or JPG) is taken off a MySQL database and at
the moment, I create a HTML table (5 columns, up to 20 rows), view it in my
browser, manually dump it to the screen and
Hi,
I have a strange kind of a problem. I'm cannot write to files on a server
(i'm having virtual host) where i got my domain name.
The server is running Apache 1.3.x and is having php3.0.8 installed.
The code looks like this:
I cannot write to directory tmp.I get an error from Netscape th
Some users in PHP General list may be interested in.
Tom Lane has posted patch for pg_dump to PostgreSQL Admin List.
He said it works with 7.0 (and he said it may work for 6.5 - not tested) This
means
you can backup/restore large object w/o upgrading to 7.1.
Check out the PostgreSQL Admin List if
please try this:
""Steve Haemelinck"" <[EMAIL PROTECTED]> wrote in message
000401c0b9bb$4aaa1fa0$0200a8c0@shaemeli">news:000401c0b9bb$4aaa1fa0$0200a8c0@shaemeli...
> Anybody got an idea why $PHP_SELF isn't working with me?
>
> I think because I have set my register_globals to off, but how
Anybody got an idea why $PHP_SELF isn't working with me?
I think because I have set my register_globals to off, but how can I get the
value of $PHP_SELF an another way ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
71 matches
Mail list logo