Re: [PHP] Self Destruct code

2002-05-07 Thread Marius Ursache

or.. you can use an airplaine full with gas :))

Tommy Claasens - Q Data KZN a écrit :

 Hi,
 Depends on what type of server they are running,
 You could add a script in there that takes a query string that will invoke a
 set of
 drop table statments,
 followed by some file delete's
 But as I have never seen the need to do this, I dont have any code that can
 help you

 But I am sure you will be able to just add a switch in the index page, that
 takes something like this

 if (isset($op)  $op == deletesite)
 {
  // Drop sql tables
  $conn = mysql_connect(host,user,pass);
  $sql = DROP TABLE tableName;
  $rs = mysql_query($sql, $conn);
  for each $file in $files
  {
// some delete code
  }
 }

 But yet again I would rather do this via legal means than destroy code.

 my $0.02 worth

 Thanks
 Tommy

 -Original Message-
 From: PHPCoder [mailto:[EMAIL PROTECTED]]
 Sent: Tue, 07 May 2002 10:20
 To: php-general
 Subject: [PHP] Self Destruct code

 Hi
 I have a funny request; I wrote a system for a client and am rather
 concerned that I am not going to receive payment for the work done. They
 want me to hand over the code before they are willing to pay, so
 basically I will be left at their mercy; if they don't pay, they will
 still have a working version of the system...
 So, is there any way I can inconspicuously code in some boo-boo's that
 are time related etc. Something that will bomb the mysql tables or break
 some code if it is not unlocked within a month etc.
 I'm not sure if people out tjere might have existing safeguard tools
 etc, so I'm open for suggestions.
 PS, I know about Zend's encrypter, but since it will live on their
 server, I don't think it will help much since they will need the
 decrypter on there anyway right?

 Thanks

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

--
  Marius Ursache (3563 || 3494)

   \|/  \|/
   @'/ ,. \`@
   /_| \__/ |_\
  \__U_/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Hashes in text files

2002-05-03 Thread Marius Ursache

use mysql, forget about files.. they are too slow.

Rodrigo a écrit :

 Can I store Hashes in text files? If yes, how?

 Can I store a  multi dimensional array in a text file? If not how should
 I do to store the data in one file and the pointer in another file?

 Thanx, Rodrigo


--
  Marius Ursache (3563 || 3494)

   \|/  \|/
   '/ ,. \`
   /_| \__/ |_\
  \__U_/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: PHP Editors

2002-05-02 Thread Marius Ursache

use vim (http://www.vim.org/)

highlight syntax
code complition
autoindent
and more...
:q

José León Serna a écrit :

 Hello:
  The big disappointment was QaDRAM Studio, which was so
  buggy and unstable, it only took me until I tried to
  create a project (the first thing I did upon loading
  the software) before it crashed my entire system and
  forced me to reboot. Trying to uninstall it is
  impossible, as well, since when I try to repair,
  remove, or modify it, it proceeds to tell me that it
  can't do any of these on software that isn't
  installed. Go figure, since I installed it about five
  minutes prior. I stayed away from this after about
  thirty seconds. I can only promise these results in
  Win98; any other system, install at your own risk.
 It is an unfinished product, I pointed out to let you know its existence,
 it's not ready for production at all. Respect the problems you had it really
 suprise me, no one of the near 15000 downloads I have had since the
 beginning of the product has told me anything similar, so I would like very
 much you reproduce the problem and send it to me via e-mail or submit it at
 http://bugs.qadram.com to be able to fix it, I would be eternally grateful.

 Best Regards.
 
 QaDRAM Studio, RAD Development for the WEB
 http://studio.qadram.com

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

--
  Marius Ursache (3563 || 3494)

   \|/  \|/
   '/ ,. \`
   /_| \__/ |_\
  \__U_/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] variables over 2 pages w/ a table.

2002-05-02 Thread Marius Ursache


try to send the same url + start=8
index.php?left=newsltitle=indexlext=phpstart=8


Jule a écrit :

 Hey,

 i've got a little problem:

 I have two php pages

 index.php and news/index.php

 now in index.php there is a table which shows news/index.php

 $left = news;
 $ltitle = index;
 $lext= php;

 include ($left/$ltitle.$lext);

 now this allows me to keep the layout the same, but change the pages within
 the table using URL commands

 index.php?left=newsltitle=indexlext=php

 now news/index.php takes a variable: $start

 if (empty($start)) $start= 0;
 $end = $start+8;

 $Query = SELECT * from $TableName ORDER BY postdate DESC LIMIT $start, $end;

 this is to show eight(8) news articles at a time.
 now also on the news/index.php page there is a link next to show the next 8
 articles.

 a href=index.php?lext=php?start=8next/a

 so this should link to the index page, which calls upon news/index.php, opens
 it in the left column of the table, and gives $start the value of 8.

 but it gives me this error:

 Warning: Failed opening 'news/index.php?start=8' for inclusion
 (include_path='') in /home/blindtheory/web/newweb/index.php on line 31

 so how can i solve this and get the articles to show in groups of 8?

 thanks in advance.

 Jule
 --
 Jule Slootbeek
 [EMAIL PROTECTED]
 http://blindtheory.cjb.net

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

--
  Marius Ursache (3563 || 3494)

   \|/  \|/
   @'/ ,. \`@
   /_| \__/ |_\
  \__U_/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] If value is divisible by 2

2002-04-30 Thread Marius Ursache

if(($i % 2)==0)
{
 $bg_color = $bg_color1;
}
else
{
 $bg_color = $bg_color2;
}
$i++;


Craig a écrit :

 I am trying to write an if statement that says if the value $foo is
 divisible by 2 then echo text

 i have tried mod but it isnt recognised

 any ideas?

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

--
  Marius Ursache (3563 || 3494)

   \|/  \|/
   '/ ,. \`
   /_| \__/ |_\
  \__U_/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] If value is divisible by 2

2002-04-30 Thread Marius Ursache

what e-mail client do you use jason?
i like that are fortunes in your signature. i supose that they are
automaticly set...

Jason Wong a écrit :

 On Tuesday 30 April 2002 16:05, Marius Ursache wrote:

  if(($i % 2)==0)

 Or simply:

   if ($i % 2)

 --
 Jason Wong - Gremlins Associates - www.gremlins.com.hk
 Open Source Software Systems Integrators
 * Web Design  Hosting * Internet  Intranet Applications Development *

 /*
 To thine own self be true.  (If not that, at least make some money.)
 */

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

--
  Marius Ursache (3563 || 3494)

   \|/  \|/
   '/ ,. \`
   /_| \__/ |_\
  \__U_/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Changing field size

2002-04-29 Thread Marius Ursache



Anthony Rodriguez a écrit :

 I've a VARCHAR(4) field that I want to change to a VARCHAR(6) field.

 What would happen to the existing data in MySQL db?


nothing :)
read mysql manual


 Thanks!

 Tony
 ([EMAIL PROTECTED])

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

--
  Marius Ursache (3563 || 3494)

   \|/  \|/
   @'/ ,. \`@
   /_| \__/ |_\
  \__U_/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Redirecting

2002-04-28 Thread Marius Ursache

put before your html code

?
ob_start();
?
HTML...

this should work.

Liam MacKenzie a écrit :

 Hey all,

 Just curious as to what the best way is to move someone off your site, apart
 from bringing up a picture of male pornography...

 Seriously, I've tried using
 header(Location: http://www.php.net/;);
 but it returns an error saying that the headers are already set.

 The situation I'm in is as follows:

 Need to send a user to http://www.examplesite.com/ from a PHP script in
 http://forums.examplesite.com/

 Thanks for the help

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

--
  Marius Ursache (3563 || 3494)

   \|/  \|/
   '/ ,. \`
   /_| \__/ |_\
  \__U_/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] RegEx and ?

2002-04-24 Thread Marius Ursache



Boaz Yahav a écrit :

 When i try to use preg_match on strings that have ? inside them it
 seems to not work.
 Any ideas how to bypass this?

 thanks

 berber

--
  Marius Ursache (3563 || 3494)

   \|/  \|/
   '/ ,. \`
   /_| \__/ |_\
  \__U_/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] RegEx and ?

2002-04-24 Thread Marius Ursache


use \? instead of ?

Boaz Yahav a écrit :

 When i try to use preg_match on strings that have ? inside them it
 seems to not work.
 Any ideas how to bypass this?

 thanks

 berber

--
  Marius Ursache (3563 || 3494)

   \|/  \|/
   '/ ,. \`
   /_| \__/ |_\
  \__U_/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php