Albert Kamau
Saf : 0720550742
it is necessary... and pinging doesn't seem like a good
idea either as some servers probably won't respond to pings.
The localhost issue is interesting, but I don't see it as a security issue.
I would like to know if there are any serious secirity issues I may be
overlooking though.
Thanks,
Albert
--
PHP
)... its like it doesn't even try to look up the
name.
--
Albert Wiersch
Fix your website: http://onlinewebcheck.com
Albert Wiersch [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I noticed my script at http://onlinewebcheck.com was sometimes (fairly
often) failing to open some URLs
the file and
restarting apache though, it seems like the reboot was necessary. I don't
know why but so far do good.
The root.hints file was also updated. I'm not sure if that had anything to
do with it but it was updated in the process of trying to fix the problem.
Albert
--
PHP General Mailing
to
open valid http addresses but works at other times?
--
Albert Wiersch
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Daniel Brown [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
On Dec 27, 2007 11:31 AM, Albert Wiersch [EMAIL PROTECTED]
wrote:
Are the URLs being passed to fopen() properly escaped? Are they
valid, complete with http:// placed before the domain? Try keeping a
log of all
that is failing some of the time but not other
times.
--
Albert Wiersch
Fix your website: http://onlinewebcheck.com
Albert Wiersch [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I noticed my script at http://onlinewebcheck.com was sometimes (fairly
often) failing to open some URLs
to 5.2.5 may
have addressed this issue though. If not, then I'll concentrate on a
possible DNS resolution problem.
Albert
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Albert Wiersch [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Yes, I have SSH access. I will keep that in mind. Upgrading to 5.2.5 may
have addressed this issue though. If not, then I'll concentrate on a
possible DNS resolution problem.
Well, it seems to still be happening
use other function whitch supports repeated keys ?
--
Albert Kopka
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
It's late and I've been at this a long time today so I throw myself
on the mercy of the list.
I have an echo statement that I use in conjunction with a MySQL query.
echo tr\ntd class=\tabletext\ . $row['time'] . /td\ntd
class=\tabletext\ . $row['field'] . /td\ntd class=\tabletext
\ .
On Feb 3, 2007, at 9:09 PM, Christopher Weldon wrote:
On Feb 3, 2007, at 9:09 PM, Albert Padley wrote:
It's late and I've been at this a long time today so I throw
myself on the mercy of the list.
I have an echo statement that I use in conjunction with a MySQL
query.
echo tr\ntd
On Feb 3, 2007, at 10:04 PM, Paul Novitski wrote:
On Feb 3, 2007, at 9:09 PM, Albert Padley wrote:
I have an echo statement that I use in conjunction with a MySQL
query.
echo tr\ntd class=\tabletext\ . $row['time'] . /td\ntd
class=\tabletext\ . $row['field'] . /td\ntd class=
\tabletext
I have the following class that generates a Notice: Uninitialized
string offset: 0 each time it is called. The lines generating the
notice are marked. How do I fix this?
class InputFilter {
var $tagsArray;
var $attrArray;
var $tagsMethod;
var $attrMethod;
Sure.
$myFilter = new InputFilter('','',0,0);
$_POST = $myFilter-process($_POST);
BTW - for what I'm trying to do at the moment, if I change the first
line to:
$myFilter = new InputFilter();
it takes care of the Notice problem.
Thanks.
Al
On Jan 6, 2007, at 12:36 PM, Dave Goodchild
Ah, of course.
Thanks.
Al
On Jan 6, 2007, at 12:57 PM, Robert Cummings wrote:
On Sat, 2007-01-06 at 12:43 -0700, Albert Padley wrote:
Sure.
$myFilter = new InputFilter('','',0,0);
The first two parameters should be arrays (not strings as you have
above).
Cheers,
Rob
I want to build a select drop down that includes last year, the
current year and 3 years into the future. Obviously, I could easily
hard code this or use a combination of the date and mktime functions
to populate the select. However, I'm looking for a more elegant way
of doing this.
On Nov 16, 2006, at 11:04 PM, Tom Ray [Lists] wrote:
Albert Padley wrote:
I want to build a select drop down that includes last year, the
current year and 3 years into the future. Obviously, I could
easily hard code this or use a combination of the date and mktime
functions to populate
16 November 2006 23:26, Albert Padley wrote:
I want to build a select drop down that includes last year, the
current year and 3 years into the future. Obviously, I could easily
hard code this or use a combination of the date and mktime functions
to populate the select. However, I'm looking
?
Thanks.
Albert Padley
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thanks everyone. Always nice to know there is more than one direction
to go in.
Albert
On Jun 20, 2006, at 4:52 PM, Ray Hauge wrote:
On Tuesday 20 June 2006 15:28, Adam Zey wrote:
Ray Hauge wrote:
On Tuesday 20 June 2006 15:14, Albert Padley wrote:
I have a regular for loop - for($i=1
On Apr 13, 2006, at 12:16 AM, William Stokes wrote:
Hello,
var_dump($POST) returns now always NULL.
Try var_dump($_POST);
Note the underline between $ and P.
Al Padley
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
?
Thanks.
Albert Padley
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thank you Chris.
Albert
On Feb 20, 2006, at 5:00 PM, Chris wrote:
Albert Padley wrote:
Given the following code:
$password = (strlen($this-user_pw) 32) ? md5($this-user_pw) :
$this-user_pw;
$sql = sprintf(SELECT COUNT(*) AS test, TeamID FROM %
s WHERE BINARY login = '%s
/browse/package/2037.html).
Not sure if it support tabs though but you can change the column sizes, row
sizes and formatting of cells.
Albert
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.15.2/253 - Release Date: 2006/02/07
SELECT * FROM table LIMIT 95,18446744073709551615;
HTH
Albert
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.15.2/251 - Release Date: 2006/02/04
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
utility in C which opens your
cash drawer. When you need to open the drawer you run the application from
the PHP script using exec().
Albert
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.15.0/249 - Release Date: 2006/02/02
--
PHP
I must be brain dead today since I can't get my syntax correct.
Simple MySQL query to return a list of last_name. No problem. Each
last name returned needs to be assigned to a unique variable like
name1, name2, name3, etc.
Somebody just kick me in the right direction.
Thanks.
Al Padley
Yes, that's it. Thanks for the swift kick.
AP
On Feb 2, 2006, at 12:37 PM, Jim Moseby wrote:
I must be brain dead today since I can't get my syntax correct.
Simple MySQL query to return a list of last_name. No problem. Each
last name returned needs to be assigned to a unique variable like
a missing ;. This is probably your parse error.
Albert
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.14.25/247 - Release Date: 2006/01/31
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
?
Albert
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.14.25/247 - Release Date: 2006/01/31
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
are executing a script on the command line it will not exist.
Try using argc and argv for that. The filename is typically argv[0].
isset($_SERVER['SCRIPT_FILENAME']) will return true if the index exist.
Albert
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375
Gregory Machin [mailto:[EMAIL PROTECTED]
Hi
I'm looking for a good example of writing multidimensional arrays, and
reading them back .
http://za2.php.net/manual/en/function.serialize.php
and
http://za2.php.net/manual/en/function.unserialize.php
Call serialize() when saving the array to the
Hi. I have a small question ;-). I have a PHP script. I want that script to
check if a visitor is logged in, in Vbulletin. I know somebody who did this but
he says he doesn't has time to explain. So if a visitor is logged in, in the
vbulletin forum and he visits my PHP script, that script has
inside it and output
the HTML...
If you want to get the contents into a variable then do something like:
?
ob_start();
include(file.html);
$fileContent = ob_get_contents();
ob_clean();
?
Albert
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus
are absolutely 100% certain that it is not your scripts, start
looking at the differences between what you have and what your ISP provides.
Alternatively test it on another server as well.
Albert
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database
for assistance on setting this up. If you run your own mail
server look at the docs.
If you want to use PHP for this (not recommended because the mail server can
do it already) you need to write a script which check email on one account
and then email it to the other accounts.
Albert
--
No virus found
it as an HTML tag and not display it.
Have a look at htmlentities() or replace the and with lt; and gt;
HTH
Albert
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.14.22/238 - Release Date: 2006/01/23
--
PHP General Mailing List (http
bcmath I had to uncomment the extension=bcmath.so line in
/etc/php.ini
Check that phpinfo() outputs bcmath.
Albert
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.14.22/238 - Release Date: 2006/01/23
--
PHP General Mailing List
'];
if (strcmp($inUser, 'me') == 0 strcmp($inPWD, 'me') == 0) {
echo logged in;
} else {
header('WWW-Authenticate: Basic realm='._PRODNAME.'');
header('HTTP/1.0 401 Unauthorized');
echo You are not authorized to enter this page;
}
}
?
HTH
Albert
--
No virus found
suppliers have been
encoded with Zend Safeguard.
Albert
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.14.20/234 - Release Date: 2006/01/18
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
Richard Lynch wrote:
On Tue, January 17, 2006 11:18 pm, Albert wrote:
The page having the heaviest load uses 5 simultaneous sessions - they
refresh every 5 seconds. Even with just one connection there are 16
Apache
threads running all occupying between 5 and 20% of CPU.
Are you saying
is faster...) but it seems that the
mmCache project has been abandoned as there have been no work done on it
since 2003.
Can someone confirm this or recommend an alternate cache (doesn't have to be
free but should break the bank) which will do what I want?
Albert
--
No virus found in this outgoing
having the heaviest load uses 5 simultaneous sessions - they
refresh every 5 seconds. Even with just one connection there are 16 Apache
threads running all occupying between 5 and 20% of CPU.
Does anyone have an idea of what I can do (short of recoding)?
TIA
Albert
From our Apache log
) when sending email as it
does most of the hard work for you.
Albert
PS List replies only please!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
';
$split1 = explode('E', $unit);
list($panel, $width, $height) = explode('X', $split1[1]);
Albert
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.14.17/228 - Release Date: 2006/01/12
--
PHP General Mailing List (http://www.php.net
log
files to read through.
Anyone have some suggestions?
Is this on a Linux server?
Why don’t you use grep?
cat filename | grep string newfile
see man grep for detail on grep. (It uses regular expressions)
Albert
--
No virus found in this outgoing message.
Checked by AVG Free Edition
to a Linux
machine and vice versa without any issues. There is a note in the MySQL
documentation of the formatting your Windows server should use (to do with
case sensitivity)
HTH
Albert
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database
William Stokes wrote:
Can I get pixel sizes from a uploaded web applicable image with PHP? I
mean width and height as pixels. If so How?
http://www.php.net/manual/en/function.getimagesize.php
HTH
Albert
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version
, must-revalidate);
header(Cache-Control: post-check=0, pre-check=0, false);
header(Cache-Control: private);
header(Pragma: no-cache);
?
It will tell any caching server and/or browser not to cache the page
Albert
PS List replies only please!
--
No virus found in this outgoing message
parameter. In PHP documentation]
?php
mail([EMAIL PROTECTED], the subject, $message,
From: [EMAIL PROTECTED]'SERVER_NAME']},
[EMAIL PROTECTED]'SERVER_NAME']});
?
[/quote]
HTH
Albert
PS List replies only please!
--
No virus found in this outgoing message.
Checked by AVG Free Edition
to the same format as your timestamp column:
$timestamp = date('Y-m-d H:i:s', $olderThan72Hours);
Delete the records from the table:
mysql_query(DELETE FROM table WHERE timestamp = '$timestamp') or
die('Could not delete from table');
HTH
Albert
--
No virus found in this outgoing message.
Checked
I wrote:
Delete the records from the table:
mysql_query(DELETE FROM table WHERE timestamp = '$timestamp') or
die('Could not delete from table');
That query should be
DELETE FROM table WHERE timestamp = '$timestamp'
Sorry about that.
Albert
--
No virus found in this outgoing message
/package/264.html)
It has made my life a lot easier.
Albert
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.14.16/225 - Release Date: 2006/01/09
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
Mathijs wrote:
Is there a way to have include() be case-insensitive?
Linux file systems are case sensitive. The include() and require() functions
try to open the file specified. If you enter the wrong case the file system
will return that the file does not exist.
Albert
--
No virus found
invalidate the session id
in a database. If you do this you need to check if the session id is still
valid when you open a page.
The actual session data should then be in a database (or similar) accessible
by both domains.
Hope it helps
Albert
List replies only please!!
--
No virus found
to someone
from the outside but accessible by the user Apache was running as. Then by
reading the content from the file with PHP and outputting in a similar
method as you are using.
Hope it helps
Albert
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus
Ross wrote:
$query= SELECT * FROM publications WHERE alphabet='a';
$result= mysql_query($query);
while ($row = @mysql_fetch_array($result, MYSQL_ASSOC)){
$row['pdf_size'] = $row['pdf_size']/ 1024;
$row['pdf_size']= number_format($row['pdf_size'], 0);
$size= $row['pdf_size'];
not an issue with PHP but with the browser.
HTH
Albert
(PS List replies only please!)
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.14.5/212 - Release Date: 2005/12/23
--
PHP General Mailing List (http://www.php.net
- - [23/Dec/2005:14:25:43 +0200] GET /test/page3.php HTTP/1.1
200 32
127.0.0.1 - - [23/Dec/2005:14:25:48 +0200] GET /test/page2.php HTTP/1.1
200 19
127.0.0.1 - - [23/Dec/2005:14:25:48 +0200] GET /test/page1.php HTTP/1.1
200 19
This is either a Browser or an OS issue. Not a PHP/Apache issue.
Albert
David Hall wrote:
Albert wrote:
same server at the same time. Don't know where to change it in Mozilla.
type about:config in browser window
network.http.max-persistent-connections-per-server in the line
the default value is 2, so I think that's our answer
Yes it resolved the issue
Ross wrote:
How can I self submit a page whne registered globals are off. Is there a
way to use $_SERVER?
Try $_REQUEST.
If the values are send using POST then $_POST
If the values are send using GET then $_GET
Albert
--
No virus found in this outgoing message.
Checked by AVG Free
. The transparent
background allows for the satellite image to show through.
Any suggestions are welcome.
Albert
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.13.10/189 - Release Date: 2005/11/30
--
PHP General Mailing List (http
as $key = $tempvalue) {
if (is_array($arrayWithValues[$key])) {
$tmpVal .= getValues($arrayWithValues[$key], $key);
} else {
$tmpVal .= $pre.$key.=.$tempvalue.;
}
}
return $tmpVal;
}
$cVariable = getValues($_POST);
print $cVariable;
?
Hope it helps
Albert
--
No virus
.
Albert
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.13.10/189 - Release Date: 2005/11/30
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
some data into the table:
mysql INSERT INTO tablename (id, name) VALUES (NULL, '\'Albert');
Query OK, 1 row affected (0.00 sec)
mysql INSERT INTO tablename (id, name) VALUES (NULL, '\'Piet');
Query OK, 1 row affected (0.00 sec)
mysql INSERT INTO tablename
of imagecopymerge?
Should I be using different values for the pct value of imagecopymerge or is
there an alternative method which will do what I want to be done?
It seems to me that the palette used in the top image is not merged with the
palette used in the satellite image.
Albert
--
No virus found
Jochem Maas wrote:
imagecreatetruecolor() is probably what your after:
http://php.net/imagecreatetruecolor
Albert wrote:
Notes:
1. When using imagecreatetruecolor the images turn black
I did try imagecreatetruecolor() but then the images turn black.
Albert
--
PHP General Mailing List
which
last beyond the end of the script.
Hope it helps
Albert
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.13.10/189 - Release Date: 2005/11/30
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
if statements are true, I always get the correct
Success to echo. However, if any or all of the if statements are
false, I never get Failed to echo.
I know it's something simple, but I just can't see it at the moment.
TIA
Albert Padley
--
PHP General Mailing List (http://www.php.net
Justin Jordan,
Thanks. The was what I needed.
Albert Padley
On Aug 31, 2005, at 2:27 PM, Justin Francis wrote:
Albert Padley wrote:
I have the following nested ifs:
if ($row['date'] '2005-10-02') {
if ($row['time'] '12:00') {
if ($row['field'] == 'P5
insofar as it throws up the javascript
alert, but then submits the form anyway. I don't see how your new
function incorporates the loop to build $jscondition.
Thanks for any further input. I think I need to get some sleep.
Albert Padley
On Aug 6, 2004, at 11:39 PM, Jason Paschal wrote:
make ur
appreciated.
Thanks.
Albert Padley
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jason,
Thanks. That seems to build the javascript string, but unfortunately
the form doesn't validate. In other words, if I leave all the
checkboxes unchecked the results page still is returned.
Perhaps there is a problem with the javascript? Any ideas?
Albert Padley
On Aug 6, 2004, at 10:02 PM
On Aug 6, 2004, at 10:39 PM, Manuel Lemos wrote:
Hello,
On 08/07/2004 12:49 AM, Albert Padley wrote:
I have a php/mysql script that returns a series of records to
populate a form. The number of records returned varies from 1 to as
many as 100. On the display page, each record has a checkbox
(Windows and
Mac) and the only one that throws the runtime error is IE on the Mac.
All others catch the errors I am trying to trap for with no runtime
errors. Can this regex be improved on or do I have to live with the
idiosyncratic behavior of Mac IE?
Thanks.
Albert Padley
On May 28, 2004, at 3:50 AM, Ford, Mike [LSS] wrote:
On 28 May 2004 04:47, Albert Padley wrote:
I feel I'm so close.
I have a form with multiple database records with a checkbox to
indicate which records to update set up like so:
$name = ed[ . $row['id'] . ];
input type=\checkbox\ name=\ . $name
.
What tweak do I need to make?
Thanks.
Albert Padley
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
IN (' . implode(',',
addslashes($del)) . ');
This one produces a warning:
Warning: implode(): Bad arguments.
and the following query:
DELETE FROM ref_events_reg WHERE id IN ('')
Both attempts fail to delete any records even though several records
are checked.
Where have I gone wrong?
Thanks.
Albert
On May 26, 2004, at 8:01 PM, John W. Holmes wrote:
Albert Padley wrote:
I've checked the archives and several other sources, but still can't
seem to make this work.
I have a form with checkboxes to designate records to be deleted from
the mysql database. The pertinent form code is:
input type
WHERE id IN ('')
AP Both attempts fail to delete any records even though several
records
AP are checked.
AP Where have I gone wrong?
AP Thanks.
AP Albert Padley
change it to
input type=\checkbox\ name=\del[$row['id']]\ value=\Y\
Then you can do something like
foreach($del as $id=$val
On May 26, 2004, at 11:16 PM, Curt Zirzow wrote:
* Thus wrote Albert Padley ([EMAIL PROTECTED]):
input type=\checkbox\ name=\del[]\ value=\ . $row['id'] . \
The processing code is:
if (count($del) 0){
for ($i=0;$icount($del);$i++){
$query = DELETE FROM
On May 26, 2004, at 11:17 PM, Albert Padley wrote:
On May 26, 2004, at 11:16 PM, Curt Zirzow wrote:
* Thus wrote Albert Padley ([EMAIL PROTECTED]):
input type=\checkbox\ name=\del[]\ value=\ . $row['id'] . \
The processing code is:
if (count($del) 0){
for ($i=0;$icount($del);$i
=Submit
/form
br
what you typed
br
? echo $test; ?
/body
/html
--
Byron Albert[EMAIL PROTECTED]
System Engineer Internet.com a Division of INT Media Group
203-662-2848
Hello,
I am trying to ad extra headers to email's I am sending through php. I
want to ad Reply-To: and Bounse-To: addresses. But when add them useing
the forth feild of the mail() funtion.
mail($recipient,$msubject,$message,Reply-To: $sender);
but for some reason when I send this e-mail it
the type .html associated with the php engine. And I need to use
the url of action in long format (http://.)
Anybody with the same problem??
Best regards
--
Antonio Mármol Albert ( [EMAIL PROTECTED] )
http://www.infurma.es
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e
for it?
Albert
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
for it?
Albert
--
PHP Internationalization Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
88 matches
Mail list logo