best regards from Ukraine,
Andre
Skype: Francophile
My blog: http://oire.org/menelion (mostly in Russian)
Twitter: http://twitter.com/m_elensule
Facebook: http://facebook.com/menelion
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello all. I need to purge old records from application tables
when a session expires. How do I register a callback with the
end-of session-garbage collection system ?
session_set_save_handler() lets me override the native garbage
collection, not *add* to it, as far as I can tell.
Thanks in advanc
On 2011-12-03 17:41 +, Stuart Dallas wrote:
> On 3 Dec 2011, at 16:57, Andre Majorel wrote:
>
> > Hello all. I need to purge old records from application tables
> > when a session expires. How do I register a callback with the
> > end-of session-g
On 2011-12-03 18:14 +, Stuart Dallas wrote:
> Writing a session handler is pretty straightforward. I wrote
> about how to implement one to use MySQL a while back which I'm
> sure you could easily adapt to your needs.
>
> http://stut.net/2008/07/20/mysql-sessions/
Thank you. That's too much c
Hello Paul,
PH> for($i = 0, $ln = sizeof($a); $i < $ln; ++$i) { echo $a[$i]; }
foreach ($a as $v) {
echo $v;
}
:P ;-)
--
With best regards from Ukraine,
Andre
Skype: Francophile
My blog: http://oire.org/menelion (mostly in Russian)
Twitter: http://twitter.com/m_elensule
Facebook
On Monday 07 February 2005 12:06 pm, Alex Gemmell wrote:
> On Sun, 6 Feb 2005 19:36:23 -0500, Andre Dubuc <[EMAIL PROTECTED]> wrote:
> > On Sunday 06 February 2005 07:18 pm, Alex Gemmell wrote:
> > > Hello,
> > >
> > > I am building a login system
using some code ideas from
the prog.
http://www.mikes-marketing-tools.com
You can get search engine ranking using keywords/phrases from your site.
Hth,
Andre
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
_files_are_here"
then
"/vhome/tokyocomedy/all_your_files_are_here/images/image.jpg" is where your
image.jpg file is.
Also, check using where the $_SERVER['DOCUMENT_ROOT'] is
(under 'PHP Variables' section) and note where tempfiles are uploaded to as
well, if you're uploading.
HTh,
Andre
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> >> >>$name = $_POST['name'] ;
> >>$age = $_POST['age'] ;
> >>print("Hello, $name! You are $age years old!");
> >>?>
> >>
> >>It does not work unless I turn register_globals ON in the php.ini
> >>
On Thursday 24 February 2005 06:34 am, Burhan Khalid wrote:
> William Stokes wrote:
> > Hello,
> >
> > If I send a session cookie to browser where it is stored in WinXP? Or is
> > it stored as a separate file at all. I know that the script sends the
> > cookie but I can't find it in the client comp
ome your god(s).
>
> > Best of luck, let us know what solution you come up with.
> >
> > -KBear
> >
> > Original Message:
> >
> > Hi there,
> >
> > How can I convert a Word file (*.doc) to PDF file? Are there any
> > libraries available
get the result of ALL things with the years in the
> 1970's (1970-1979). But the asterisk in the LIKE clause does not seem to
> work. I have tried various syntax's to try to get the 197* recognized but
> without any luck.
>
> Can the '*' be used? What am
nal image over temp.jpg
// since you have GD2, you could also use imageCopyResampled
imageCopyResized($image, $imageToResize, 0, 0, 0, 0, $dest_w,
$dest_h,
$src_w, $src_h);
// values for output jpeg quality
$jpegQuality = 75;
// create the resized image
imageJpeg($image,
"/your_site/pix/{$_SESSION['rid']}-{$_SESSION['sid']}.jpg", $jpegQuality);
// cleanup temp files
}
}
Hth,
Andre
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
there another way
to do this?
***
The code so far:
On any page that needs a db connection (in docroot path):
Db code page (located in directory above docroot):
Tia,
Andre
--
PHP General Mailing List (http://www.php.net
On Sunday 06 March 2005 11:47 am, Mattias Thorslund wrote:
> Since you can use fopen, I don't think open_basedir is the problem.
> Read about open_basedir here: http://us3.php.net/features.safe-mode
>
> Maybe the path that you use in the include is wrong?
>
> /Mattias
>
On Monday 14 March 2005 06:22 pm, Chris W. Parker wrote:
> Chris W. Parker <>
>
> on Monday, March 14, 2005 3:15 PM said:
> >> Line 82 is:
> >> print ' >> $row["profileID"] . ']' . "' value='true'/>\n";
> >
> > Very likely the problem is not on line 82, but rather before it. Line
> > 82 is just
in section to
> include only the necessary option and hide everything else from the
> admin as to not overwhelm their puny brain.
>
>
> HTH,
> Chris.
Might want to look at:
http://fudforum.org
hth,
Andre
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Tuesday 05 April 2005 07:16 pm, Chris W. Parker wrote:
> Andre Dubuc <mailto:[EMAIL PROTECTED]>
>
> on Tuesday, April 05, 2005 4:04 PM said:
> > Might want to look at:
> >
> > http://fudforum.org
> >
> > hth,
> > Andre
>
>
27;], I guess it should be
> > 'socket' in your setup
>
> Hi All,
>
> thanx, but, no difference. What I don't un, is, the setup is the same as
> another FC3 box, and it works. Cheers.
>
> Mark Sargent.
Mark,
I had the same problem. Try:
$cfg['PmaAbsoluteUri'] = '';
/**
* Disable the default warning about $cfg['PmaAbsoluteUri'] not being set
* You should use this if and ONLY if the PmaAbsoluteUri auto-detection
* works perfectly.
*/
$cfg['PmaAbsoluteUri_DisableWarning'] = FALSE;
..
$cfg['Servers'][$i]['host'] = 'localhost'; // MySQL hostname or IP
address
Hth,
Andre
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
gt; server DB. Has anyone had experience with such a CMS?
> >
> > Todd
Try:
http://www.mamboserver.com
easy to install, update, etc.
Hth,
Andre
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ED]
Just out of curiosity, are there any templating engines out there that would
automatically generate and then fill in values for a TODO list?
IATOL,
Andre
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Thursday 28 April 2005 03:21 pm, Ryan A wrote:
> On 4/28/2005 8:18:28 PM, Andre Dubuc ([EMAIL PROTECTED]) wrote:
> > On Thursday 28 April 2005 02:05 pm, John Nichel wrote:
> > > Jason Barnett wrote:
> > >
> > >
> > >
> > > > Humor is o
echo("Page Not Set.");}
> ?>
>
> My site is: http://bonhamlinux.org
> My email is: [EMAIL PROTECTED]
>
> Thanks for all the help.
> Thomas
I spot perhaps a typo in http://bonhamlinux.org/idex.php?page=links/index.php
Might that be 'index' instead?
Hth,
And
Alabama
. . .
[snippet of some validating code verifying $selstate that relies on $selstate]
Please choose from 'In USA/Canada' or type in 'Other
State'.
Do not use bothClick 'Back' on your browser to
re-enter information");
?>
Any ideas why th
On Friday 13 May 2005 02:20 am, Richard Lynch wrote:
> On Thu, May 12, 2005 8:41 pm, Andre Dubuc said:
> > I've had some rather odd intermittent behavior with a select list drawn
> > by a
> > 'require' on my production site. Sometimes, rather than displaying
I was wrong).
I'll give it whirl, and take it out for a test-drive.
Thanks,
Andre
On Friday 13 May 2005 10:51 am, you wrote:
> Sounds like it might be a browser behavior issue. I've seen some really
> weird behavior in browsers when a DOCTYPE is not declared at the start
> of t
On Saturday 14 May 2005 02:14 am, you wrote:
> On Fri, May 13, 2005 5:59 am, Andre Dubuc said:
> > However, the behavior continues intermittently. I've duplicated it one
> > time.
> > If I click on the 'State' dropdown list, allow the mouse to scan through
&
ccess to the internals of ucase function so I can find out how to do
this, or is there any easier way?
Any ideas, suggestions, and even admonitions would be very welcome!
Tia,
Andre
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
://www.your_site.com.php";);
exit;}
?>
Hth,
Andre
On Thursday 17 June 2004 07:27 pm, Ryan Schefke wrote:
> I'm getting some strange behavior when trying to go from http to an https
> script.
>
>
>
> After clicking a form submit button the script will execute the two l
opening pages.) I suppose you
might get away with a Meta Refresh but I'm not too clear whetehr you can
accomplish that for the same page . .
Aside from that idea . . . .
Hth,
Andre
On Thursday 17 June 2004 08:31 pm, you wrote:
> Yeah, I'm assuming it's set. I have an inst
n in
/var/www/html/list.php on line 235
Warning: reset() [function.reset]: Passed variable is not an array or object
in /var/www/html/list.php on line 236
Warning: Variable passed to each() is not an array or object in
/var/www/html/list.php on line 237
What am I doing wrong?
Any help greatly app
rted array, but couldn't manage to
merge the first names.
I'll try this code -- hope it works, and get back to you!
Thanks again!
Andre
On Thursday 24 June 2004 11:21 pm, Lars Torben Wilson wrote:
> Andre Dubuc wrote:
> > Given a text string:
> >
> > $OK = "
is, and will this protect the db password any better than if it stays in
the webarea?
Any help, guidance, or ideas most welcome.
Tia,
Andre
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Friday 02 July 2004 09:16 am, Jordi Canals wrote:
> Andre Dubuc wrote:
> > I thought a simple re-direct page might do
> > the trick.
> >
> > I've tried three methods:
> >
> > the header approach
> > header("location: ../conn-up.php"
Hi Chrsitian,
If you're looking fro a web or static stats package, IMHO none better than:
http://awstats.sourceforge.net/
(I've used other packages, but this is the most flexible.)
Hth,
Andre
On Tuesday 06 July 2004 07:15 am, Christian Calloway wrote:
> Hey everybody,
>
&g
Hi Michael,
session_start(); must be the very first line of code on the page, with no
whitespaces trailing, else you'll get the 'header already sent' message:
Hth,
Andre
On Monday 12 July 2004 10:40 am, Michael Purdy wrote:
> Folks
>
> I am a new to php. I am
I'm trying to build PHP 5.2 as an Apache 2.0 handler module.
Apache and PHP are installed with DESTDIR/INSTALL_ROOT=/sandbox
set because the end goal is to make a package, not to install on
the build machine.
The paths returned by apxs are relative to /, not to /sandbox
which throws off PHP's make
What goes wrong? I have no idea what i id not correctly.
Can anybody help please?
Thanks
Andre
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
or this:
print('$this->user->site[0]::');
print_r($this->user->site[0]);
wait... thats what he done hehe
nvm?
what is your php5 build?
have you tried the examples?
(http://www.php.net/manual/en/ref.simplexml.php)
did they work?
anyway, it looks prett
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
i dont know if that can be fixed using php, it looks like a firewall
setup problem?
which port is apache running?
i got confused with your ponctuation and explanations, maybe some
rephrasing and more details, like error message, could help
Rick La
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
(1) dont know if u understood, but have you tryed flush()?
(http://www.php.net/flush)
(2) i think you could make a script for 404 error, and that script could
take that path in the url and use it for searching...
Ryan A wrote:
Hi,
I have to question
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
i think you are talking about this: http://www.phpdoc.de/
while this newsgroups is about this: http://www.php.net/
you may find what you want to now here, but maybe you would have more
luck here: http://www.phpdoc.de/doc/
or here: http://www.phpdoc.de/
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
if you try, i think you will see that you can
Paul Higgins wrote:
Hello everyone,
I'm beginning to experiment with PHP sessions. I was wondering if it is
possible to place objects into the session?
Thanks,
Paul
_
i got that doubt too
than i checked the manual: http://www.php.net/session
seems like it can cache, but the default is no cache
using http://br.php.net/manual/en/function.session-cache-limiter.php ,
you can tune it (dont know how good it would do it)
anyway... i use mysql heap table (it stays on
probably, some of those $_SESSION['question#'] are unset, or arent arrays..
try:
foreach ($answers as $questions) {
$question .= "__";
if (!is_array($questions))
continue;
foreach ($questions as $subquestion)
$question .= $subquestion."--";
}
}
>$insert_query = "INSERT INTO Survey
Enrique Martinez wrote:
Hello, I'm getting an error that says:
Parse error, unexpected T_STRING on line 73
line 73 is:
this is what I have below line 73:
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
http://www.w3.org/1999/xhtml";>
I have PHP-4.2.2, Apache 2.0 on RedHat Linux 9.
i think you have to give each checkbox a different name
try: del0, del1, del2,...
and each one with the id of the thing you are displaying
than you do something like this:
for ($i=0; isset($_POST['del'.$i]); $i++)
{
if (!empty($_POST['del'.$i]))
$res = mysql_query("DELETE FROM $table_name
spanish newsgroup: http://news.php.net/group.php?group=php.general.es
php.general.es
just complementing Alex Hogan words:
http://www.php.net/manual/en/function.getenv.php
(read the comments, they have the code you want)
:: N A S S A T :: Depto Tecnico wrote:
En una news de www.php.net informan d
char->decimal = ord('a')
http://www.php.net/manual/en/function.ord.php
Csko wrote:
Hi!
Is there a function to convert a ASCII char to decimal or binary?
Or a program?
csko
--
André Cerqueira
signature.asc
Description: OpenPGP digital signature
can you post something that would run on php?
Larry Brown wrote:
Apparently I'm having some kind of meltdown here. Can anyone explain the
logic behind why the following variable has the original value and how I can
pull/push the value to access it at the end?
while loop
{
$variable = 1
try echo'ing $_FILES['image_upload']['tmp_name'], and check if the path
exists
maybe some wrong configuration on php.ini
upload_tmp_dir ?
it is usually a good idea trying to isolate the smallest piece of code
that gives the unwanted result
makes it easier for other ppl to help, and sometimes you
i didnt know what XSS was, just read it on webopedia.com now, maybe i
got the wrong idea...
strip_tags should prevent a kind of explotation, but maybe its behavior
is not exactly what you want...
see also htmlentities (http://www.php.net/htmlentities)
you need to ask yourself how the environmen
try absolute urls on 'Location' headers
if thats the problem, ie is not exactly broken, just making some
(questionable) standards mandatory
Chris De Vidal wrote:
Microsoft broke IE 6.0 SP1 on XP in January, requiring this patch to be
able to log into our MySQL-authenticated website:
http://www.mi
is that all?
Khalid Judeh wrote:
hello all,
i am new to php, i am trying to call the date function this way:
and the result i get is: object18/03/04
any help would be appreciated
Khaled Jouda
cell. phone: 0163-2382758
fax: 1(801)439-125
you need to ask yourself how the environment that you are using will
interpret things
if you are sending this query:
"SELECT ... FROM ... WHERE field1='". $_POST['field1'] ."'"
and $_POST['field1'] is:
0' OR field2=0 AND ''='
the resulting string would be:
SELECT ... FROM ... WHERE field1='0' OR
hing
to pass via sessions with register_globals=on with a site I had rebuilt. All
sorts of strange behavior -- if you look back in the archives you see what I
mean.
Once register_globals was switched to 'off' everything worked as expected.
Sorry to throw a wrench into the works!
ere a workaround for this problem, or is this a normal occurence?
Any suggestions or pointers would be gratefully appreciated.
Tia,
Andre
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
t;);
> AD> break;
>
> AD> default :
> AD> header("location: join.php");
> AD> break;
>
> AD> endswitch;
> AD> }
> ?>>
>
> AD> Is there a
combo.
Thanks for the suggestion.
Regards,
Andre
On Saturday 13 November 2004 07:42 pm, Marek Kilimajer wrote:
> What if you try:
>
>
>
>
> Andre Dubuc wrote:
> > Hi,
> >
> > I have a very annoying problem with pages that re-display using the > action
on your
browser to enter this information");
...
?>
Any pointers of what I'm missing here would be appreciated.
Tia,
Andre
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
nd again for the reset values. Hence, $ref_page
gets reset by line 53 ($ref_page = get_ref_page();
I experienced the same difficulty once, and essentially solved the problem by
adding an extra page that is called, by a simple switch statement, if there
is a change: i.e, from 'community' to 'market'. Another question, by any
chance, are you switching into https by any chance?
Hth,
Andre
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
esize is greater than maximum 75k!
Please resize your picture to below 75k, and try again!";
}
This works for me -- might want to modify it and see if it clicks on yours. My
pix directory is 777, uploaded files go in as apache:apache 755. (also, if
you try to upload greater than limit set i
centering and saving the images solved the problem. Thanks again to all who
offered suggestions.
A Blessed Christmas to all.
Andre
Hi Mark,
Tried your idea - no go.
Somehow I think the problem may be related to the banner's gif width (set at
101%). I recall when I first made the banner, whic
rks fine on
commandline).
$Pdf";
passthru("sudo pdftotext /var/www/html/2005-o1-v2.pdf.txt
/var/www/html/current.txt");
*/
$current = "current.txt";
print "Current Text: $current";
$string_text = file_get_contents("current.txt");
$new_text = nl2br
SQL statement based on form variables. A
snippet of the script is below.
I'd sincerely appreciate any help or guidance!!
Andre
"; /* This shows as blank */
echo "Pass_company=$pass_company";
echo "Pass_contact=$pass_contact";
echo "Pass_sort=$pass_sort";
Hya'll,
I've got a little problem with coding some php/mysql, this is what I have :
-
Table Search
-
HouseID | FacilityID | SurroundingID | PriceID | TypeID | C
Hello,
I created a librairy with configuration setting: background color, font size,
customer's name, etc. Like this:
(lib_config.inc)
$bgcolor = "#ff";
$co = "ABC enterprise";
A second file is building html page headders:
(lib_intra.inc)
function title($name_section,$name_page){
print "\
Thanks a lot
Marc-Andre Vallee
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thanks a lot
--
Marc-Andre Vallee
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello,
I am trying to display a HTML table of 2 cells with "n" elements... This means
an unknown number of lines.
I need to use 2 FOR loops (one to determine the number of and one to
create the 2 cells needed). This is a bit to overwellming for me...
I have:
$result = connect_db("select pr
0
it doesn't works
maybe, i need a slackware package
witch one
thanks a lot
--
Marc-Andre Vallee
[EMAIL PROTECTED]
--
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 administ
use the C style constant
argv[]
argc
and call your .php like this
foo.php 1 5
then, argv[1] = 1
and, argv[2] = 5
--
Marc-Andre Vallee
[EMAIL PROTECTED]
"Bill" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> When PHP is b
Hi,
When I try to use the SNMP class I got the following error: PHP Fatal error:
Class 'SNMP' not found. I use the following version: PHP 5.3.3 (cli) and it
runs on CentOS release 6.2 (Final). I've also installed
net-snmp-5.5-41.el6_3.1.x86_64. According to the documentation "In order to
use t
401 - 473 of 473 matches
Mail list logo