e the statement";
}
return $message
}
Kind regards
Albert Kamau
Saf : 0720550742
s a security issue.
I would like to know if there are any serious secirity issues I may be
overlooking though.
Thanks,
Albert
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
x27;t seem to work after just changing 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
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
""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 reso
e 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.
Albert
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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 (
""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 h
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
$dn to function ...
(using other structure ... or formated string ... )
or mayby I can 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
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 "\n" . $row['time'] . "\nclass=\"tabletext\">" . $row['field
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 &
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 "\n" . $row['time'] . "\nclass=\"tabletext\">" . $row['field'] . "\n\">" . $row['division'] . "\n";
This works perfectly f
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
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 wrot
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;
have the redundant value attribute in there, otherwise some
Javascript things
don't work right in IE. Good habit to get into.) I don't think it
can
really get more simple and elegant.
On Thursday 16 November 2006 23:26, Albert Padley wrote:
I want to build a select drop down that
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
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.
Thank
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
irection?
Thanks.
Albert Padley
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
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 WH
}
How would I set a session variable for the value of TeamID?
Thanks.
Albert Padley
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
l Writer (http://phpclasses.fonant.com/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 Da
ment
retrieves all rows from the 96th row to the last:
mysql> 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
--
a command line 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
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
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
-
will see 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/unsub.php
your server? Why not
limit it to 512KB?
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
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 to
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
ting 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
e correct.
Why don't you include the file? PHP will parse the PHP inside it and output
the HTML...
If you want to get the contents into a variable then do something like:
Albert
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 2
Contact your ISP 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.
Al
the same.
If you 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.
V
interpret it as an HTML tag and not display it.
Have a look at htmlentities() or replace the < and > with < and >
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 G
To enable 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 M
SER"] is already set).
> I've tried :
> $_SERVER["PHP_AUTH_USER"] = NULL;
> without succes...
>
> Do you have a clue ?
HTH
Albert
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.14.21/235 - Release Date: 2006/01/19
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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 betwee
use
APC as some of the modules we use from third party 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:
ache site mmCache 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 vir
e 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.
Does anyone have an idea of what I can do (short of recoding)?
TIA
Albert
>From our A
es.org/browse/package/264.html) 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
I have about 20 log
> files to read through.
>
> Anyone have some suggestions?
Is this on a Linux server?
Why don’t you use grep?
cat | grep >
see man grep for detail on grep. (It uses regular expressions)
Albert
--
No virus found in this outgoing message.
Checked by AVG Free E
42 X 70 3/8';
$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
--
PH
al.
BTW you can transfer MySQL data files from a Windows machine 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.
Chec
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.
V
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
ses.org/browse/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 unsubscrib
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 tha
Convert 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');
H
ers and setting an
additional command line parameter. In PHP documentation]
[/quote]
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.16/225 - Release Date: 2006/01/09
--
PHP General Mailing
> in Apache that would cause the page not to refresh?
It sounds to me that there is a caching problem somewhere.
Try adding the following to the top of the page:
It will tell any caching server and/or browser not to cache the page
Albert
PS List replies only please!
--
No virus found i
e or simply 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 fo
> 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= $r
ssible 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
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
.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
--
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/)
To unsubscribe, visit: http://www.php.net/unsub.php
for the second page and starts downloading it. After one of
these two have downloaded it start downloading the third page.
If you change the setting in the browser (like I did with IE) you can
download up to that number of pages at the same time.
It is therefore not an issue with PHP but with the
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 AV
should.
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
yWithValues[$key])) {
$tmpVal .= getValues($arrayWithValues[$key], $key);
} else {
$tmpVal .= $pre.$key."=".$tempvalue."&";
}
}
return $tmpVal;
}
$cVariable = getValues($_POST);
print $cVariable;
?>
Hope it helps
Albert
--
No virus found in t
sparent background. 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 Gen
true for new_link.
The downside of this is that you do not have persistent connections 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: 200
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 blac
top image is not merged with the
palette used in the satellite image.
Albert
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.13.10/188 - Release Date: 2005/11/29
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
-> `name` char(20) default '0',
-> PRIMARY KEY (`id`)
-> );
Query OK, 0 rows affected (0.06 sec)
** Then insert some data into the table:
mysql> INSERT INTO tablename (id, name) VALUES (NULL, '\'Albert');
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'] <
echo "Failed";
}
Whenever the 3 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 mome
edit checkbox before submitting this
form.');<br>
return false;<br>
}<br>
}<br>
Remember that the above works 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 $js
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 to
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:
east one record before submitting this form.');
event.returnValue=false;
}
}
This is the line I need to build dynamically:
if (!(mainform.ed[0].checked || mainform.ed[1].checked)) {
Any help, pointers, suggestions, etc. will be greatly appreciated.
Thanks.
Albert Padley
--
PHP Genera
t browsers (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'] . "]";
each($ed as $id=>$val){
$query = "UPDATE ref_events_reg
SETfname = '$fname'
WHERE id = '{$id}'";
I am looping through the correct records, but every field is being
updated to "Array".
What tweak do I need
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]):
The processing code is:
if (count($del) > 0){
for ($i=0;$iI think you need to take a step back and figure out where the $del
variable
On May 26, 2004, at 11:16 PM, Curt Zirzow wrote:
* Thus wrote Albert Padley ([EMAIL PROTECTED]):
The processing code is:
if (count($del) > 0){
for ($i=0;$iI think you need to take a step back and figure out where the $del
variable is comming from.
Both solutions that have been provi
): Bad arguments.
AP> and the following query:
AP> DELETE FROM ref_events_reg 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
T
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 cod
: 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 Padley
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
imes we want to input html tags. Has any one else run into this problem
maybe even found a solution.
Any help would be appreciated.
Thanks
Byron
test form
what you typed
--
----
Byron Albert
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
ens randomly.
I've 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
n 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]
n 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