Re: [PHP] Create .php file with php

2007-06-26 Thread Marius Toma

I can not believe how stupid I can be sometime.

I was trying to create a file, but a file with the same name already 
existed on the server - and I did not have the write permission to it, 
so from here I got the error message saying that I can not create the 
file :(


Thank for your time,
Marius

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



[PHP] Create .php file with php

2007-06-25 Thread Marius Toma
I can not create .php files from PHP. I can save them as *.php5, *.php3, 
asp, *.txt , etc... but not as .php. I tried both touch and fopen but

none of them worked.

I'm running PHP 5.1.6 on Apache 2, safe_mode is off

Is this a security measure somewhere? How can I bypass it?

Thank you,
Marius

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



Re: [PHP] function for string to array (map)?

2004-06-18 Thread Dascalu Marius
- Original Message - 
From: "Pete Forman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 17, 2004 7:22 PM
Subject: [PHP] function for string to array (map)?


> Is there a standard function that converts a string to an array with
> proper keys, not auto generated integers?  I've found myself calling
> explode() twice.  split(), etc. do not seem to offer any improvement.
> 
> $str = "a:x,b:y,c:z";
> $arr = explode(",", $str);
> foreach ($arr as $item) {
>   list($key, $value) = explode(":", $item);
>   $map[$key] = $value;
> }
> 
> Is there a foo() that would do something like this?
> 
> $map = foo(",", ":", $str);
> 
> -- 
> Pete Forman-./\.-  Disclaimer: This post is originated
> WesternGeco  -./\.-   by myself and does not represent
> [EMAIL PROTECTED]-./\.-   opinion of Schlumberger, Baker
> http://petef.port5.com   -./\.-   Hughes or their divisions.
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

You just defined your foo function ;-)

Regards, 
Marius

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



[PHP] re: return string size in bytes

2004-06-12 Thread Dascalu Marius
php4web wrote:
 
>I now there are function to calc file size but I want function to get
string size in bytes
 
Maybe what you want is strlen()?
http://www.php.net/strlen <http://www.php.net/strlen> 
 
HTH
 
Marius


Re: [PHP] strip comments from HTML?

2004-05-06 Thread Marius Dascalu

--- David T-G <[EMAIL PROTECTED]> wrote:
> Marius, et al --
> 
> ...and then Marius Dascalu said...
> % 
> % --- Justin French <[EMAIL PROTECTED]> wrote:
> % > 
> % > This isn't working:
> % > $text = preg_replace('//','',$text);
> ...
> % 
> % Hi, 
> 
> Hello!
> 
> 
> % 
> % You must escape "-" (minus sign) because is a
> % meta-character for regular expressions. See 
> 
> What?  No.
> 
> 
> %
>
http://www.php.net/manual/en/pcre.pattern.syntax.php.
> 
> From that same link:
> 
>   Part of a pattern that is in square brackets is
> called a "character  
>   class". In a character class the only
> meta-characters are:   
> 
>   
>   \ 
>   
>  general escape character   
>   
> 
>   
>   ^ 
>   
>  negate the class, but only if the first
> character 
> 
>   
>   - 
>   
>  indicates character range  
>   
> 
>   
>   ] 
>   
>  terminates the character class
> 
> So you only have to worry about a minus if you're in
> a [a-z] range, and
> even then you can put a minus in without having to
> resort to backslashes.
> 
> 
> % Your line of code might be:
> % 
> % 
> % $text =
> preg_replace('//','',$text);
> % 
> 
> Then, again, it might not ;-)
> 
> 
> % 
> % This line of code, if you are parsing HTML file
> row by
> % row, strips only "one line" comments. Comments
> spanned
> % on multiple lines are unaffected.
> 
> Agreed.  Let's leave that to the student to work
> out, shall we? :-)
> 
> 
> %  
> % HTH
> % 
> % Marius
> 
> 
> HTH & HAND
> 
> :-D
> -- 
> David T-G
> [EMAIL PROTECTED]
> http://justpickone.org/davidtg/  Shpx gur
> Pbzzhavpngvbaf Qrprapl Npg!
> 
> 

> ATTACHMENT part 2 application/pgp-signature 

K, my fault (but the script is functional in both
variants - tested in SciTE).
That is 2nd faulty response sended by me to list. At
the 3rd I will unsubscribe :-)

HAND




__
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 

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



Re: [PHP] strip comments from HTML?

2004-05-06 Thread Marius Dascalu

--- Justin French <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> This isn't working:
> $text = preg_replace('//','',$text);
> 
> Can someone advise what characters I need to escape,
> or whatever to get 
> it going?
> 
> TIA
> 
> ---
> Justin French
> http://indent.com.au
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

Hi, 

You must escape "-" (minus sign) because is a
meta-character for regular expressions. See 
http://www.php.net/manual/en/pcre.pattern.syntax.php.
Your line of code might be:


$text = preg_replace('//','',$text);


This line of code, if you are parsing HTML file row by
row, strips only "one line" comments. Comments spanned
on multiple lines are unaffected.
 
HTH

Marius




__
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 

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



Re: [PHP] Re: Single quotes inside double quoted string (Was: Re: [PHP] Re: Problem with a class... any help will be appreciated.)

2004-04-30 Thread Marius Dascalu
Mr. Holmes is right, sorry for the error. 

--- "Elliot J. Balanza" <[EMAIL PROTECTED]>
wrote:
> Actually you are right the problem is not in the
> proccess of writing to the
> database, the problem is that after writing to the
> database it wont "jump"
> to the next function it wont go to login() or any
> other function for this
> matter.
> 
> vamp
> 
> "John W. Holmes" <[EMAIL PROTECTED]> escribió
> en el mensaje
>
news:[EMAIL PROTECTED]
> > From: "Marius Dascalu"
> <[EMAIL PROTECTED]>
> >
> > > I think the error is in line:
> > >
> > > $query_revisa = $this->dbQuery("SELECT User,
> Password,
> > > Nivel FROM Admon WHERE User = '$user'");
> > >
> > > PHP doesn't expand variables in single quoted
> > > expressions. Try this line instead:
> > >
> > > $query_revisa = $this->dbQuery("SELECT User,
> Password,
> > > Nivel FROM Admon WHERE User = $user");
> >
> > Take a look at that first line again. The string
> is delimited by DOUBLE
> > QUOTES. The single quotes are inside of the
> string. PHP will resolve the
> > variable because the string has double quotes, so
> this isn't the problem.
> > Sorry I can't help the OP as to what the actual
> problem is, but I wanted
> to
> > point out this misconception.
> >
> > ---John Holmes...
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 





__
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 

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



[PHP] File permissions on Windows, IIS

2003-11-14 Thread Marius Røstad
I have a Windows XP pro with IIS 5.1 and Php 4.3.3 which I use for local
development, and I'm trying to use a bunch of the file commands for making a
very simple file manager application.

However, I can't seem to get most of them to work, i.e. mkdir(). I get a
permission denied message. I have researched the problem and it seems I
don't have the correct permissions in the directory to do this, and one way
to fix this is to use chmod to set it to 777. But that seems to be a Unix
only command, so it doesn't work for me.

Does anyone have any idea on how I will get these commands to work on my
local machine? How do I change file permissions to make it "identical" to
the chmod 777 on Unix systems.

Thanks a lot for any help...
Marius

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



[PHP] generate random

2003-05-30 Thread Marius

  how to generate random number ?

-- 
 Marius
 [EMAIL PROTECTED]



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



[PHP] random

2003-05-30 Thread Marius

  I tried
  
  

  but it echoes realy big numbers like 36324613454671
  

-- 
 Marius
 [EMAIL PROTECTED]



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



[PHP] request

2003-05-30 Thread Marius

how to do that it echoes a random number and not a
Resource id #1,
  

-- 
 Marius
 [EMAIL PROTECTED]



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



[PHP] question

2003-03-30 Thread Marius
 

 how to do that 2 of key echoes in first table colum and other 2 in
 second colum?

-- 
 Marius
 [EMAIL PROTECTED]



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



[PHP] Question

2003-03-30 Thread Marius
 ";
 echo $list['0'];
 echo "";
 ?>
 how i can get "Ba-na-na" in url and "Banana" or "Ba na na" in echo ?

-- 
 Marius
 [EMAIL PROTECTED]



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



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




[PHP] Pointer Size

2002-05-02 Thread marius petravičius

hello, php-general,

 I'm trying to get the size of pointer.

 First I use
   $res = fsockopen( $server, $port );
 then
echo fgets( $handle, 1024 );
 But  it  only  gets only one line. So I need to know the size of then
 pointer. I tried to do it with fstat(), but it didn't work..
 So can anybody help me to solve this problem?


-- 
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-01 Thread Marius Ursache


try to send the same url + start=8
index.php?left=news<itle=index&lext=php&start=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=news<itle=index&lext=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.
>
> next
>
> 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] Re: PHP Editors

2002-05-01 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] 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] 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] 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


...

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


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




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




[PHP] Strange include

2001-11-01 Thread Marius Pertravčius

Sveiki, php-general,

  I have a file index.php . I include file menu.php in index.php ( I
write include('menu.php'); in index.php ) . I want to do like this:

  index.php/menu.php . That means, that index.php has to include menu.php

  index.php/second.php . That means, that index.php has to include
  second.php .

  I think that you already know what I'm talkking about. So how could
I do it?

Thank you



 
 2001.11.02, penktadienis
 Marius Pertravèius
 iCQ: #125733984
 [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 administrators, e-mail: [EMAIL PROTECTED]




[PHP] All domains

2001-09-23 Thread Marius Pertravčius

Sveiki, php-general,

  I want to get all doamins, that end with ru, lv, ch or lt. Is there
  any possibility to do that?


 
 2001.09.23, sekmadienis
 Marius Pertravèius
 iCQ: #125733984
 [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 administrators, e-mail: [EMAIL PROTECTED]




[PHP] Some problem...

2001-09-10 Thread Marius Pertravčius

Sveiki, php-general,

  I got this message:
  Warning: SAFE MODE Restriction in effect. The script whose uid is 505 is not allowed 
to access /tmp/phpwGxNPJ owned by uid 0 in /home/sveikinimai.lt/send/owncard.php on 
line 46
   
  Where could be that I'm making a mistake...

 
 2001.09.10, pirmadienis
 Marius Pertravèius
 iCQ: #125733984
 [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 administrators, e-mail: [EMAIL PROTECTED]




[PHP] Problems with cookies....

2001-08-17 Thread Marius Pertravčius

Sveiki, php-general,

  I want to put cookies to know how I have to open window (new window
or same window), but I'm making some mistake. Please help me.

   Here is the code
  




--- Pasirinkite ---
Same Window
New Window



--- Choose ---
Same Window
New Window







 
 2001.08.18, ðeðtadienis
 Marius Pertravèius
 iCQ: #125733984
 [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 administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: xsl:include doesn't work from php, it works withsabcmd

2001-08-07 Thread Marius Andreiana

On 07 Aug 2001 15:30:44 +0100, Peter Clarke wrote:
> Have you tried Sablotron 0.60?
yes, the same. 

How could I see at least what the problem is? (meaningful error message)

-- 
Marius Andreiana
--
You don't have to go to jail for helping your neighbour
http://www.gnu.org/philosophy/


-- 
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] xsl:include doesn't work from php, it works with sabcmd

2001-08-06 Thread Marius Andreiana

forgot to mention I use xslt_process() to transform xml files.
Can't see the error (with xslt_error()) , as it halts on xslt_process().

-- 
Marius Andreiana
--
You don't have to go to jail for helping your neighbour
http://www.gnu.org/philosophy/


-- 
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] xsl:include doesn't work from php, it works with sabcmd

2001-08-06 Thread Marius Andreiana

Hi

I try to keep some common xsl templates in separate files and
use 

It works fine if I process them from cmd line with sabcmd,
but the same files don't work in php, I get
Fatal error: msgtype: error in ...
when I add the line xsl:include (if I remove it it's ok)

What's the problem? (I'm using sablotron 0.52)

Thanks!
Marius Andreiana
--
You don't have to go to jail for helping your neighbour
http://www.gnu.org/philosophy/


-- 
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] Problems...

2001-08-05 Thread Marius Pertravčius

Sveiki, php-general,

  I have win32, apache, PHP 4.0.6.
  I want to work with graphic files (GD).
  There is lines in my php.ini:

extension_dir = c:\php\extensions

extension=php_gd.dll

  I have this script:
  

 But nothing hapens
 Where am I making a mistake? Help me, please

 
 2001.08.06, pirmadienis
 Marius Pertravèius
 iCQ: #125733984
 [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 administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Free PHP/MySQL Web Hosting ?

2001-08-04 Thread Marius Pertravčius

Sveiki, Arcadius,

2001 m. rugpjûèio 5 d.(sekmadienis), 14:26:56, jûs raðëte:
AA> Hello !
AA> Is there any free PHP/MySQL  Web Hosting without add ? ... or ... at least ,
AA> I could have the choice to choose  where to place their banner on my pages
AA> ?
AA> Thanks...
AA> Arcad.

www.f2s.com








 
 2001.08.05, sekmadienis
 Marius Pertravèius
 [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 administrators, e-mail: [EMAIL PROTECTED]




[PHP] php_gd.dll for windows, please help me....

2001-08-04 Thread Marius Pertravčius

Sveiki, PHP,

  Does anyone here has good php_gd.dll file that supports GD in
windows.I can't download it from http://php.weblogs.com/php_gd ,
because it is damaged or smth.
  If you have, please email to me with this file. I need it very very
much...
  Thank you

 
 2001.08.05, sekmadienis
 Marius Pertravèius
 iCQ: #125733984
 [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 administrators, e-mail: [EMAIL PROTECTED]




[PHP] FAQ

2001-08-01 Thread Marius Andreiana

Can someone make a FAQ for this list?

Every month there are questions about php editors, books...
They don't even bother to search the arhives before asking.

--
Marius Andreiana
--
You don't have to go to jail for helping your neighbour
http://www.gnu.org/philosophy/


-- 
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] libmcrypt 2.2.x vs 2.4.x

2001-07-26 Thread Marius Andreiana

Hi

I'd like to switch to 2.4.x from 2.2.x but I get warnings with old
code using mcrypt_ecb:
Warning: size of key is too large for this algorithm 
Warning: attempt to use an empty IV, which is NOT recommend 

There's too much legacy code to change and key can't be changed now,
any way to use 2.4.x ? 

Thanks
Marius Andreiana
--
You don't have to go to jail for helping your neighbour
http://www.gnu.org/philosophy/


-- 
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] unistall a newer veraion....cjk

2001-07-18 Thread Marius Andreiana

În 18 Jul 2001 14:59:21 +0300 Constantine Koulis a scris:
> i have in a server PHP 4.0.2 version and a function (mail) is working 
> perfectly.In the version PHP 4.0.5 i have problems.How can i unintall the 
> 4.0.5 to install 4.0.2?
Unfortunatelly php doesn't have the classic make uninstall
You can delete it by hand (the apache module and /usr/local/php)
and then install what version you want.
(If it's a development server, don't even bother to remove 4.0.5,
just install another php 4.0.x)

Marius Andreiana
--
You don't have to go to jail for helping your neighbour
http://www.gnu.org/philosophy/


-- 
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] "report" generation with PHP

2001-07-17 Thread Marius Andreiana

În 17 Jul 2001 20:41:59 +1200 Philip Murray a scris:
> On a side note, is there some Adobe license which prevents people writing
> Free for use PDF libraries? 
don't think so; fop is free

Marius Andreiana
--
You don't have to go to jail for helping your neighbour
http://www.gnu.org/philosophy/


-- 
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] "report" generation with PHP

2001-07-17 Thread Marius Andreiana

În 17 Jul 2001 09:56:23 +0200 Jörg Krause a scris:
> PHP has Java-Support build in, has anybody checked out this with a tool
> like FOP (calling Java program from PHP)? Is it stable, good for
> production environment?
Yes, I'd like an answer to this too. Right now I can only call it
with system calls from PHP, but with a native function would be
much nicer (could show the progress too)

Marius Andreiana
--
You don't have to go to jail for helping your neighbour
http://www.gnu.org/philosophy/


-- 
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] "report" generation with PHP

2001-07-17 Thread Marius Andreiana

În 17 Jul 2001 19:47:23 +1200 Philip Murray a scris:
> What about using a Windows COM object? There should be one for Access and if
> not you can use the Word one and generate word documents
Don't use Words for that... We've had to generate invoices to be snail-mailed,
imagine if the address in the invoiced didn't matched the envelope's transparent
area... (don't think a word document can handle 6000 invoices anyway)

Marius Andreiana
--
You don't have to go to jail for helping your neighbour
http://www.gnu.org/philosophy/


-- 
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] "report" generation with PHP

2001-07-16 Thread Marius Andreiana

În 16 Jul 2001 17:17:57 -0500 Matthew Garman a scris:

> Does all that work under Windows? 
don't know, but you can setup a linux box only for fop, leave
the php site on windows as it is now (ouch!)

> Fop looked like it was part of the
> Apache project, and we're running IIS 5.0 on Windows 2000 Pro (not my
> decision!).
not my problem :)


Marius Andreiana
--
You don't have to go to jail for helping your neighbour
http://www.gnu.org/philosophy/


-- 
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] "report" generation with PHP

2001-07-16 Thread Marius Andreiana

În 16 Jul 2001 09:07:17 -0500 garman a scris:
> I forgot to mention that I already looked into the PDF extensions.  Although 
> it looks like it would do exactly what I want, the PDFLib isn't free for 
You can generate xml in php, write xsl to convert xml in xml-fo
and then use fop to generate pdf, it really works :)
http://xml.apache.org/fop/index.html

Marius Andreiana
--
You don't have to go to jail for helping your neighbour
http://www.gnu.org/philosophy/


-- 
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] Re: Export to Excel

2001-07-13 Thread Marius Andreiana

How do you deal with numeric fields which start with 0 ?
Excel takes the 0s out.

Thanks,
Marius Andreiana
--
You don't have to go to jail for helping your neighbour
http://www.gnu.org/philosophy/


 



-- 
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] Problems with PHP_GD.DLL

2001-07-10 Thread Marius Pertravčius

Sveiki, php-general,

  Could someone remind me, how to enable graphic in PHP. I have Apache
server on Win32.
  Does someone know any www page where i could read about it.


 
 2001.07.10, antradienis
 Marius Pertravèius
 [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 administrators, e-mail: [EMAIL PROTECTED]




[PHP] Polls

2001-07-08 Thread Marius Pertravčius

Sveiki, php-general,

  I'm making some kinf of poll system. I want to use mysql table like
this:
 date
 question
 answer1
 answer2
 answer3
 .
 answern

  but how to do this table. To write new fields isn't very good. So,
  is there any better way?
  


 
 2001.07.08, sekmadienis
 Marius Pertravèius
 [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 administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Protecting from session hijacking

2001-07-04 Thread Marius Andreiana

On 04 Jul 2001 19:34:03 +1000, Jason Murray wrote:
> > Now tell me what's wrong with my opinion, b/c it's too simple 
> > to work :)
> 
> Four words: "Load Balancing Proxy Servers".
I knew it! :)

So if someone on the net sees the URL and it has session id in it, 
that session can be stolen?

-- 
Marius Andreiana



-- 
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] Protecting from session hijacking

2001-07-04 Thread Marius Andreiana

> hijacking?  I thought of checking IP address on subsequent requests,
> but apparently this cannot be relied on because of HTTP proxies etc.
but isn't better than nothing ?
I think a session should be from the same IP all it's life, and this
should be build into php. Internal networks will be seen as the same
ip, so session can be stolen by somebody else in the same internal net,
but not from outside of it.

Now tell me what's wrong with my opinion, b/c it's too simple to work :)

-- 
Marius Andreiana



-- 
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] PHP, Templates, XSLT

2001-07-03 Thread Marius Andreiana

> Anyways, has anyone experienced it with Sablotron? How did you like it?
nice

You can also try to check browser : if mozilla 0.9.1 or later
(you choose) it can be parsed on the client; ie 6.0 isn't used yet...

-- 
Marius Andreiana



-- 
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] any reasons to compile apache instead of using distributionbinaries ?

2001-07-03 Thread Marius Andreiana

Hi

I'm curios how others are handling packages on production servers.
Curently our sysadmins compile openssl,apache,php and other libraries
from sources.

Do you think it would be better (easier to maintain) to install
apache and other libraries from rpm, and from sources only
php?

Remember in some companies even the kernel is upgraded from rpm
b/c of easier maintenance and less chances to screw something up.

Thanks,
-- 
Marius Andreiana



-- 
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] pdf_open_image_file says it can't find file, altough it's there

2001-07-02 Thread Marius Andreiana

Hi

After upgrading to pdflib-4.0.1 from 3.x (and php 4.0.4pl1),
both pdf_open_gif (deprecated) and pdf_open_image_file
say Could not open file, although images are there
and they were working before.

Someone else had this problem too
http://www.php.net/manual/en/function.pdf-open-image-file.php

Any help please ? I couldn't find the solution in arhives and google.

Thanks!
-- 
Marius Andreiana



-- 
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] Again about PHP + IRC

2001-04-06 Thread Marius Petravičius

Hello php,

  Soeey but I can't find anyexample abot PHP + IRC..
  Please help me.

_
 2001 m. balandþio 6 d.
 Marius  
 [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 administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] sendmail

2001-03-16 Thread Marius Kirschner

Damn, the "-t -i" did the trick  I can't believe the fix was so easy and
I spent DAYS (really) trying to figure out what's wrong!  Thanks so much,
Robert. :)

---Marius

> -Original Message-
> From: Robert Covell [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 16, 2001 11:41 AM
> To: Marius Kirschner; [EMAIL PROTECTED]
> Subject: RE: [PHP] sendmail
>
>
> Do you have the switches for sendmail in your path?
>
> Our installs have: /usr/sbin/sendmail -t -i for the path information...
>
> Sincerely,
>
> Robert T. Covell
> President / Owner
> Rolet Internet Services, LLC
> Web: www.rolet.com
> Email: [EMAIL PROTECTED]
> Phone: 816.210.7145
> Fax: 816.753.1952
>
> -Original Message-
> From: Marius Kirschner [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 16, 2001 10:43 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] sendmail
>
>
> I'm at a lossI've searched throught the knowledgebase, archives, docs,
> etc but I can't figure out what's going on.  The problem is when using the
> mail() function nothing gets send and I don't get any error
> messages either.
> It's like the message gets eaten by a black hole.
>
> I'm running PHP4 on a BSDI 3.1 box with Apache 3.9 and sendmail 8.9.3, my
> php.ini file has the "sendmail_path   =   /usr/sbin/sendmail"
> in there,
> but still when I click on submit nothing gets send.  I know the script is
> working (works on another system) plus I've tried other "form
> mailers" with
> the same problem.  Does anybody have some clue as to where I should start
> looking to fix this?  Thanks,
>
> ---Marius
>
>
> --
> 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 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] sendmail

2001-03-16 Thread Marius Kirschner

I'm at a lossI've searched throught the knowledgebase, archives, docs,
etc but I can't figure out what's going on.  The problem is when using the
mail() function nothing gets send and I don't get any error messages either.
It's like the message gets eaten by a black hole.

I'm running PHP4 on a BSDI 3.1 box with Apache 3.9 and sendmail 8.9.3, my
php.ini file has the "sendmail_path   =   /usr/sbin/sendmail" in there,
but still when I click on submit nothing gets send.  I know the script is
working (works on another system) plus I've tried other "form mailers" with
the same problem.  Does anybody have some clue as to where I should start
looking to fix this?  Thanks,

---Marius


-- 
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] php and apache protected directories

2001-02-23 Thread Marius David

I want to open a html file from a php script. The problem is that the html
file is located in a password protected directory on an apache web server. I
know the user/password for that directory and I want the php script to
handle the authentification automaticly. Is there a way to acomplish this ?

Thank you,
Marius




-- 
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]