On 23/06/06, Richard Lynch <[EMAIL PROTECTED]> wrote:
On Thu, June 22, 2006 4:16 am, weetat wrote:
An javascript thingie for "onStop" if it exists might help.
window.onunload
/ahmed
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 23/06/06, cajbecu <[EMAIL PROTECTED]> wrote:
$data .= "".ord(substr($string,$i,1)).";";
and I think there's no need for substr.. just
$data .= "".$string[$i].";";
/ahmed
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 23/06/06, weetat <[EMAIL PROTECTED]> wrote:
Anybody have any ideas what happening here ?
Try this as the first line
You can remove it later, of course, but it would enable displaying php
errors as it's commonly disabled in production systems, AFAIK..
/ahmed
--
PHP General Mailing Lis
On 19/06/06, Ryan A <[EMAIL PROTECTED]> wrote:
guess i am using special version of google...
an iGoogle? ;)
/ahmed
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 15/06/06, Andras Kende <[EMAIL PROTECTED]> wrote:
Is there any drawback servings video files through php downloader script on
high load site?
the question is why you want that?
If you want to "log" how many times/when the video files were viewed,
you can send the request to a PHP script tha
Hi Richard..
On 15/06/06, Richard Lynch <[EMAIL PROTECTED]> wrote:
HTTP just plain ain't gonna let you open a file up for "writing" --
thank god.
I think it does in form of PUT requests..
http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html
(apparently not supported by PHP streams(?))
Secur
On 17/06/06, Richard Lynch <[EMAIL PROTECTED]> wrote:
I dunno if AJAX will let you quit partway through, but you could
definitely do this with the lean and mean hand-coded XmlHttpRequest
object and sending HEAD to see if the URL is "there" or not.
For security reasons, an XMLHttpRequest objects
On 4/25/06, Richard Lynch <[EMAIL PROTECTED]> wrote:
> Now *THAT* would be a feature worth paying for in an IDE! :-)
Well, you actually don't have to pay anything. TruStudion PHP
foundation version (read free/open source version) has a decent code
formatter and a pretty neat editor: argument orde
On 4/25/06, Robert Cummings <[EMAIL PROTECTED]> wrote:
> If you carefully comb the archives you'll see that many of us that make
> quite liberal use of RTFM also quite often give answers to the same
> simple questions, and often quite recently.
That's a _quite_ true statement, I think :)
I have
On 4/21/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> redirects to:
> http://www.example.com/index.php?action=edit&type=customer&id=1234&adminaccess=1
and you put admin access flags (read, determine roles) in URL parameters?
-ahmed
On 4/13/06, Mad Unix <[EMAIL PROTECTED]> wrote:
> can you please send some interview questions for php
> i have in few days to inteview some people.
Well, a simple google search could have saved you all this
http://www.google.com/search?q=php+interview+questions
and do NOT try PHP at home! I
Hi Richard,
On 4/12/06, Richard Lynch <[EMAIL PROTECTED]> wrote:
> I need the cookies and all that...
There's a PHP implementation of an HTTP client at
http://www.phpclasses.org/browse/package/576.html
Even if you needed to tweak something, it should be easier to modify and debug
good luck
/ahm
On 1/26/06, Richard K Miller <[EMAIL PROTECTED]> wrote:
> @(http://\S+)(?!\.)@ -- this still captures everything
> @(http://\S+?)(?!\.)@-- this captures too little
hmm maybe this would work?
@http://.+(?=\.)@
On 1/25/06, Ahmed Saad <[EMAIL PROTECTED]> wrote:
> On 1/25/06, Ahmed Saad <[EMAIL PROTECTED]> wrote:
> > On 1/23/06, Richard K Miller <[EMAIL PROTECTED]> wrote:
> >
> > > function link_the_links($s) {
> > > return preg_replace('@(htt
On 1/25/06, Ahmed Saad <[EMAIL PROTECTED]> wrote:
> On 1/23/06, Richard K Miller <[EMAIL PROTECTED]> wrote:
>
> > function link_the_links($s) {
> > return preg_replace('@(http://[^\s]+)@sm', '$1',
> > $s);
> > }
> if ($s[st
On 1/23/06, Richard K Miller <[EMAIL PROTECTED]> wrote:
> function link_the_links($s) {
> return preg_replace('@(http://[^\s]+)@sm', '$1', $s);
> }
> I've got to somehow ignore the trailing period if it is present.
if ($s[strlen($s)-1] == '.'){
$s = substr($s, 0, -1);
}
-ahmed
On 1/18/06, William Stokes <[EMAIL PROTECTED]> wrote:
> I'am trying to deside between two options. To resize (=scale down) the
> images once they are uploaded to server and store the smaller file or upload
> and store the original BIG file and scale it to thumbnail once it's viewed.
> Any opinnion
On 1/18/06, Miguel Guirao <[EMAIL PROTECTED]> wrote:
> $this->$NumDias = $unixtime2 - $unixtime1; <--- This is the line 44
hmm wasn't it supposed to be $this->NumDias? (with no $ before the propery name)
-ahmed
Ahmed basha :)
On 12/12/05, Ahmed Abdel-Aliem <[EMAIL PROTECTED]> wrote:
> i know i can detect the file size after being uploaded, but i do want
> to detect the file after it is being uploaded to the server.
You may want to read this code walkthrough
http://blog.joshuaeichorn.com/archives/2005/05
Hi Andy,
On 12/7/05, Andy Pieters <[EMAIL PROTECTED]> wrote:
> Right now when the user is logged in, I put its id in the session.
> Then when the user edits his details I put the id in the form and when it
> comes back I verify if the id matches the one in the session.
Well, is session data saved
Hi Jeff,
On 12/6/05, Jeff McKeon <[EMAIL PROTECTED]> wrote:
> I'm sure there's better software out there that is more suited to
> writing and editing PHP pages. What do you all use?
Eclipse + TruFoundation (PHP/Python) + JSEclipse + CSSEditor + Web
Standard Tools (HTML/XML/...)
Well, first of
Hi Michael,
On 12/3/05, Michael B Allen <[EMAIL PROTECTED]> wrote:
> Why do sessions use cookies?
'cause HTTP is a "stateless" protocol ... check
Wikiepedia on HTTP Cookies at http://en.wikipedia.org/wiki/HTTP_cookies
and RFC 2109 http://www.cse.ohio-state.edu/cgi-bin/rfc/rfc2109.html
such "stat
Hi Greg,
On 12/1/05, Greg Donald <[EMAIL PROTECTED]> wrote:
> Do you still have to reassign the data in the view for use in the
> template after having already created it once in the action? That is
> quite the pain.
in View::execute() you can quickly import all request parameters or
attributes
On 11/30/05, Gregory Machin <[EMAIL PROTECTED]> wrote:
> Hi..
> Any body recomend a good MVC platform that is easy to work with, and build
> on...
http://www.agavi.org
0.10rc is already in the svn
-ahmed
On 12/1/05, Albert <[EMAIL PROTECTED]> wrote:
> The downside of this is that you do not have persistent connections which
> last beyond the end of the script.
Maybe it's not a real downside :)
http://wordpress.org/support/topic/42389
and
http://www.mysql.com/news-and-events/newsletter/2002-11/a000
On 12/1/05, Erfan Shirazi <[EMAIL PROTECTED]> wrote:
> foreach($_POST as $key => $tempvalue)
> {
> $cVariable .= $key."=".$tempvalue."&";
> }
> Is there anyway I can get the values chosen instead of just "Array"?
check for that first using is_array() and then loop through it
appending it
On 11/21/05, Voip tech <[EMAIL PROTECTED]> wrote:
> exec("/var/www/html/myprog -E 123456789098.dat sample1.txt
> sample1.new");
> ?>
use and check $return_val?
-ahmed
On 11/28/05, Reza Iqbal <[EMAIL PROTECTED]> wrote:
> As a new open source project, we will need many advice in order
> to make it success.
ah an "open source" project with "encoded source code"?! how come?
-ahmed
On 11/27/05, Todd Cary <[EMAIL PROTECTED]> wrote:
> Ahmed -
> Been there! What would you suggest? My HTML looks like this if I use this
look at http://smarty.php.net
-ahmed
On 11/26/05, Todd Cary <[EMAIL PROTECTED]> wrote:
>/* Input a field */
>function input_field($name, $value, $size, $max) {
> echo('');
>};
A bit away from your OO question, but IMHO, such function good in
terms of rapid coding but bad if you ever get a graphic/web designer
to re
On 11/26/05, Yaswanth Narvaneni <[EMAIL PROTECTED]> wrote:
> I 'dont' want to use something like select * from table where
> table.passwd=password($passwd);
Well, i think you better use a specific password hashing function
rather than MySQL's password() 'cause it's implementation is not
consisten
hi all,
how can i call static methods of a class whose name is variable.. something like
I can do this with reflection by creating a ReflectionMethod object
then invoke()ing it, but is there a better way?
Thanks
-ahmed
hi Skippy
On 7/14/05, Skippy <[EMAIL PROTECTED]> wrote:
> Quoting Ahmed Saad <[EMAIL PROTECTED]>:
> >// do whatever with the chuck you read.
> > // you can encrypt it and write all the chunks to the same file
>
> But if you encrypt one chunk at a time
hi babu
On 7/13/05, babu <[EMAIL PROTECTED]> wrote:
> i have a set of queries which i have placed them in one .sql file.i want to
> run this file using php's mssql and oracle(oci) functions.
you need a database abstraction layer to help you with that (adodb for example)
function fireSQL( $dri
hi david,
On 7/14/05, david forums <[EMAIL PROTECTED]> wrote:
> So I need to know a way to be able to encrypt large file.
function readfile_chunked ($filename) {
$chunksize = 1*(1024*1024); // it reads 1 mb per chunck. adjust this
if u need.
$buffer = '';
$handle = fopen($filename, 'rb');
Hi Suma,
On 7/11/05, suma parakala <[EMAIL PROTECTED]> wrote:
> Since i have placed logout in head frame its being logged out from head
> frame only. How i can log out from all three frames. anyone please help me
> Thanks
Redirect the user to another page, which loads in the main window (not
in a
On 7/13/05, Richard Lynch <[EMAIL PROTECTED]> wrote:
> I think you need to call session_name() *BEFORE* session_start() but I
> could be wrong about that...
totally right! in the php manual,
"The session name is reset to the default value stored in session.name
at request startup time. Thus, you
Hi jeffrey,
On 7/13/05, Jeffrey <[EMAIL PROTECTED]> wrote:
> Is it worth encrypting data on the database tables when anyone who can
> access the application itself - or better still the server - could
> readily access the encrypted data? Assuming SSL connections, secure
> server, etc, would you a
On 7/13/05, Ahmed Saad <[EMAIL PROTECTED]> wrote:
> i fell it my inbox though normally the filter would just skip
sorry i meant it fell in my inbox where my gmail filters would
normally skip te inbox step and just apply the label
--
PHP General Mailing List (http://www.php.net/)
To un
On 7/13/05, Chris W. Parker <[EMAIL PROTECTED]> wrote:
> I've been doing that forever and I've never had anyone complain? Did you
> get this message twice?
i fell it my inbox though normally the filter would just skip
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http:/
On 7/13/05, Greg Donald <[EMAIL PROTECTED]> wrote:
> `php -h` tells you all the command line options.. and all the basic
> fuctionality is covered in the manual online. Seems complete to me.
ehmm you weren't refering to the CLI version but anyways, I'd be
grateful to anyone who points me to more
Hi André,
On 7/12/05, André Medeiros <[EMAIL PROTECTED]> wrote:
> Since there was no reference to that on the PHP manual, I thought about
> mentioning it just to be safe.
yeah the manual is completely drak when it comes to php CLI binary
--
PHP General Mailing List (http://www.php.net/)
To unsub
Hi Bruno,
On 7/12/05, Bruno B B Magalhães <[EMAIL PROTECTED]> wrote:
> Hi you all!
> $vars['varname'] = 'varvalue';
>
> And I would like to have a module to change those parameters, but I
> don't know how to write a pattern to match it...
i think you mean an API to help you manage and persist yo
On 7/12/05, John Nichel <[EMAIL PROTECTED]> wrote:
> Can of Worms Status : Open
oh yeah sure
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi Chris
On 7/12/05, Chris W. Parker <[EMAIL PROTECTED]> wrote:
> This has come up many times in the past and so far it has not changed.
> Just hit the Reply to All button and you'll be fine.
thanks for pointing that out
-ahmed
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
Hi all,
I've been around this list for a month or something but i just
discovered today that all my replies weren't sent to the list but
instead to the individual who sent the message. I haven't administered
any list systems before but at Apache for example it appends a
reply-to header pointing to
On 7/12/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> 2. If I write down the IP of a user that log on my web site, can I check
> later if the IP still browsing pages at my web site or if he had left my
> website?
Don't assume that every IP maps to only ONE user. IPs are often
masqueraded so
hi all,
> On Tue, 2005-07-12 at 16:49 +0200, daro wrote:
> Also remember to set_time_limit(0) ;)
PHP ENTER CONFUSION
The *CLI* version of php has no max execution time by default (0)
- Where's the php CLI version in php4?
[PHP_HOME]/cli/php.exe and it reads a php.ini if it was in the SAME
direc
On 7/11/05, x <[EMAIL PROTECTED]> wrote:
> Since we can see the time cost each time we query MySQL through MySQL
> console (such as 75 rows in set (0.01 sec)), so I am wondering there is
> already an existing function which will return the value...
I think you are confusing two things: mysql serve
49 matches
Mail list logo