6 mar 2008 kl. 06.10 skrev Zareef Ahmed:
HI Chirs,
On 3/6/08, Chris <[EMAIL PROTECTED]> wrote:
Zareef Ahmed wrote:
Hi Chris,
Thanks for such quick response.
quite good suggestion, but my application is using a framework
and lots
of includes and even autoloads of classes are being done,
tedd skrev:
At 2:17 AM + 2/29/08, Nathan Rixham wrote:
Nathan Rixham wrote:
try changing:
imagettftext( $im, $title_size, 0, 50, 50, $white, $font, $title );
to:
imagettftext($im, $title_size, 0, 50, 50, $white, $font,
utf8_decode($title));
Both statements work for me. -- see here:
htt
Hi Chris,
Thanks for such quick response.
quite good suggestion, but my application is using a framework and lots of
includes and even autoloads of classes are being done, so using break point
approach is not possible for me.
Well, trying to do something so I can call my memory usage function
HI Chirs,
On 3/6/08, Chris <[EMAIL PROTECTED]> wrote:
>
> Zareef Ahmed wrote:
> > Hi Chris,
> >
> > Thanks for such quick response.
> >
> > quite good suggestion, but my application is using a framework and lots
> > of includes and even autoloads of classes are being done, so using break
> > poi
Zareef Ahmed wrote:
Hi Chris,
Thanks for such quick response.
quite good suggestion, but my application is using a framework and lots
of includes and even autoloads of classes are being done, so using break
point approach is not possible for me.
Why not? It just means the files are spread
Zareef Ahmed wrote:
Hi All,
I am looking into the concepts behind memory management in PHP. Which
kind of approach will be best to measure memory leakage or usage in a PHP
script?
I can measure my apache process but is there any way by which I can know
which exact part of script is consuming
Hi All,
I am looking into the concepts behind memory management in PHP. Which
kind of approach will be best to measure memory leakage or usage in a PHP
script?
I can measure my apache process but is there any way by which I can know
which exact part of script is consuming how much memory?
--
Manuel Lemos wrote:
> Hello,
>
> on 03/05/2008 08:22 PM Stephen said the following:
>> Subject says it.
>>
>> Is there an open source class for forms that provides for the use of CSS
>> for the layout of forms?
>
> You may want to try this forms generation and validation class. It comes
> with a
Hello,
on 03/05/2008 08:22 PM Stephen said the following:
> Subject says it.
>
> Is there an open source class for forms that provides for the use of CSS
> for the layout of forms?
You may want to try this forms generation and validation class. It comes
with a vertical layout plug-in. By defaul
I am connecting to a Third Party WSDL that needs me to turn return an Array
of results to them. I do and PHP returns this ...
en
50d3c78a0213b3e083ce7b6c7fa760a299798246fb6bbf1dc2dc81
12a841454d5bcb9cb752b18e299cd9be84214175b6c971065d8df08b52283408b925dd8541
Subject says it.
Is there an open source class for forms that provides for the use of CSS
for the layout of forms?
Thanks
Stephen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I won't address the main issue of your question, since it looks like that has
been solved. But I want to point out a few other things that might help you.
Follow along below...
Jason Pruim wrote:
So for some reason, arrays always mess me up... I don't know what it is,
but it just hasn't click
Hey All,
Can you guys tell me of a good open source package which does things like
craiglist/backpage etc?
Also has anyone had good success with PHPcalendar?
Thanks!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Shawn McKenzie wrote:
sudo pear install HTML_QuickForm
That was so easy.
Thank you!
Stephen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Stephen wrote:
> Wolf wrote:
>
>> Open a terminal window on the server
>> at the prompt type:
>> locate QuickForm.php
>>
>> If it comes back with the path/file, make sure the path to the file is
>> in the include folder
>>
>> If it comes back to just a regular terminal prompt right away, then
>>
Skip Evans wrote:
> (Apologies to Shawn for sending this directly to him and not the entire
> list, that was an accident. Here it is for the list.)
>
> Shawn McKenzie wrote:
>
>>
>> Rewrite rule would look something like:
>>
>>
>> RewriteEngine On
>> RewriteCond %{REQUEST_FILENAME} !-d
>
Wolf wrote:
Open a terminal window on the server
at the prompt type:
locate QuickForm.php
If it comes back with the path/file, make sure the path to the file is in the
include folder
If it comes back to just a regular terminal prompt right away, then you need to
install it.
The following i
At 10:45 AM -0500 3/5/08, Jason Pruim wrote:
>Me personally, I'm on Wife 1.0 (Still working out a few bugs before
>1.1 is released) But I do have Son 1.20 and in a few months Son 2.0
>will be released into the wild.. The only problem I have found with
>wife 1.0 and son 1.20 is my bank account whi
On Wed, Mar 5, 2008 at 2:06 PM, John Papas <[EMAIL PROTECTED]> wrote:
> Are there any in PHP?
>
> It seems like there are those that draw upon the C/unix naming
> conventions and those that follow the Java/OO style.
>
> Even PHP's native syntax (like function names pre/post v5) are not
> consis
(Apologies to Shawn for sending this directly to
him and not the entire list, that was an accident.
Here it is for the list.)
Shawn McKenzie wrote:
Rewrite rule would look something like:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
> > [snip!]
> >> But there is no /usr/share/pear directory.
> >>
> >> I have a /usr/share/php/PEAR and it has things that look like
> >> installation files.
> > [snip!]
> >> Can anyone help me figure out how to get the installation fixed?
> >
> > Update your php.ini to add /usr/share/php/P
Daniel Brown wrote:
On Wed, Mar 5, 2008 at 12:59 PM, Stephen <[EMAIL PROTECTED]> wrote:
My LAMP is on Ubuntu 7.10
[snip!]
Fatal error: require_once() [function.require]: Failed opening required
'HTML/QuickForm.php' (include_path='.:/usr/share/php:/usr/share/pear')
in /home/stephen/www/rois
Are there any in PHP?
It seems like there are those that draw upon the C/unix naming
conventions and those that follow the Java/OO style.
Even PHP's native syntax (like function names pre/post v5) are not consistent.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http:
On Wed, Mar 5, 2008 at 3:08 AM, Angelo Zanetti <[EMAIL PROTECTED]> wrote:
[snip!]
> No what I would like to know is how can I record when a user closes the
> browser or the session expires? There is no action for these items. So what
> would the best way be to keep a record of this? Would the us
Skip Evans wrote:
> Hey all,
>
> I have a weird issue that's got me pretty stumped, and I'm not sure I
> can do what the client is asking, or at least not how I'm trying to do it.
>
> I have a code base of my own I'm building sites on, fully AJAX enabled
> so that once the site loads it never ful
At 2:17 AM + 2/29/08, Nathan Rixham wrote:
Nathan Rixham wrote:
try changing:
imagettftext( $im, $title_size, 0, 50, 50, $white, $font, $title );
to:
imagettftext($im, $title_size, 0, 50, 50, $white, $font,
utf8_decode($title));
Both statements work for me. -- see here:
http://www.webby
Richard Heyes wrote:
So, my question is how would I do that, and I strongly suspect if it's
possible at all an .htaccess file with the proper entries would be the
way to do it, not using PHP code to redirect as I am now.
Is this the case?
You would need to use mod_rewrite.
You might also
On Wed, Mar 5, 2008 at 12:59 PM, Stephen <[EMAIL PROTECTED]> wrote:
> My LAMP is on Ubuntu 7.10
[snip!]
> Fatal error: require_once() [function.require]: Failed opening required
> 'HTML/QuickForm.php' (include_path='.:/usr/share/php:/usr/share/pear')
> in /home/stephen/www/roissy.ca/public_html/
My LAMP is on Ubuntu 7.10
I am trying to use PEAR, for the first time, and get an error about the
include file not being found.
It is not there.
phpinfo() has include_path set to .:/usr/share/php:/usr/share/pear
Here is my error:
Warning: require_once(HTML/QuickForm.php) [function.require-o
ctype_alpha ( string $text )
Adil Drissi wrote:
Hi,
Is there any way to limit the user to a set of characters for example say i
want my user to enter any character between a and z (case insensitive). And if
the user enters just one letter not belonging to [a-z], this will not be
accepted.
Wolf wrote:
Why does is redirect back to the beginning? Seems to me that is where your
issue is arising from. The client wants /wi/madison to be in the URl, so you
have a few things to do...
Stop redirecting to the root and leave it in the /wi/madison folder, then do
stuff it needs to do
So, my question is how would I do that, and I strongly suspect if it's
possible at all an .htaccess file with the proper entries would be the
way to do it, not using PHP code to redirect as I am now.
Is this the case?
You would need to use mod_rewrite.
--
Richard Heyes
Employ me:
http://www.
Skip Evans <[EMAIL PROTECTED]> wrote:
> Hey all,
>
> I have a weird issue that's got me pretty stumped,
> and I'm not sure I can do what the client is
> asking, or at least not how I'm trying to do it.
>
> I have a code base of my own I'm building sites
> on, fully AJAX enabled so that
Hey all,
I have a weird issue that's got me pretty stumped,
and I'm not sure I can do what the client is
asking, or at least not how I'm trying to do it.
I have a code base of my own I'm building sites
on, fully AJAX enabled so that once the site loads
it never fully refreshes a page, but A
De: Richard Lynch [mailto:[EMAIL PROTECTED]
#1
Get the code, install it on a box in the closet, run valgrind
--callgrind
This will give you a stack trace of what gets called the MOST
in your application.
Look for "tall" trees in the call graph, and fix those first.
#2
You can use 'ab' (apach
On Wed, Mar 5, 2008 at 11:19 AM, tedd <[EMAIL PROTECTED]> wrote:
> At 10:45 AM -0500 3/5/08, Jason Pruim wrote:
> >Me personally, I'm on Wife 1.0 (Still working out a few bugs before
> >1.1 is released) But I do have Son 1.20 and in a few months Son 2.0
> >will be released into the wild.. The on
At 10:45 AM -0500 3/5/08, Jason Pruim wrote:
Me personally, I'm on Wife 1.0 (Still working out a few bugs before
1.1 is released) But I do have Son 1.20 and in a few months Son 2.0
will be released into the wild.. The only problem I have found with
wife 1.0 and son 1.20 is my bank account which
On Wed, Mar 5, 2008 at 4:58 AM, Pieter du Toit <[EMAIL PROTECTED]> wrote:
And unless you have your (Apache|IIS|etc.) web server set to
disable direct-access and/or web serving of *.inc files, you should
change these to *.php or *.inc.php files ASAP. Especially the first.
You're looking at a p
On Tue, Mar 4, 2008 at 8:16 PM, Larry Brown
<[EMAIL PROTECTED]> wrote:
> Does anyone know if there is a builtin function for checking the
> formatting of an incoming date to verify it is /MM/DD. I know how
> to convert between formats but want a quick way to check an incoming
> variable to
On Wed, 2008-03-05 at 10:53 -0500, Jason Pruim wrote:
> On Mar 5, 2008, at 10:35 AM, Robert Cummings wrote:
> >
> > I think you want the following after performing a very cursory look at
> > your sample.
> >
> > >
> > $NumArray
> >= isset( $_POST['txtNumArray'] )
> >? $_POST['txtNumArray'
2008. 03. 5, szerda keltezéssel 13.42-kor Pieter du Toit ezt írta:
> This is line 49
>
> $txtPhotoData = addslashes(fread(fopen($txtPhoto, "r"),
> filesize($txtPhoto)));
add this before:
$txtPhoto = $_FILES['txtPhoto']['tmp_name'];
and don't use addslashes but rather mysql_real_escape_string or
Pieter du Toit wrote:
Just to add, if i try to echo the $_FILES['txtPhoto']['temp_name'] it tells
The above reference is wrong. 'temp_name' should be 'tmp_name'
me that temp_name is also an array, but when i echo
$_FILES['txtPhoto']['name'] it gives me the correct name. Also with a
vardump
On Mar 5, 2008, at 10:35 AM, Robert Cummings wrote:
I think you want the following after performing a very cursory look at
your sample.
Mind if I ask why setting it that way would be bettter? Other then the
fact that it looks like it might possibly handle some of the errors
I'm getting
On Mar 5, 2008, at 10:41 AM, Ford, Mike wrote:
On 05 March 2008 15:34, Jason Pruim advised:
Okay so I'm replying to my own post... And top posting to boot! :P
Amazing what happens when you pull a few [] off for completness:
$NumArray = Array($_POST['txtNumArray']);
works as I wanted :)
On Mar 5, 2008, at 10:39 AM, Zoltán Németh wrote:
2008. 03. 4, kedd keltezéssel 18.05-kor Nathan Rixham ezt írta:
tedd wrote:
At 12:15 PM -0500 3/4/08, Daniel Brown wrote:
Amazingly, I do get all of my stuff done. Granted, I'm in front
of a computer seven days per week, and usually a min
On 05 March 2008 15:34, Jason Pruim advised:
> Okay so I'm replying to my own post... And top posting to boot! :P
>
> Amazing what happens when you pull a few [] off for completness:
>
> $NumArray = Array($_POST['txtNumArray']);
>
> works as I wanted :)
Are you sure?? Looks a bit suspect t
2008. 03. 4, kedd keltezéssel 18.05-kor Nathan Rixham ezt írta:
> tedd wrote:
> > At 12:15 PM -0500 3/4/08, Daniel Brown wrote:
> >> Amazingly, I do get all of my stuff done. Granted, I'm in front
> >> of a computer seven days per week, and usually a minimum of 10-12
> >> hours per day, but wh
On Wed, 2008-03-05 at 10:28 -0500, Jason Pruim wrote:
> So for some reason, arrays always mess me up... I don't know what it
> is, but it just hasn't clicked yet... So I'm sure this is a simple
> question for someone who knows and understands arrays :)
>
> So with that being said here's the c
Okay so I'm replying to my own post... And top posting to boot! :P
Amazing what happens when you pull a few [] off for completness:
$NumArray = Array($_POST['txtNumArray']);
works as I wanted :) Anyone have any texts that could help me get a
better grasp on arrays though? :)
On Mar 5,
2008. 03. 4, kedd keltezéssel 12.15-kor Daniel Brown ezt írta:
> but what else would I do? Spend time with the
> pre-wife?
sure that's what you should :)
greets,
Zoltán Németh
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
So for some reason, arrays always mess me up... I don't know what it
is, but it just hasn't clicked yet... So I'm sure this is a simple
question for someone who knows and understands arrays :)
So with that being said here's the code I'm using:
$self = $_SERVER['PHP_SELF'];
$i
On Wed, 2008-03-05 at 07:13 -0800, It Maq wrote:
> Hi,
>
> I am using that right now and i have don't know how to include blank fields.
> For example if a user does not fill a field in a form i want to accept it. I
> tried the code you posted, for now it is blocking blank fields.
>
> Thank you
Hi,
I am using that right now and i have don't know how to include blank fields.
For example if a user does not fill a field in a form i want to accept it. I
tried the code you posted, for now it is blocking blank fields.
Thank you
- Original Message
From: Richard Lynch <[EMAIL PROTEC
And you don't do:
$txtPhotoData = addslashes(fread(fopen($_FILES['txtPhoto']['tmp_name'],
"r"), filesize($_FILES['txtPhoto']['tmp_name'])));
because ?
- Tul
P.S. if you want more readable code (PHP >= 4.3.0, which you should have
anyway) use:
$txtPhotoData = file_get_contents($_FILES['
Thanks Colin this will help me, like i said im just trying to help its not
my code and i dont work with photos like this, but i Do appreciate your
patience with me.
"Colin Guthrie" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Pieter du Toit wrote:
>> That is the problem, i can s
Pieter du Toit wrote:
> That is the problem, i can see the name of the file with $txtPhoto['name']
> but when i use the same with temp_name, i get nothing, one weird thing is
> this [error] => 0 [size] => 17008 , what is that?
>
> this is the code that is giving the problem
> $txtPhotoData = ad
That is the problem, i can see the name of the file with $txtPhoto['name']
but when i use the same with temp_name, i get nothing, one weird thing is
this [error] => 0 [size] => 17008 , what is that?
this is the code that is giving the problem
$txtPhotoData = addslashes(fread(fopen($txtPhoto, "r
Pieter du Toit wrote:
> This is my problem
>
> Warning: fopen() expects parameter 1 to be string, array given in
> /usr/www/users/zululr/marketplace/myzululand/specials_proc.php on line 49
Dude, just as a general observation, when you are asking for help, don't
just describe what you do, post th
Pieter du Toit wrote:
> I ran a print_r on it and this is the results
>
> Array ( [txtPhoto] => Array ( [name] => g1.jpg [type] => image/pjpeg
> [tmp_name] => /tmp/php3qkA4A [error] => 0 [size] => 17008 ) )
>
> The image received here must be inserted into a database as binary it looks
> like i
Well check what the value is. I think you must do more testing yourself
instead of just posting here because then you will not learn and also if you
trouble shoot it yourself it will allow you to fix errors in the future.
-Original Message-
From: Pieter du Toit [mailto:[EMAIL PROTECTED]
This is line 49
$txtPhotoData = addslashes(fread(fopen($txtPhoto, "r"),
filesize($txtPhoto)));
the $txtPhoto is the parameter
""Angelo Zanetti"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> What is on line 49?
>
> What variable are you passing as the parameter?
>
>
>
> -Or
What is on line 49?
What variable are you passing as the parameter?
-Original Message-
From: Pieter du Toit [mailto:[EMAIL PROTECTED]
Sent: 05 March 2008 13:36
To: php-general@lists.php.net
Subject: [PHP] Re: Variable post as array
This is my problem
Warning: fopen() expects paramete
This is my problem
Warning: fopen() expects parameter 1 to be string, array given in
/usr/www/users/zululr/marketplace/myzululand/specials_proc.php on line 49
""Angelo Zanetti"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Have you tried print_r($_FILES); to see all the values
This is my problem
Warning: fopen() expects parameter 1 to be string, array given in
/usr/www/users/zululr/marketplace/myzululand/specials_proc.php on line 49
"Colin Guthrie" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Pieter du Toit wrote:
>> Hi
>>
>> I have this weird proble
I ran a print_r on it and this is the results
Array ( [txtPhoto] => Array ( [name] => g1.jpg [type] => image/pjpeg
[tmp_name] => /tmp/php3qkA4A [error] => 0 [size] => 17008 ) )
The image received here must be inserted into a database as binary it looks
like it.
"Colin Guthrie" <[EMAIL PROTECTED
I ran it, and here is the output
Array ( [txtPhoto] => Array ( [name] => g1.jpg [type] => image/pjpeg
[tmp_name] => /tmp/php3qkA4A [error] => 0 [size] => 17008 ) )
""Angelo Zanetti"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Have you tried print_r($_FILES); to see all the va
Pieter du Toit wrote:
> Hi
>
> I have this weird problem, when i select a file to upload, the variable
> arrives as an array at the action php file, this is the code, and the
> variable name is txtPhoto
I'd give a shorter example. People don't want to read through all your
code..
Also you shou
Have you tried print_r($_FILES); to see all the values in the variable?
Its difficult to see whats going on as you posted your whole file.
-Original Message-
From: Pieter du Toit [mailto:[EMAIL PROTECTED]
Sent: 05 March 2008 12:38
To: php-general@lists.php.net
Subject: [PHP] Re: Variab
Hi all,
I am implementing a system where when a user is logged in and out that a
date time is set in a database for each action for each used. We can then
trace who logged in a and when.
No what I would like to know is how can I record when a user closes the
browser or the session expires? The
69 matches
Mail list logo