Do you kow how can I upgrade the PHP 4.1.1 in PHPTriad to PHP 4.3.0?
I need PHP 4.3.0. as it includes a version of gd (GD Library) as "standard
equipment."
TQ!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
php-general Digest 5 Jan 2003 09:19:52 - Issue 1804
Topics (messages 130242 through 130301):
No Global Code Fixing
130242 by: Michael J. Pawlowsky
130244 by: Rasmus Lerdorf
130245 by: Michael J. Pawlowsky
130248 by: Michael J. Pawlowsky
130249 by: Tula
Here is the source code:
Seleccione a localização para o download:Localização Principal";
if ($mirrors) {
echo " Mirrors";
$m=explode("»",$mirrors);
foreach ($m as $v) {
$m2=explode("!",$v);
echo "$m2[0]";
}
echo "Nota: Deve escolher o mirror mais próximo da sua localização,
para acelerar o dowloa
can someone give me a bit of help / walthrough the following for me !
this first bits is okay
$mysql query1
result
array[cityid][cityname]
mysql query2
result
array[cityid][cityname]
now what i want to do is kick out any doubles in my array and resort them
alphebetically by cityname ?!
help !
John, et al --
...and then John Fishworld said...
%
% can someone give me a bit of help / walthrough the following for me !
Let's see if I can help.
% this first bits is okay
% $mysql query1
% result
% array[cityid][cityname]
%
% mysql query2
% result
% array[cityid][cityname]
Are CityIDs un
Hi, all --
If I have an array like
$a1 = array ( 'a' => 'aaa' , 'b' => 'bbb' , 'c' => 'ccc' ) ;
and I want to completely remove 'b' from it (not just set $a1[b] to ""),
how do I undefine that element?
TIA & HAND
:-D
--
David T-G * There is too much animal courage in
(
I didn't wrote english well, Apache 1.3.27 + PHP 4.2.3
Compiled option
./configure --with-apxs=/usr/local/apache/bin/apxs \
--with-config-file-path=/usr/local \
--enable-trans-sid \
--enable-track-vars \
--with-zlib-dir=/usr/lib \
--with-zlib \
--enable-ftp \
--enable-calendar \
--enable-exif \
--
Consider the following code...
class A
{
function Go()
{
switch (isset($this))
{
case true: echo 'Called Dynamically'; break;
case false: echo 'Called Statically'; break;
}
}
}
class B
{
function Go()
{
A::Go();
}
}
A::Go();
$a = new A();
$a->Go();
B::Go(
Hi,
Sunday, January 5, 2003, 9:46:05 PM, you wrote:
DTG> Hi, all --
DTG> If I have an array like
DTG> $a1 = array ( 'a' => 'aaa' , 'b' => 'bbb' , 'c' => 'ccc' ) ;
DTG> and I want to completely remove 'b' from it (not just set $a1[b] to ""),
DTG> how do I undefine that element?
DTG> TIA & HA
Tom, et al --
...and then Tom Rogers said...
%
% Hi,
Hi!
%
% Sunday, January 5, 2003, 9:46:05 PM, you wrote:
%
...
% DTG> how do I undefine that element?
%
% unset($a1['b']);
Ah! And here I was looking for 'undefine' (and boy o boy are there a lot
of occurrences of *that* in the manual!).
> php_admin_flag engine on
> php_admin_flag log_errors on
> php_admin_value error_reporting 7
> php_flag display_errors on
> php_admin_value doc_root /var/www/ HERE WHAT TO WRITE TO HAVE
Where can I find a list of all these php_admin parameters to use in
A
I think they are just the same as in php.ini.
"Jochen Kaechelin" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> > php_admin_flag engine on
> > php_admin_flag log_errors on
> > php_admin_value error_reporting 7
> > php_flag dis
The bad side of this that all other HTML tags than and will be
removed.
> on 05/01/03 5:24 AM, Seraphim ([EMAIL PROTECTED]) wrote:
>
> > I use the htmlspecialchars() function to disable all html. This function
> > basically puts a '\' in front of eacht html character and thus disables
all
> > ht
You could check if a variable in $this exists:
class A
{
var $bla;
function Go()
{
switch(isset($this->bla))
{
case true: echo 'Called Dynamicaly'; break;
case true: echo 'Called Statically'; break;
}
}
}
Or, if that doesn't work, y
That doesn't make any sense and has nothing to do with Perl, since PHP will
magically convert perl.pl to 'perl.pl'. I think you should do something
like:
Assumming you are on an Unix enviroment and Perl is installed.
"Leif K-Brooks" <[EMAIL PROTECTED]> schreef in bericht
[EMAIL PROTECTED]">news
Hi Mike,
I tried the first script you posted on the NG.
This is what happens when I copy and paste your script:
The formbox appears.
I insert a number.
I click submit.
The number reverts back to 0.
The URL script that you sent me works fine.
I'm using MS Win 98/ Apache / PHP 4
Please advise if
This should be right, $TimeDiff is in seconds.
Christopher J. Crane wrote:
Doyou know how to compare time. I would like to get the difference in time
from now to when the file was last accessed.
I was thinking something like this:
$DirToCheck = "tempdata/";
echo "$Now\n";
$TimeNow = time();
if
Means php tried to access memory page address it did not have. Try to
find out if it was php itself or a loaded module, then upgrade the
offending
part and see if it still happens again.
Ysrael Guzmán wrote:
this is the message of the ERROR:
PHP has encountered an Access Violation at 012B7DE7
Jurre Thiel wrote:
That doesn't make any sense and has nothing to do with Perl, since PHP will
magically convert perl.pl to 'perl.pl'.
I think perl will be magically converted to perl and pl to pl, and those
two strings concatenated
together using . inbetween will be perlpl
--
PHP Ge
Hi All,
So I install the jpgraph in Linux RedHat version 8.0, everything
running ok, except examples need special fonts resource, the message follow
bellow:
"Font File "/usr/X11R6/lib/X11/fonts/truetype/arialbd.ttf is not
readable or does not exist"
This problems occour w
Hi,
AtomicBoard v0.6.1, an advanced template-based forum system has just been
released. please try it, we need your feedback.
If you are a PHP developer looking for a challenging and fun project, please
have a look at AtomicBoard, we are in need of more developers.
have a look at:
http://cal0073
Sorry, i didn't think of that. I still think exec('perl perl.pl'); does the
job, not exec('perl.pl');
"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
>
> Jurre Thiel wrote:
>
> >That doesn't make any sense and has nothing to do with Perl, since
Hi,
I have a php file that set up a cookie that receives from a form and also uses it.
My problem is the first time the value is submitted via form. The cookie is setup
but I cannot not use it so I'd need to reload the web after setting up the cookie.
Myfile.php
if ($form_value != "0"){
The first line of the script had the magic incantation:
#!/usr/local/bin/perl
(or something very similar) which makes the leading 'perl' superfluous.
PHP scripts can be made into "self executing" scripts in a similar fashion
if the 1st line looks like:
#!/path/to/the/php/command/line/executable
I've been scratching my head over the following code
for a while now. It's supposed to check a given
weblog for specific tags, and if they're present,
update the weblog's table in my database. I believe
the problem is around the execution of the db query,
but I can't seem to get it figured out.
TACKEL wrote:
Hi,
I have a php file that set up a cookie that receives from a form and also uses it.
My problem is the first time the value is submitted via form. The cookie is setup
but I cannot not use it so I'd need to reload the web after setting up the cookie.
Myfile.php
if ($form_va
You could use a header() with Location: but why do you need to reload
the page? If you already have your data in $form_value then the data is
already available to you.
If you are using a newer version of PHP (> 4.1) you can reference the
information from the $_COOKIE array as well.
You could do
On Sunday 05 January 2003 20:47, Jochen Kaechelin wrote:
>
>
> > php_admin_flag engine on
> > php_admin_flag log_errors on
> > php_admin_value error_reporting 7
> > php_flag display_errors on
> > php_admin_value doc_root /var/www/ HERE WHAT TO WRITE TO HAVE
what appeared when you printed the text of your query:
$query = "update bloggers set cache='$blog', title='$title' where url='$address'";
print $query;
I'm thinking that your single quotes preventd $blog, $title, $address form being
expanded.
- Original Message -
From: "Jesse Lawrence"
Yes, you are right $cookie = $HTTP_COOKIE_VARS["mycookie"]; should be in
*else* part
Jason Sheets wrote:
This will always assign the value of $HTTP_COOKIE_VARS["mycookie"] to
$cookie, overwriting the $cookie = $form_value assignment which is what
you want if the page is being reloaded but is no
On Monday 06 January 2003 00:27, Jesse Lawrence wrote:
> I've been scratching my head over the following code
> for a while now. It's supposed to check a given
> weblog for specific tags, and if they're present,
> update the weblog's table in my database. I believe
> the problem is around the exe
No, the query is working fine... all variables are printing correctly.
This is what has me confused. Everything seems to be as it should, it's
just not updating the db table.
Rick Emery wrote:
what appeared when you printed the text of your query:
$query = "update bloggers set cache='$blog', t
Then the problem is in MYSQL. to help determine this, ALWAYS--ALWAYS include the "or
die(mysql_error())" as part of the mysql_query():
mysql_db_query ($dbname, $query, $link) or die("Error: cannot read
table$query".mysql_error());
- Original Message -
From: "jesse" <[EMAIL PROTECTED]>
To
I'm looking to extract the text from user-uploaded .doc files. Has anyone
come across a class or function for this? If not, any advice on where I
would go to figure out how to write one of my own?
thanks,
loop
_
STOP MORE SPAM wi
When using the system() function, let's say starting up a program, can that
program start in the background while the rest of the page is parsed or does
it have to wait until the system command has finished whatever it is doing?
Rick
"Dost thou love life? Then do not squander time; for that's the
James Brennan wrote:
I'm looking to extract the text from user-uploaded .doc files. Has
anyone come across a class or function for this? If not, any advice on
where I would go to figure out how to write one of my own?
thanks,
loop
search freshmeat.net for antiword
its a beuatiful little
On Sun, 5 Jan 2003, thkiat wrote:
> Do you kow how can I upgrade the PHP 4.1.1 in PHPTriad to PHP 4.3.0?
> I need PHP 4.3.0. as it includes a version of gd (GD Library) as "standard
> equipment."
GD is not "standard equipment", a "special" version
is just bundled in PHP source now. It sounds li
php-general Digest 5 Jan 2003 21:27:01 - Issue 1805
Topics (messages 130302 through 130336):
Re: PHP and MySQL bug
130302 by: Nuno Lopes
array help please
130303 by: John Fishworld
130304 by: David T-G
undefining an array element
130305 by: David T-G
Hi,
If someone out there has an .dll file for the Advanced PHP Debugger
(APD) extension to run i Windows 2000 (PHP version 4.2.2) I would be
glad if you could send it to me. I have tried to compile one myself but
has failed each and every time :(
Regards,
Fredrik Johansson
--
PHP General M
on 05/01/03 11:54 PM, Jurre Thiel ([EMAIL PROTECTED]) wrote:
> The bad side of this that all other HTML tags than and will be
> removed.
So add some more tags!! Gz! Which would you prefer? Pretty colours
and bold text, or a page full of unclosed tags, evil javascripts, and other
harmfull
> @MYSQL_QUERY("UPDATE d SET h='$h' WHERE id='$id'"); // this
> query doesn't work
Personally, I'd call it bad programming practice to do a database update
and not check to see if it worked or not. In this case, how are you
determining that the query did not work? Are you manually checkin
Perhaps a weird place to ask.. but, anyone have a really good (advanced without to
many newbie questions) Linux System Administrators Mail List?
Thanks,
Mike
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Can someone tell me why I keep getting that error:
Parse error: parse error, unexpected $end in D:\Program Files\Apache
Group\Apache2\htdocs\proxy\acc_new.php on line 62
line 62 refers to
Thanks for your help
Vincent
Here is the content of acc_new.php
Account Management Tools - Add a new
Hi,
Monday, January 6, 2003, 8:56:58 AM, you wrote:
VB> Can someone tell me why I keep getting that error:
VB> Parse error: parse error, unexpected $end in D:\Program Files\Apache
VB> Group\Apache2\htdocs\proxy\acc_new.php on line 62
VB> line 62 refers to
VB> Thanks for your help
VB> Vincent
When you get an error that points to , it means you did not close a {} or ""
In this case, you did not close the: if ($row = mysql_fetch_array($result)) {
Although you did close the "while do {}" immediately thereafter.
- Original Message -
From: "Vincent Bouret" <[EMAIL PROTECTED]>
T
I have a fresh install of PHP on a Win2k server. It is installed along with
MySQL to allow me to run and XMB message base on my website.
Everything works great except for the fact that I never receive any email
notification when someone replies to a message I (or anyone else) posts. I
think the
look at your loop. you have mis matched which starts one
*** REPLY SEPARATOR ***
On 05/01/2003 at 5:56 PM Vincent Bouret wrote:
>Can someone tell me why I keep getting that error:
>
>Parse error: parse error, unexpected $end in D:\Program Files\Apache
>Group\Apache2\htdocs\pr
> $mysql query1
> result
> array[cityid][cityname]
>
> mysql query2
> result
> array[cityid][cityname]
>
> now what i want to do is kick out any doubles in my array
> and resort them alphebetically by cityname ?!
It's difficult to answer this question without knowing more about the
cont
change that line to your ISPs email server.
OR install a email server locally
Andrew
- Original Message -
From: "Rad Craig" <[EMAIL PROTECTED]>
To: "PHP Mailing List" <[EMAIL PROTECTED]>
Sent: Sunday, January 05, 2003 11:20 PM
Subject: [PHP] How to get the mail sending stuff to work on Win
I want to make a function that passes all the variables in a
form to the next form since the form has multiple steps. I thought about putting
all the contents in an array but I'd have to name out each array which would
take a while and then there's the global inside the function, but again, I
I run ArgoSoft's mail server which has worked great. I use SMTP
authentication, could that be the problem?
Is there a way to setup the info for SMTP authentication in PHP so it can
pass it to the mail server during it's sendmail type functions?
Rad...
> -Original Message-
> From: Andrew
I just turned PHP authentication off and it didn't make any difference,
still didn't receive any email from PHP.
Rad...
> -Original Message-
> From: Rad Craig [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, January 05, 2003 6:37 PM
> To: PHP Mailing List
> Subject: FW: [PHP] How to get the mai
Hello,
On 01/05/2003 10:37 PM, Rad Craig wrote:
I run ArgoSoft's mail server which has worked great. I use SMTP
authentication, could that be the problem?
Is there a way to setup the info for SMTP authentication in PHP so it can
pass it to the mail server during it's sendmail type functions?
Oh yeah, forgot that the $_POST variable was an actual array already...
Thanks!
- Original Message -
From: "Justin French" <[EMAIL PROTECTED]>
To: "Stephen" <[EMAIL PROTECTED]>
Sent: Sunday, January 05, 2003 7:56 PM
Subject: Re: [PHP] Pass Variables
: Assuming php > 4.1, on the script t
This might help... Put this at the top of each page:
reset ($_POST);
while (list ($key, $val) = each ($_POST)) {
//echo "$key => $val\n";
$$key = $val;
}
You could do the same for $_GET if you need to as well.
DÆVID.
> -Original Message---
Hi all,
I have an issue I'm hoping there's a simple answer for (I'm betting there
is):
I have a dynamic page where the user may click on a link - this link
processes their data and shows them a "result" page...
Then I want a variable (for a manual hypertext link) that contains the
original URL t
get your entire query string (eg key1=val1&key2=val2&key3=val3),
base64encode() it, pass it through to the next page via get as a var (eg
href="page.php?ref=">, the
base64decode() it on the next page... I use this HEAPS.
Justin
on 06/01/03 1:12 PM, Noel Wade ([EMAIL PROTECTED]) wrote:
> Hi all,
Does anyone know of any decent PHP/Web front ends to CVS?
Thanks
Mike
P.S. Still looking for a good Linux SysAdmin Mail list.
I don't understand Romanian but thanks for the answer! :-)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
>
> Does anyone know of any decent PHP/Web front ends to CVS?
>
check out chora.
-sterling
> Thanks
> Mike
>
>
> P.S. Still looking for a good Linux SysAdmin Mail list.
> I don't understand Romanian but thanks for the answer! :-)
>
>
>
>
>
> --
> PHP General Mailing List (http://www.p
Use get_class($this)
function Go()
{
if (!isset($this))
{
echo 'Called Statically';
}
switch(get_class($this))
{ // note get_class is lowercase (which I think is a bug, but it hasn't
changed, so oh well)
'a' : echo 'Called Dynamically';
'b' : echo 'Called Statica
Use sessions, you can save the result of the previous form in a server-side
variable, and it will still be there even if the user has a modem
disconnect.
http://php.net/session
Take care,
Greg
--
phpDocumentor
http://www.phpdoc.org
"Stephen" <[EMAIL PROTECTED]> wrote in message
000b01c2b518$d8e4
Can anyone who's familiar with both give an honest, open evaluation? I'm
in a rush project and need something quickly (have to purchase tomorrow),
but I'm on the fence when it comes to these two products.
Zend costs $100 less than Phped, so I'm leaning that way. But if there's
anything you know
Hello, I want to emulate a POST request to Paypal. Originally a POST request
is sent from the user (through a form) and the user is redirected to
paypal's site. Now, what I want to do is to emulate a POST request (so that
the surfer can't see some of the hidden fields of the form) and to deter
tamp
> Can anyone who's familiar with both give an honest, open evaluation? I'm
> in a rush project and need something quickly (have to purchase tomorrow),
> but I'm on the fence when it comes to these two products.
>
> Zend costs $100 less than Phped, so I'm leaning that way. But if there's
> anythi
Sterling,
Thanks for the reply. I'm also impressed with Zend's autocompletion...I
can't even get PHPEd to autocomplete on objects.
I wonder if Zend uses dbg as well. It'd be nice to see a profiler thrown
into a future version.
Finally, one frustrating thing on the part of both editors is the
i
On Monday 06 January 2003 04:20, Richard Baskett wrote:
> When using the system() function, let's say starting up a program, can that
> program start in the background while the rest of the page is parsed or
> does it have to wait until the system command has finished whatever it is
> doing?
If yo
Hi, I'm Kathy and just a beginner in php. I'm using the printer_open and
printer_draw_text etc. to print a report. It works in my localhost, but when I run it
in a remote server, the error message 'couldn't connect to the printer' shown. I think
this was caused by no printer was setup in th
PHP is server-side. You can't do anything to the client besides give
them data. This may be possible with javascript (I don't think so,
though), but not with PHP.
Kathy wrote:
Hi, I'm Kathy and just a beginner in php. I'm using the printer_open and printer_draw_text etc. to print a report
On Tuesday 07 January 2003 05:56, Kathy wrote:
> Hi, I'm Kathy and just a beginner in php. I'm using the printer_open
> and printer_draw_text etc. to print a report. It works in my localhost, but
> when I run it in a remote server, the error message 'couldn't connect to
> the printer' shown. I
Hello, I want to emulate a POST request to Paypal. Originally a POST request
is sent from the user (through a form) and the user is redirected to
paypal's site. Now, what I want to do is to emulate a POST request (so that
the surfer can't see some of the hidden fields of the form) and to deter
tamp
Hello, I want to emulate a POST request to Paypal. Originally a POST request
is sent from the user (through a form) and the user is redirected to
paypal's site. Now, what I want to do is to emulate a POST request (so that
the surfer can't see some of the hidden fields of the form) and to deter
tamp
On Monday 06 January 2003 14:01, Bobby Patel wrote:
> Hello, I want to emulate a POST request to Paypal. Originally a POST
> request is sent from the user (through a form) and the user is redirected
> to paypal's site. Now, what I want to do is to emulate a POST request (so
> that the surfer can't
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Is it posible to change the current uid/gid in a script that is being running
? of course, having the user and password ? like running su.
I'm writting a script that has to perform some operations on the files on the
server, make some directories in th
John Wells wrote:
Can anyone who's familiar with both give an honest, open evaluation? I'm
in a rush project and need something quickly (have to purchase tomorrow),
but I'm on the fence when it comes to these two products.
Zend costs $100 less than Phped, so I'm leaning that way. But if there's
__NO I DON'T WORK FOR ZEND__
Well I use Zend Studio and have done for sometime.
Check out there offer for Small Business:
http://www.zend.com/store/products/zend-smallbiz.php
Includes the Encoder and the IDE ++
You won't regret a Zend Studio buy and with the upgrade option
you get all upgrades
75 matches
Mail list logo