[PHP] Re: numrows

2001-08-23 Thread Martin Kampherbeek
This is the error I get. MySQL Query Failed. Error 1030: Got error -1 from table handler Message-ID: <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] From: "Johannes Janson" <[EMAIL PROTECTED]> Date: Thu, 23 Aug 2001 12:40:21 +0200 Subject: Re: numrows Hi, >$query = "SELECT * FROM question WHERE an

Re: [PHP] numrows

2001-08-23 Thread Martin Kampherbeek
il" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [PHP] numrows Hello, Chris, with all due respect, DESC is a reserved word for SQL. is english ORDER BY ID DESC meand sort by id in descending order. Martin, your SQL seems to

[PHP] PHP with RSA/Java

2001-08-24 Thread Martin Gunther
PDQ machine. How can I use a Public Private key system to do this from PHP. I know Java can support RSA (although never investigated it), and that PHP can use standard Java classes (is this true?). Please any help would be great Martin Gunther -- PHP General Mailing List (http://www.php.net

[PHP] PHP and RSA/Java (Repost with correct e-mail!)

2001-08-24 Thread Martin Gunther
PDQ machine. How can I use a Public Private key system to do this from PHP. I know Java can support RSA (although never investigated it), and that PHP can use standard Java classes (is this true?). Please any help would be great Martin Gunther -- PHP General Mailing List (http://www.php.net

[PHP] Re: Please Help - getting a hightlight depending on selected page

2001-08-24 Thread Martin Hughes
: Undefined offset: 1 in E:\inetpub\wwwroot\index.php on line 103 > Warning: Undefined offset: 2 in E:\inetpub\wwwroot\index.php on line 103 > Warning: Undefined offset: 3 in E:\inetpub\wwwroot\index.php on line 103 > etc... down to "10" the rest of the script is: ".$in

[PHP] zlib1.1.3 and ob_gzhandler

2001-08-24 Thread Martin Helie
l" explanation, maybe even a better solution. Martin -- 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]

[PHP] Error

2001-08-24 Thread Martin Kampherbeek
I still get this error. Can someone help me to solve this? MySQL Query Failed. Error 1030: Got error -1 from table handler $query = "SELECT * FROM question WHERE answer<>'1' AND id>250 ORDER BY id"; $result = mysql_query($query) or die('MySQL Query Failed. Error '.mysql_errno().': '.mysql_error

Re: [PHP] Error

2001-08-25 Thread Martin Kampherbeek
This is what I get: allach.question repair error The handler for the table doesn't support check/repair - Original Message - From: Don Read <[EMAIL PROTECTED]> To: Martin Kampherbeek <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Saturday, August 25, 2

[PHP] PHP Install Problem - Please Help

2001-08-25 Thread Martin Stephenson
? I don't have MySQL installed yet - do I need to have that first ??? Thanks, Martin Stephenson. -- 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]

RE: [PHP] The future of PHP

2001-08-25 Thread Martin Wright
Hmmm. Manuel what's that you're smoking? Where can I get some? M -Original Message- From: Manuel Lemos [mailto:[EMAIL PROTECTED]] Sent: 24 August 2001 20:30 To: [EMAIL PROTECTED] Subject: Re: [PHP] The future of PHP Hello, Egan wrote: > > On Fri, 24 Aug 2001 15:34:04 -0300, Manu

RE: [PHP] zlib1.1.3 and ob_gzhandler

2001-08-28 Thread Martin Helie
ECTED]] Sent: Tuesday, August 28, 2001 04:07 To: Martin Helie Cc: [EMAIL PROTECTED] Subject: Re: [PHP] zlib1.1.3 and ob_gzhandler Were you using output compression with previous versions of PHP? Did it work with images in these versions? Also, are you seeing any errors in your Web server's error

[PHP] How to pass variables to php functions from url's?

2001-09-07 Thread Martin Lindhe
nning PHP 4.0.6 on Apache 1.3.20. I've looked at both PHP and Apache documentation about this, but i havent found any information or examples on how this could be solved, so I'm asking the question here in hope for help. Thanks! /Martin Lindhe -- PHP General Mailing List (http://www.ph

SV: [PHP] How to pass variables to php functions from url's?

2001-09-07 Thread Martin Lindhe
execute. > That's all You need I hope. Sorry but Your question is not > good explained. Please read my mail again, I tried to described my problem as good as possible. > Martin Lindhe wrote: > > > I need to solve the following problem, but I can't figure out how: >

RE: [PHP] Re: How to pass variables to php functions from url's?

2001-09-07 Thread Martin Lindhe
> Hi Martin, > > Take a look at the Apache mod_rewrite docs. > > http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html Thanks alot! I made a similar solution which works RewriteEngine on RewriteRule "^/x/(.*)" "http://www.server2.com/users/$1";

RE: [PHP] Re: How to pass variables to php functions from url's?

2001-09-07 Thread Martin Lindhe
.*)" http://www.test.com/y/test.php?val=$1"; seems to work somewhat equal to the RewriteRule, it also visibly show the redirect url. Thanks anyway /Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [

RE: [PHP] Re: How to pass variables to php functions from url's?

2001-09-07 Thread Martin Lindhe
>useful link: http://www.apache.org/docs-2.0/misc/rewriteguide.html > >RewriteEngine on >RewriteRule ^/x/(.*)http://www.server2.com/users/$1 [P] Hm, what does the [P] do? I played around a bit and figured that a [T] does the trick for me, thanks! /Martin -- PHP Gen

RE: [PHP] how to set session expiration

2001-09-12 Thread Martin Lindhe
case 1: $b.=chr(rand(65, 90)); break; //A-Z case 2: $b.=chr(rand(48, 57)); break; //0-9 } } } while (mysql_query("SELECT * FROM ".$table." WHERE ID='$b'",$db)===TRUE); return

RE: [PHP] how to set session expiration

2001-09-12 Thread Martin Lindhe
oh, i forgot to mention, i create new session id on each login, and pass it on in the url, something like /page.php?sess=$sess_id If you want, you could also assign the user's ip with the current session for a little higher security, i havent bothered as i feel this is safe enough. /M

RE: [PHP] Get Info From Database Without Refreshing the Page! Pretty Neat!

2001-09-13 Thread Martin Lindhe
you could load all nessecary data once and put in a javascript array or something, not sure i understand what you have done here and what's so special about it tho /Martin > I used a Microsoft Object Control to get data from the > database and display > it on the page > witho

RE: [PHP] File Uploads

2001-09-13 Thread Martin Lindhe
ension from the $file with code looking something like this: $ext = substr($file,strrpos($file,".")); if $file contains "test.php", then $ext now contains ".php". so change your code to something like: --snip-- $ext = substr($file,strrpos($file,".")); if (

[PHP] Re: How to ENCODE quoted_printable

2001-09-17 Thread Martin Pavlas
th about 33% more space it doesn't seem to me to be the very best >solution :( Base64 works fine. And I think it is the only best solution now :-))) -- Martin Pavlas ParsCom IS s.r.o. http://www.parscom.cz -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

[PHP] Problem with compilation with GD support on OpenBSD 2.9

2001-09-19 Thread Martin Ambroz
Hi, I have problem with GD lib in PHP. I try compile PHP with Gdlib on OpenBSD 2.9. I download gd-1.8.4, freetype-2.0.4, libpng-1.2.0 and jpeg-6b. With compile gd i have some problems, but I thought it was OK. But during compilation php-4.0.6 has happened mistake. This: /bin/sh /home/darius/insta

[PHP] Session-id in url, not in cookies

2001-09-27 Thread Martin Thoma
Hello! How can I make the session-id ONLY be stored in the url, even if the user has cookies enabled? I have no access to the php.ini-file. Any ideas? Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [PHP] Get current date and time

2001-09-29 Thread Martin Kampherbeek
These worked. Thanks - Original Message - From: Kurt Lieber <[EMAIL PROTECTED]> To: 'Martin Kampherbeek' <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Sunday, September 30, 2001 2:34 AM Subject: RE: [PHP] Get current date and time > How about o

[PHP] how to decrease serverload easily?

2001-10-02 Thread Martin Lindhe
he configuration. Is there any easy way of doing this? Anyone have previous experience? Software versions and OS'es is of no concern, we'll use what's required. /Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional com

RE: [PHP] what directory should put the php.ini?

2001-10-02 Thread Martin Lindhe
> Hi all, > > I have just rename the php.ini-dist to php.ini from the > installation directoy but am not sure where to place it in > order for php to > rea,, any help?? > thanks What OS are you running PHP on? /Martin -- PHP General Mailing List (http://www.php.net/) T

[PHP] Using Array of classes as a class member variable?

2001-10-04 Thread Martin Stephenson
variable number of classes (Such as a CObject class in MFC for Visual C++) - i.e. is there soem other collection class/type I don't know of ? Thanks, Martin. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PRO

[PHP] Re: Adding zeros to date

2001-10-05 Thread Martin Thoma
Use the date-function. See help for details. -- 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]

[PHP] Re: using the mssql functions on a linux server

2004-07-24 Thread Chris Martin
, I have an English translation of this article available at: http://www.chriscodes.com/articles/Connecting_to_MSSQL_from_PHP_under_Linux/ -- Chris Martin Web Developer Open Source & Web Standards Advocate http://www.chriscodes.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: exec works with some, but not all commands

2004-07-24 Thread Chris Martin
too. Also you might try system(), shell_exec(), or passthru() if you're trying to get output back. -- Chris Martin Web Developer Open Source & Web Standards Advocate http://www.chriscodes.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: [Fwd: IMPORTANT: Please Verify Your Message]

2004-07-26 Thread Chris Martin
Justin Patrin wrote: On Mon, 26 Jul 2004 11:27:32 +0300, EE <[EMAIL PROTECTED]> wrote: What is this? I got this message few times from php.net... Well, that's weirdI've never seen that one. Apparently they're from an annoying spam service that someone on this list has subscribed to and not ac

[PHP] Re: Creating a PHP5 RPM

2004-07-27 Thread Chris Martin
7;s" while searching google. http://user.cs.tu-berlin.de/~ccorn/software/rpm/build-rpm.html http://www3.sympatico.ca/sarrazip/dev/rpm-building-crash-course.html http://www-106.ibm.com/developerworks/library/l-rpm2/ -- Chris Martin Web Developer Open Source & Web Standards Advocate http

[PHP] Re: php & paypal

2004-07-27 Thread Chris Martin
: http://www.php.net/unsub.php Not in the URL. Read the PayPal docs, they post back a form to the return page. Most of what you're looking for will be there, otherwise there are a few custom fields you can use (for say an invoice number). -- Chris Martin Web Developer Open S

[PHP] Re: PHP5 Manual in PDF and for Pocket PCs

2004-07-31 Thread Chris Martin
http://www.easysw.com/htmldoc/ -- Chris Martin Web Developer Open Source & Web Standards Advocate http://www.chriscodes.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: php coding software

2004-08-02 Thread Chris Martin
, but you're wrong. Dreamweaver DOES have MySQL support and can connect to MySQL databases to help coding your scripts. Yes. PHP and MySQL is supported in DWMX, no extensions required. FTPEdit and HTMLKit are both free editors for Windows Quanta and Bluefish are excellent on GNU/Linux -- Chris

[PHP] Re: Dreamweaver & PHP

2004-08-06 Thread Chris Martin
(although it generates some ridiculous code) Is there any GPL alternative for this kind of stuff? What kind of stuff? Editing PHP? Quanta, or Bluefish. -- Chris Martin Web Developer Open Source & Web Standards Advocate http://www.chriscodes.com/ -- PHP General Mailing List (http://www.php.net/

[PHP] Re: Sessions Problem !!

2004-08-06 Thread Chris Martin
min.php on line 1 This error tells you that the output was started at line 1 of your admin.php file. (maybe a blank line at the top of the script?) As Miles suggested: "You have to call session_start() before any output to the page, even a single space." -- Chris Martin Web Develop

[PHP] Re: Sessions Problem !!

2004-08-06 Thread Chris Martin
tes, but I could've just overlooked it. -- Chris Martin Web Developer Open Source & Web Standards Advocate http://www.chriscodes.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: [Q] How to setup Dreamweaver so that PHP scripts are executed?

2004-08-06 Thread Chris Martin
just go to http://localhost/your_script.php in your browser to test them out, no need to use the command line to pass to a browser. -- Chris Martin Web Developer Open Source & Web Standards Advocate http://www.chriscodes.com/ -- PHP General Mailing List (http://www.php.net/) To unsubs

[PHP] Re: FW: IMPORTANT: Please Verify Your Message

2004-08-07 Thread Chris Martin
Curt Zirzow wrote: * Thus wrote Ed Lazor: Gawd this stuff sucks. Nothing like a spammer posing as the list itself and farming email addresses from members. Its odd, i've yet to get one of those. Either the spammers dns doesn't resolve proper (cause my server rejects those) or if its due to the fac

[PHP] Problem with class and tree-like struct

2004-08-07 Thread Martin Schneider
Hello! I made a class which should represent a tree-like structure (PHP 4.3.8). I made a root-nore and added 2 childs. The problem is that the childs are not added to the parent. Why? Martin class TreeItem { var $m_pParent; var $m_sName; var $m_arrChilds = array

[PHP] Re: Problem with class and tree-like struct

2004-08-07 Thread Martin Schneider
Ah, i forgott to pass the paramter as a reference... Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: annoying autoreplies

2004-08-07 Thread Chris Martin
ply either! At least they're not on PDXLUG!!! -- Chris Martin Web Developer Open Source & Web Standards Advocate http://www.chriscodes.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Failing of imagecreatefromstring function

2004-08-16 Thread Martin Dupal
I've been using func "imagecreatefromstring" for creating JPEGs obtained from MySQL database. The function sometimes fails terminating script with no error message. Has somebody reached such problem? I don't want to save images to temp files. Linux 2.4.26, PHP 4.3.8, gd 2.0 or higher -- PHP Gen

[PHP] PHP5 Gd Library error compiling

2004-08-22 Thread Martin Visser
mooth' ext/gd/gd.lo(.text+0xf231): In function `zif_imageantialias': /usr/local/php5/ext/gd/gd.c:4216: undefined reference to `gdImageAntialias' collect2: ld returned 1 exit status make: *** [sapi/cli/php] Error 1 I tried to compile PHP with only --with-gd (without --with-jpeg-dir etc) and

Re: [PHP] PHP5 Gd Library error compiling

2004-08-23 Thread Martin Visser
Curt Zirzow wrote: * Thus wrote Martin Visser: PHP5, with GD on Linux (Slackware 10.0) ./configure goes just fine, but when I try 'make', there's an error. this is how I configured it: ./configure --prefix=/usr/local/php5 --with-zlib --with-pear=/usr/share/pear --with-mysql=/

[PHP] Re: uppercase sentences

2004-09-03 Thread Chris Martin
gs In particular, for all uppercase, you'll probably find 'strtolower()' helpful. And, as Jim mentioned, ucfirst() will capitalize the first letter. There's a bunch more that can help you control what they're sending you. (Isn't it amazing what people will enter in a f

[PHP] Re: PHP to replace javascript

2004-09-03 Thread Chris Martin
sizes that you're opening in a pop up, and you want each window to fit the image perfectly. You could then use PHP to get the size of the image, to then dynamically insert into the JavaScript. Congrats on RTFM!! It seems daunting at first, but as you learn more, it will become your friend.

[PHP] Re: PHP IDE for OS X

2004-09-04 Thread Chris Martin
t said, you could give Quanta Plus or Bluefish a shot, both are great free linux apps. My personal favorite is Quanta Plus, it contains most of what you mentioned (even auto-completes your variables) On the non-free side, Dreamweaver MX has some decent PHP features, although it's a pricey so

[PHP] Re: installing PHP on winXP

2004-09-04 Thread Chris Martin
dll) in the Apache root, or Apache/modules directory If all else fails you could uninstall and try the WAMP bundle. -- Chris Martin Web Developer Open Source & Web Standards Advocate http://www.chriscodes.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Does any one else get this?

2004-09-04 Thread Chris Martin
ce I never confirmed them, they never made it. I don't want to be considered one of the spammers that I'd like to knock the F* out. -- Chris Martin Web Developer Open Source & Web Standards Advocate http://www.chriscodes.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] stdin buffering

2004-09-09 Thread Martin Holm
n off buffering in the input stream but I can't find any way to do it. Been looking everywhere on php.net but can't find any hints. // Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] stdin buffering

2004-09-09 Thread Martin Holm
Greg Donald wrote: On Thu, 2004-09-09 at 15:25, Jim Grill wrote: exec("stty -icanon min 0 time 0"); Nice. I suspect 'phpSnake' will appear on freshmeat in a couple days. :) thats more or less what we are trying to do. =) pong as a start at least. doing it all over again, this time php-st

[PHP] Re: create and read array

2004-09-11 Thread Chris Martin
;]);\r\n"; } -- Seigo www.geocities.com/seigo_ua/ Just a note to help the learning process. Either mysql_fetch_assoc() and mysql_fetch_array() will return your result in an array, so you don't need to actually create one. -- Chris Martin Web Developer Open Source & Web Standards Ad

Re: [PHP] Splitting 12345 -> 1,2,3,4,5

2004-09-16 Thread Martin Holm
Michael Mao wrote: Thanks John. Found what I'm looking for: Function str_split() to make it php4 compatible you can use this function: | if (!function_exists('str_split')) { function str_split ($str, $size = 1) { $arr = array(); for ($i = 0 ; $i < strlen($str) ; $i += $size) { $

Re: [PHP] Highest Key in an Array

2004-09-17 Thread Martin Holm
Daniel Schierbeck wrote: I've been looking at php.net, but i couldn't find what i'm searching for. I have a numeric array, and i'd like to get the highest key. E.g. $arr = array(3 => "foo", 7 => "bar", 43 => "foobar"); What i want is a function that, in this case, returns 43. Daniel Schierbeck

[PHP] PHP and extern link

2004-09-18 Thread Martin Justra
I tried fopen() and anything like that but it didn't work. Any solution ? Thanks. Martin Justra -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP and extern link

2004-09-19 Thread Martin Justra
ps://tto.deutschepost.de/nexttonline/jsp/direct_access.do?v_benutzer=xxx&v_passwort=xxx&v_ic=xxx&v_spr=deu): failed to open stream: No such file or directory in /var/www/catalog/blubb.php on line 2 It seems that fopen is not able to open it, because it is not redirected to a file..

Re: [PHP] PHP and extern link

2004-09-19 Thread Martin Justra
Hello Robert, yes that works. But the problem is that I don't want that the one who opens the site can see the whole link in the navigation line of the browser (where you type your adress in). In your solution I get the whole link Martin -- PHP General Mailing List (http://www.php.net

[PHP] curl grabbing a website

2004-09-19 Thread Martin Justra
nutzer=aaa&passwort=bbb&ic=tracking";); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $test = curl_exec($ch); $teil = explode("", $test); echo $teil[0]; curl_close($ch); What did I do wrong ? Martin ?> -- PHP General Mailing List

Re: [PHP] splitting string into array

2004-09-29 Thread Martin Holm
blackwater dev wrote: How can I take a string and create an array? Example, A12B05C45D34 I need to split this into chunks of three A12,B05,C45..etc? Thanks! | use str_split() if you dont have php5, you can use the following code: | if (!function_exists('str_split')) { function str_split ($s

Re: [PHP] Dose this tool exist

2004-10-09 Thread Martin Rozmus
Am Sa, den 09.10.2004 schrieb Dave Carrera um 8:46: > Hi List, > > Is there a GUI tool that can help make relationships between MySQL tables ? > Look at: http://www.fabforce.net/dbdesigner4/ -- Martin Rozmus <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.ne

[PHP] Re: operators as callbacks?

2008-11-29 Thread Martin Zvarík
Joe napsal(a): Is it possible to use a PHP operator as a callback? Suppose I want to add two arrays elementwise, I want to be able to do something like this: array_map('+', $array1, $array2) but this doesn't work as "+" is an operator and not a function. I can use the BC library's math function

[PHP] IP and gethostbyaddr() --- difference?

2008-12-13 Thread Martin Zvarík
dr() = Internet host name for? When IP changes the hostname does too and vice-versa? What's the difference between these two values? And why do I need both of them? Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] get_browser() too slow

2008-12-22 Thread Martin Zvarík
pos() each one? The basic browsers for Win, Mac, and Linux - others would be unknown. And then only to check for OS. I tryed get_browser() but that thing is way too slow for my needs: 0.09 sec. Thanks in advance, Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

[PHP] Re: get_browser() too slow

2008-12-22 Thread Martin Zvarík
Martin Zvarík napsal(a): Hello, anyone has a good function for getting a user's browser, OS and crawler detection ? I have looked at google etc, but I ran only into long list of ineffective ereg()s functions or not checking if it's crawler... Is it possible to make an array lis

[PHP] Re: =.='' what wrong ? just simple code, however error.

2009-01-03 Thread Martin Zvarík
It works as expected on my PHP 5.2.4 LKSunny napsal(a): "; } //i don't know why, when run this code, on 91.3 after expect is 91.2, however..91.2001 //who can help me ? and tell me why ? //Thank You. ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] PHP webhosting - USA

2009-01-24 Thread Martin Zvarík
e! Hey, the chance of getting me hit by bus is higher than someone cracking my 15 letter password with numbers! Thank you powweb for keeping me secure. Thanks for reading my story, now, does someone know a better hosting alternative? Martin -- PHP General Mailing List (http://www.php.net

Re: [PHP] PHP webhosting - USA

2009-01-24 Thread Martin Zvarík
That's an awful looking website, but thanks for reply. I am looking for rather a US hosting company. Andrew Williams napsal(a): go to www.willandy.co.uk <http://www.willandy.co.uk> best value for money On Sat, Jan 24, 2009 at 3:03 PM, Martin Zvarík <mailto:mzva...@gmail.com>

[PHP] Re: PHP webhosting - USA - conclusion

2009-01-24 Thread Martin Zvarík
I should have said in the beginning it's a small website and I am not looking for a dedicated server. Howewer, I decided to move to Lypha.com Thanks for all your fruitful* comments :) Martin PS: PHP mailgroup rulz *) that was in dictionary -- PHP General Mailing List (http://www.ph

Re: [PHP] Make New-Age Money Online with Google

2009-01-27 Thread Martin Zvarík
Ashley Sheridan napsal(a): On Sat, 2009-01-24 at 10:14 +0200, Dora Elless wrote: That's why I am sending this email only to people I know and care about. And they send to a mailing list. Come again? Ash www.ashleysheridan.co.uk The sad thing though is that there will be always people who b

Re: [PHP] cgi vs php

2009-02-05 Thread Martin Zvarík
Thodoris napsal(a): Y In cgi i can use perl ,c etc suppose i use perl now how efficiency differs? How cgi written in perl and php is differ in working in context of web service? other difference?. but their differ. On Thu, Feb 5, 2009 at 6:45 PM, Jay Blanchard wrote: [snip] can any

Re: [PHP] Speed Opinion

2009-02-08 Thread Martin Zvarík
Nathan Rixham napsal(a): Ashley Sheridan wrote: On Thu, 2009-02-05 at 09:44 +1100, Chris wrote: PHP wrote: Hi all, I am seeking some knowledge, hopefully I explain this right. I am wondering what you think is faster. Say you have 1000 records from 2 different tables that you need to get fro

[PHP] Files redirect - using PHP and .htaccess

2009-02-16 Thread Martin Zvarík
path which it should request, am I right? If so, than it's not really secure, since the user will be able to test and try all other filenames and get somewhere I don't want him to go - I know I might be too careful, BUT I am interested how PROs do this. Your comments will be app

[PHP] Re: Files redirect - using PHP and .htaccess

2009-02-16 Thread Martin Zvarík
Martin Zvarík napsal(a): Hi, there are two choices (example): 1) file_redirect.php?src=file/root.jpg --- shows an image 2) .htaccess --- if is requested file/root.jpg than redirect to "xyzfile/root.jpg" In both cases I can restrict the access to some files only. If we talk abou

[PHP] Re: Unique User Hashes

2009-02-17 Thread Martin Zvarík
;, $ipaddr)) { return $clientIP = $ipaddr; } } } return $clientIP = $_SERVER['REMOTE_ADDR']; } I doubt you find better solution than what you use now, but let me know if so, Martin Ian napsal(a): Hi, I am busy buil

[PHP] Re: shell_exec - asynchronous would be cool!

2009-02-18 Thread Martin Zvarík
ning on the same session. If NOT than it would call (could be HTTP request also) a PHP script on the windows server. What's the deal? Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Unique User Hashes

2009-02-18 Thread Martin Zvarík
Guys, I have not seen a poll where you need to input your email address - and if I would I would not vote - because it's a waste of my time... if you want me to vote you do everything you can to make it as pleasant as possible -- certainly that isn't requirement of an email validation. Andre

Re: [PHP] Unique User Hashes

2009-02-19 Thread Martin Zvarík
tedd napsal(a): At 1:49 AM +0100 2/19/09, Martin Zvarík wrote: Guys, I have not seen a poll where you need to input your email address - and if I would I would not vote - because it's a waste of my time... if you want me to vote you do everything you can to make it as pleasant as pos

Re: [PHP] Unique User Hashes

2009-02-19 Thread Martin Zvarík
tedd napsal(a): At 5:10 PM +0100 2/19/09, Martin Zvarík wrote: tedd napsal(a): At 1:49 AM +0100 2/19/09, Martin Zvarík wrote: Guys, I have not seen a poll where you need to input your email address - and if I would I would not vote - because it's a waste of my time... if you want me to

Re: [PHP] Unique User Hashes

2009-02-19 Thread Martin Zvarík
tedd napsal(a): At 5:28 PM +0100 2/19/09, Martin Zvarík wrote: tedd napsal(a): At 5:10 PM +0100 2/19/09, Martin Zvarík wrote: tedd napsal(a): At 1:49 AM +0100 2/19/09, Martin Zvarík wrote: Guys, I have not seen a poll where you need to input your email address - and if I would I would not

Re: [PHP] Unique User Hashes

2009-02-19 Thread Martin Zvarík
Chris napsal(a): Martin Zvarík wrote: tedd napsal(a): At 5:28 PM +0100 2/19/09, Martin Zvarík wrote: tedd napsal(a): At 5:10 PM +0100 2/19/09, Martin Zvarík wrote: tedd napsal(a): At 1:49 AM +0100 2/19/09, Martin Zvarík wrote: Guys, I have not seen a poll where you need to input your email

Re: [PHP] Unique User Hashes

2009-02-19 Thread Martin Zvarík
Chris napsal(a): Martin Zvarík wrote: Chris napsal(a): Martin Zvarík wrote: tedd napsal(a): At 5:28 PM +0100 2/19/09, Martin Zvarík wrote: tedd napsal(a): At 5:10 PM +0100 2/19/09, Martin Zvarík wrote: tedd napsal(a): At 1:49 AM +0100 2/19/09, Martin Zvarík wrote: Guys, I have not seen a

Re: [PHP] Unique User Hashes

2009-02-19 Thread Martin Zvarík
Ashley Sheridan napsal(a): On Thu, 2009-02-19 at 23:34 +0100, Martin Zvarík wrote: Chris napsal(a): Martin Zvarík wrote: Chris napsal(a): Martin Zvarík wrote: tedd napsal(a): At 5:28 PM +0100 2/19/09, Martin Zvarík wrote: tedd

Re: [PHP] syntax

2009-02-24 Thread Martin Zvarík
Chris napsal(a): Terion Miller wrote: Need syntax help when it comes to using a timestamp. What I'm trying to say in my query WHERE clause is to select records if the timestamp on the record is in the past 7 days from NOW() $query .= " WHERE stamp < NOW()-7 "; I have no clue here on this ...

Re: [PHP] syntax

2009-02-24 Thread Martin Zvarík
Micah Gersten napsal(a): Martin Zvarík wrote: Chris napsal(a): Terion Miller wrote: Need syntax help when it comes to using a timestamp. What I'm trying to say in my query WHERE clause is to select records if the timestamp on the record is in the past 7 days from NOW() $

[PHP] Re: Question about template systems

2009-03-03 Thread Martin Zvarík
nly true template system. Martin Thanks for any help you can provide :) Matt. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP/Apache: script unexpectedly invoked multiple times in parallel every 30 secs.

2009-03-11 Thread Martin Zvarík
7;m trying to achieve was not clear! Why it works on your local server is probably caused by different versions/settings, but I bet there's an error somewhere in your script. Consider sending it here, I'll take a look. Cheers, Marc. Martin -- PHP General Mailing List (htt

[PHP] Re: The PHP filter class I'm working on (securiity)

2009-03-14 Thread Martin Zvarík
t to mention the XSS on MySQL or inside comments right? Isn't mysql_real_escape_string(), strip_tags() enough? Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: The PHP filter class I'm working on (securiity)

2009-03-14 Thread Martin Zvarík
Jochem Maas napsal(a): Martin Zvarík schreef: What's the point? If user puts in a search input something like alert('I am super hacker'); And the website outputs: You are searching for: then what? it shows an alert(), who cares? replace the alert() with some c

Re: [PHP] Re: The PHP filter class I'm working on (securiity)

2009-03-14 Thread Martin Zvarík
Michael A. Peters napsal(a): Martin Zvarík wrote: What's the point? The point is detailed on the (not fully complete) description page I just put up - http://www.clfsrpm.net/xss/ Yeah, I just had a quick look... "The browser will only execute script in source files from the wh

Re: [PHP] Re: The PHP filter class I'm working on (securiity)

2009-03-14 Thread Martin Zvarík
Jan G.B. napsal(a): 2009/3/15 Martin Zvarík : "The browser will only execute script in source files from the white-listed domains and will disregard everything else, including embedded and inline scripts. " wtf, can't you just take care of the INPUT and type strip_tags

[PHP] Which hashing algorithm is best to check file duplicity?

2009-03-15 Thread Martin Zvarík
I want to store the file's hash to the database, so I can check next time to see if that file was already uploaded (even if it was renamed). What would be the best (= fastest + small chance of collision) algorithm in this case? Is crc32 a good choice? Thank you in advance, Martin -

Re: [PHP] Which hashing algorithm is best to check file duplicity?

2009-03-15 Thread Martin Zvarík
"Fastest" depends mostly on the size of the file, not the algorithm used. A 2gig file will take a while using md5 as it will using sha1. Using md5 will be slightly quicker than sha1 because generates a shorter hash so the trade-off is up to you. $ ls -lh file.gz 724M 2008-07-28 10:02 file.

[PHP] Re: [PHP-DB] SQL for counting comments - is this smart?

2009-03-16 Thread Martin Zvarík
Chris napsal(a): Martin Zvarík wrote: Is it smart to use all of this on one page? Or should I rather do one SQL and let PHP count it? $q = $DB->q("SELECT COUNT(*) FROM comments"); $int_total = $DB->frow($q); $q = $DB->q("SELECT COUNT(*) FROM comments WHERE approved

[PHP] Cygwin - compilation of PHP extension

2009-03-30 Thread Martin Zvarík
c/php-5.2.9/main (downloaded directly from PHP.net, unchanged, no make or install commands) And checked: printenv PATH OK. Ran again, but it shows still the same error: php.h not found. I appreciate your help, Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Cygwin - compilation of PHP extension

2009-03-30 Thread Martin Zvarík
Martin Zvarík napsal(a): Per Jessen napsal(a): Martin Zvarík wrote: Hi, I am totally new in compiling under cygwin. I need to compile an PHP extension, and this is what I figured so far: I wouldn't expect cygwin to be that different to a real Linux environment - how about: unta

Re: [PHP] Cygwin - compilation of PHP extension

2009-03-30 Thread Martin Zvarík
Per Jessen napsal(a): Martin Zvarík wrote: Hi, I am totally new in compiling under cygwin. I need to compile an PHP extension, and this is what I figured so far: I wouldn't expect cygwin to be that different to a real Linux environment - how about: untar the extension cd dir p

[PHP] Resampling images -- need lock ?

2009-04-20 Thread Martin Zvarík
. I probably need to write a script that would lock the first file and if this file is already locked it would just die('already working...') Is this a good approach? I know I can use javascript to disable second click, but I want it server side. Thanks for your suggestions, Mart

Re: [PHP] Resampling images -- need lock ?

2009-04-20 Thread Martin Zvarík
kranthi napsal(a): yeh. if u want it to be on server side that is a good approach. but i feel it'll be very easy to do it with javascript... but what i did not understand is: what should happen if the user clicks ROTATE second time(when the script completed rotating say 5 images)? Well, few i

<    8   9   10   11   12   13   14   15   16   17   >