Re: [PHP] Compile .php file is possible ?

2001-03-30 Thread Pavel Kalian

Zend Compiler got renamed to Zend Encoder.

Pavel

- Original Message -
From: "Marian Vasile" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 30, 2001 11:19 AM
Subject: Re: [PHP] Compile .php file is possible ?


> I've seen many people talking about Zend compiler...
> Where is that Zend compiler ?
>
> "Marian Vasile" <[EMAIL PROTECTED]> wrote in message
> 9a1cr4$5fr$[EMAIL PROTECTED]">news:9a1cr4$5fr$[EMAIL PROTECTED]...
> > I need a method to compile my php files to give them to a customer.
> >
> > The main problem is that this customer have an account on a shared
hosting
> > service and (I think) he can't install a compiler or something new on
that
> > server.
> >
> > Is it possible to encrypt my files ?
> >
> > Plz HELP ASAP
> >
> > Yours,
> > Marian
> >
> >
> >
> > --
> > 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 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] How may :)

2001-03-29 Thread Pavel Jartsev

Nilesh Parmar wrote:
> 
> Hi
>Does anyone know how many keywords does PHP have.And  where can I find
> them ?
> 

You can find them here:
http://www.php.net/manual/en/reserved.php

-- 
Pavel a.k.a. Papi

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

2001-03-28 Thread Pavel Kalian

You can only reference such elements using it's indexes in javascript.

try formName.elements[3].value //(replace 3 with the index of your )

Pavel

>
> "vishak tomy" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello,
> I have a doubt about multi select from drop down, if i set it as
>  then how could I check it for javascript
> validation. for this select, If any alternative for this please inform
> me.
>
> Vishak
>
> 
> Get free email and a permanent address at http://www.netaddress.com/?N=1
>
> --
> 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 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] session handling

2001-03-28 Thread Pavel Kalian

Sorry, hit the submit button too soon :-)

The session.save_path must exist on your system.
Try session.save_path = C:\winnt\temp (if you're on NT/2000) or
C:\windows\temp instead of /tmp

Pavel

- Original Message -
From: "Pavel Kalian" <[EMAIL PROTECTED]>
To: "[Inf] F!RE-WALL" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, March 28, 2001 12:17 PM
Subject: Re: [PHP] session handling


>
> - Original Message -
> From: "[Inf] F!RE-WALL" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, March 28, 2001 12:10 PM
> Subject: [PHP] session handling
>
>
> > Every time I want to initiate a session i get this:
> >
> > Warning: open(/tmp\sess_b18426d4011c38e033bd0ed54bd2d2f1, O_RDWR)
failed:
> m
> > (2) in e:\webserver\phptest\page1.php on line 2
> >
> > Warning: open(/tmp\sess_b18426d4011c38e033bd0ed54bd2d2f1, O_RDWR)
failed:
> m
> > (2) in Unknown on line 0
> >
> > Warning: Failed to write session data (files). Please verify that the
> > current setting of session.save_path is correct (/tmp) in Unknown on
line
> 0
> >
> > I run an Apache webserver under Windows and I have the latest version of
> > PHP. I looked up the "session.save_path" in the php.ini file and it
sais:
> >
> > [Session]
> > session.save_handler  = files   ; handler used to store/retrieve
data
> > session.save_path = /tmp; argument passed to save_handler
> > ; in the case of files, this is the
> > ; path where data files are stored
> > session.use_cookies   = 1   ; whether to use cookies
> > session.name  = PHPSESSID
> > ; name of the session
> > ; is used as cookie name
> > session.auto_start= 0   ; initialize session on request
> startup
> > session.cookie_lifetime   = 1814400   ; lifetime in seconds of
cookie
> > ; or if 0, until browser is
restarted
> > session.cookie_path   = /   ; the path the cookie is valid for
> > session.cookie_domain = ; the domain the cookie is valid for
> > session.serialize_handler = php ; handler used to serialize data
> > ; php is the standard serializer of
> PHP
> > session.gc_probability= 1   ; percentual probability that the
> > ; 'garbage collection' process is
> > started
> > ; on every session initialization
> > session.gc_maxlifetime= 1440; after this number of seconds,
stored
> > ; data will be seen as 'garbage' and
> > ; cleaned up by the gc process
> > session.referer_check = ; check HTTP Referer to invalidate
> > ; externally stored URLs containing
> ids
> > session.entropy_length= 0   ; how many bytes to read from the
file
> > session.entropy_file  = ; specified here to create the
session
> > id
> > ; session.entropy_length= 16
> > ; session.entropy_file  = /dev/urandom
> > session.cache_limiter = nocache ; set to {nocache,private,public} to
> > ; determine HTTP caching aspects
> > session.cache_expire  = 180 ; document expires after n minutes
> > session.use_trans_sid = 1   ; use transient sid support if
enabled
> > ; by compiling
with --enable-trans-sid
> > url_rewriter.tags =
> > "a=href,area=href,frame=src,input=src,form=fakeentry"
> >
> > What's wrong with /tmp ? Where's that map located? Do I need to change
the
> > entry? Should I create the dir? If so, where?
> >
> >
> >
> > --
> > 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]




Re: [PHP] session handling

2001-03-28 Thread Pavel Kalian


- Original Message -
From: "[Inf] F!RE-WALL" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 28, 2001 12:10 PM
Subject: [PHP] session handling


> Every time I want to initiate a session i get this:
>
> Warning: open(/tmp\sess_b18426d4011c38e033bd0ed54bd2d2f1, O_RDWR) failed:
m
> (2) in e:\webserver\phptest\page1.php on line 2
>
> Warning: open(/tmp\sess_b18426d4011c38e033bd0ed54bd2d2f1, O_RDWR) failed:
m
> (2) in Unknown on line 0
>
> Warning: Failed to write session data (files). Please verify that the
> current setting of session.save_path is correct (/tmp) in Unknown on line
0
>
> I run an Apache webserver under Windows and I have the latest version of
> PHP. I looked up the "session.save_path" in the php.ini file and it sais:
>
> [Session]
> session.save_handler  = files   ; handler used to store/retrieve data
> session.save_path = /tmp; argument passed to save_handler
> ; in the case of files, this is the
> ; path where data files are stored
> session.use_cookies   = 1   ; whether to use cookies
> session.name  = PHPSESSID
> ; name of the session
> ; is used as cookie name
> session.auto_start= 0   ; initialize session on request
startup
> session.cookie_lifetime   = 1814400   ; lifetime in seconds of cookie
> ; or if 0, until browser is restarted
> session.cookie_path   = /   ; the path the cookie is valid for
> session.cookie_domain = ; the domain the cookie is valid for
> session.serialize_handler = php ; handler used to serialize data
> ; php is the standard serializer of
PHP
> session.gc_probability= 1   ; percentual probability that the
> ; 'garbage collection' process is
> started
> ; on every session initialization
> session.gc_maxlifetime= 1440; after this number of seconds, stored
> ; data will be seen as 'garbage' and
> ; cleaned up by the gc process
> session.referer_check = ; check HTTP Referer to invalidate
> ; externally stored URLs containing
ids
> session.entropy_length= 0   ; how many bytes to read from the file
> session.entropy_file  = ; specified here to create the session
> id
> ; session.entropy_length= 16
> ; session.entropy_file  = /dev/urandom
> session.cache_limiter = nocache ; set to {nocache,private,public} to
> ; determine HTTP caching aspects
> session.cache_expire  = 180 ; document expires after n minutes
> session.use_trans_sid = 1   ; use transient sid support if enabled
> ; by compiling with --enable-trans-sid
> url_rewriter.tags =
> "a=href,area=href,frame=src,input=src,form=fakeentry"
>
> What's wrong with /tmp ? Where's that map located? Do I need to change the
> entry? Should I create the dir? If so, where?
>
>
>
> --
> 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]




Re: [PHP] bug or feature?

2001-03-14 Thread Pavel Jartsev

indrek siitan wrote:
> 
> Hi,
> 
>$value=0;
>   if ($value=="NULL")
> echo "Value is NULL!";
>   else
> echo "Value is not null.";
> ?>
> 
> output: Value is NULL!
> 
> is it a bug or expected behaviour? tested it on 4.0.4pl1.
> i got around it by using strcasecmp(), but just wondering. :)
> 

It's expected behaviour, i think.
'cause $value is integer, "NULL" is string and compare will convert
"NULL" into integer.
If condition is ($value==="NULL"), then output will be "Value is not
null.".

RTFM ;-)

-- 
Pavel a.k.a. Papi

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

2001-03-14 Thread Pavel Jartsev

Jon A wrote:
> 
> ...
>
>   print "";
>   break;
> 
> ...
>   print "";
>   break;
> 
> - this will let it parse, but it won't do anything with the html.
> 
> can somebody help me??
> 

Try this:
print '';


-- 
Pavel a.k.a. Papi

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

2001-03-14 Thread Pavel Kalian

set the session.save_path to a directory that exists on your system (for
example: session.save_path = c:\temp)

Pavel


- Original Message -
From: "Brandon Orther" <[EMAIL PROTECTED]>
To: "PHP User Group" <[EMAIL PROTECTED]>
Sent: Tuesday, March 13, 2001 10:56 PM
Subject: [PHP] Session problem


> Hello,
>
> Does anyone know how to fix this error?
>
> Warning: open(/tmp\sess_4fb4c5778fe97ab351baca1d8db90abf, O_RDWR) failed:
m
> (2) in c:/htdocs/br/br.php on line 2
>
> Thank you,
>
> 
> Brandon Orther
> WebIntellects Design/Development Manager
> [EMAIL PROTECTED]
> 800-994-6364
> www.webintellects.com
> 
>
>
> --
> 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]




Re: [PHP] Newbie: Can't find function error.

2001-03-05 Thread Pavel Jartsev

Darren Ward wrote:
> 
> ...
> 
> The file looks like:
> 
> 
> 
> Any ideas on what i should be looking at or for?
> 

Try phpinfo().
:)

-- 
Pavel a.k.a. Papi

-- 
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] help change filename.

2001-02-22 Thread Pavel Jartsev

Jan Grafström wrote:
> 
> Hi!
> I am trying to change a filename this is my php:
>  change $filename = "yourfile.php3.xml";
> to $filename = "yourfile2.php3.xml";
> ?>
> It doesn´t work do I need some more code to get it working, something
> like fopen?
> 
> Thanks for any help.
> 
> Regards
> 
> Jan

http://www.php.net/manual/en/function.rename.php


-- 
Pavel a.k.a. Papi

-- 
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] Making .phtml an extension

2001-02-21 Thread Pavel Jartsev

Brandon Orther wrote:
> 
> Hello,
> 
> I am trying to get .phtml to work for php files.  How would I do this?


If you have Apache, then following line in httpd.conf should help:

AddType application/x-httpd-php .php .php3 .phtml


-- 
Pavel a.k.a. Papi

-- 
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] Accessing variables from a form

2001-02-21 Thread Pavel Jartsev

Don wrote:
> 
> Hi,
> 
> I'm in a quandary here.  I have a form which contains sever tables each
> containing similar fields.  The number of tables are dynamic based on
> vales I retrieve from a database.  Each table has the following fields:
> 
> ...
>

Maybe this approach is simpler. 

If you create your fields like this:
';
echo '';
echo '';
...
?>
then after submitting you will have arrays: $name, $phone, $fax.

Now, for values from first table use: $name[0], $phone[0], $fax[0].
For second: $name[1], $phone[1], $fax[1].
etc...

And there's no need for huge amount of variables.



Hope this helps. :)

-- 
Pavel a.k.a. Papi

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

2001-02-21 Thread Pavel Kalian

a) $menu[] = array("name" => $db->f("name"), "url" => $db->f("topic_id"));

b) echo $menu[0]["name"]; //for example - depends on what you want to do

BTW have a look into the manual, the array stuff is described pretty well

Pavel

- Original Message -
From: "Matt Williams" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "PHP_UK@egroups. com" <[EMAIL PROTECTED]>
Sent: Wednesday, February 21, 2001 3:56 PM
Subject: [PHP] array headaches


> Hi
>
> could anybody please help me get my head around the following.
>
> I get some url information from the database (title, url)
> I am trying to then put this into an array so I can pass it to the page to
> display a menu.
> so
> a) how do I get the data into the array. would this be the way to do it??
>
> $menu = array();
> while($db->next_record())
> {
> $menu[]["name"] = $db->f("name");
> $menu[]["url"] = $db->f("topic_id");
> }
> which leads me onto
> b) how do I get the data back out. I can't test to see if the above works
as
> I can't get at the data
>
> TIA
>
> M@
>
>
> --
> 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]




Re: [PHP] PHP vs JSP

2001-02-13 Thread Pavel Jartsev

[EMAIL PROTECTED] wrote:
> 
> Hi,
> 
> Just wondering if anyone knows of any links to information relating to PHP vs
> JSP where PHP is my language of choice and another developer is recommending
> JSP but I know nothing about JSP to help me convince the buyer that PHP is a
> better choice.
> ...

Here's something:
http://php.weblogs.com/jsp


Maybe it helps a little. :)

-- 
Pavel a.k.a. Papi

-- 
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] Netscape not resolving $PHPSELF ??

2001-02-13 Thread Pavel Jartsev

John Vanderbeck wrote:
> 
> I'm having a problemin Netscape, any of my echo statements that use
> $PHPSELF, netscape isn't resolving $PHPSELF, but properly resolving all the
> other vars.  There are several different types of echo statements, but here
> is a sample:
> 
> echo '',
> $subcategories[$index], '';
> 
> and:
> 
>echo " HREF=$PHPSELF?mode=index&category=root>Main -> $category";
> 
> Any ideas? This works FINE in Internet Explorer. And all the other vars in
> those echo statements are properly resoved into value.
> 

Try $PHP_SELF.

-- 
Pavel a.k.a. Papi

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

2001-02-07 Thread Pavel Kalian

The COM construct was introduced in PHP4 as a replacement for com_*
functions to provide something looking similar to MS's syntax AFAIK and it
exists and works at least for me and many others. And it behaves more or
less like a normal class.

Cheers

Pavel

- Original Message -
From: "Christian Reiniger" <[EMAIL PROTECTED]>
To: "php" <[EMAIL PROTECTED]>
Sent: Wednesday, February 07, 2001 12:20 PM
Subject: Re: [PHP] Com


On Wednesday 07 February 2001 11:52, Pavel Kalian wrote:
> COM of course comes with PHP (but is available on Win only), RTFM on
> calling COM support...

Yes, but there ain't no class "COM". Read the manual section about COM
support.

--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)

"Software is like sex: the best is for free" -- Linus Torvalds

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




Re: [PHP] Com

2001-02-07 Thread Pavel Kalian

COM of course comes with PHP (but is available on Win only), RTFM on calling
COM support...

Pavel

- Original Message -
From: "Christian Reiniger" <[EMAIL PROTECTED]>
To: "php" <[EMAIL PROTECTED]>
Sent: Wednesday, February 07, 2001 11:49 AM
Subject: Re: [PHP] Com


On Tuesday 06 February 2001 19:07, Vora Vor wrote:

> > "Fatal error: Cannot instantiate non-existent class: com in
> /var/www/html/version2/file.php on line 8" is the result of running the
> following code:
>
>  $word=new COM("word.application") or die("Cannot start word");
> print "Loaded word version ($word->Version)\n";
> $word-visible =1 ;
> ?>
>
> Why?

You didn't define a class "COM".
(1) You did write such a class, right? It does not come with PHP
(2) function names are case sensitive

--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)

"Software is like sex: the best is for free" -- Linus Torvalds

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




Re: [PHP] Outputting a 2 digit number < 10

2001-01-25 Thread Pavel Jartsev

Jamie wrote:
> 
>  ...
> 
> ";
>   $day = (date ("d"));
>   $daysinmonth = (date("t"));
> for ($i=00;$i<$daysinmonth;$i++){
>   if ($i == $day) {
>echo("$i\n");
>   } else {
> echo("$i\n");
>}
>  }
>  echo""
>   ?>
> 
> ...

Maybe this for-cycle is doing what u want 
(if i didn't misunderstood your question).

$i2\n";
}
?>


Hope this helps.

-- 
Pavel a.k.a. Papi

-- 
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] How do I see the data in list()?

2001-01-25 Thread Pavel Jartsev

Scott Fletcher wrote:
> 
> ...
> 
> What are the better way to see the data in the array?
> 

Maybe var_dump().

http://www.php.net/manual/en/function.var-dump.php


-- 
Pavel a.k.a. Papi

-- 
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] SQL Server DB to mySQL DB

2001-01-25 Thread Pavel Kalian

1. Generate SQL script for your database in the MS SQL Server Enterprise
Manager
2. Modify generated SQL to be compatible with MySQL
3. Run the script on your MySQL server

Pretty easy if you aren't using any feature of MS SQL that MySQL doesn't
support (for example stored procedures)

Another way is to connect both the servers to Access using ODBC and just
copy the tables - it's the easiest way to do that but resulting MySQL tables
are quite screwed up.

Pavel

- Original Message -
From: "Jason Bouwmeester" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 25, 2001 4:44 PM
Subject: [PHP] SQL Server DB to mySQL DB


> Is there an easy way to do this? I know that SQL Server can export a comma
> delimited file, can mySQL import this? I imagine the PHP will be easy to
> modify as long as the field names are the same.
>
> Thanks,
> jb
>
> Jason Bouwmeester
> New Media Consultant
> InterVisual
>
> Suite 200, 709 - 11th Ave SW
> Calgary, AB T2R 0E3
> Ph: 403.264.9199
> Fax: 403.264.9225
> www.intervisual.com
> "Internet Solutions Developer"
>
> --
> 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]




Re: [PHP] mysql auto increment question

2001-01-24 Thread Pavel Jartsev

David Banning wrote:
> 
> I am working with php-mysql
> and am inserting into mysql using a NULL value,
> which allows mysql to auto-insert (increment)
> a number - how could I find out what the value was
> mysql inserted, say on the next line of code after the insert?

http://www.php.net/manual/en/function.mysql-insert-id.php


-- 
Pavel a.k.a. Papi

-- 
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] Error connecting to MySQL server

2001-01-19 Thread Pavel Kalian

Isn't it possible that you're just not allowed to connect to the MySQL host
remotely?

Pavel

- Original Message -
From: "Rosen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 19, 2001 10:55 AM
Subject: Re: [PHP] Error connecting to MySQL server


> When I connect via WEB based admin, there is no problems !
> The MySQL Server is remote.
> But when I install on my computer software ( Artronoc Admin,  DbTools )
> I receive error "Can't connect to MySQL server on host . (10060).
>
> Please Help !
> Thanks,
> Rosen Marinov
>
>
>
> "Brian Clark" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> >
> > Hello Rosen,
> >
> > (R == "Rosen") [EMAIL PROTECTED] writes:
> >
> > R> When I try to connect to MySQL server I get message "Can't connect
> > R> to MySQL server (10060 )!
> >
> > Where's your code?
> >
> > Are you using someone else's application?
> >
> > Is mysqld even running? Is it /still/ running after you get that error?
> >
> > Are you trying to connect locally (localhost), or are you trying to
> > connect to another server running mysqld?
> >
> > This can be cause by any number of things.
> >
> > R> Please Help!
> > R> Thanks
> > R> Rosen Marinov
> >
> >
> > -Brian
> > --
> > An adequate bootstrap is a contradiction in terms.
> >
> >
> >
> > --
> > 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 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] Sorting an array

2001-01-18 Thread Pavel Jartsev

Nicklas af Ekenstam wrote:
> 
> Hi!
> 
> I have an array that looks kinda like this:
> 
> NAMEADDRESS
> John DoeSome Street 1
> Jane DoeAnother Street 2
> Bill Gates  Helsinki 666
> 
> How do I sort this array based on NAME? ADDRESS?

http://www.php.net/manual/en/function.usort.php


-- 
Pavel a.k.a. Papi

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

2001-01-18 Thread Pavel Jartsev

David Tandberg-Johansen wrote:
> 
> Hello!
> 
> Could anyone give me an direction where I can find information something
> like "session for dummies"!
> It's not funny anymore. I don't have anymore hair left :-]

http://www.zend.com/zend/tut/session.php


-- 
Pavel a.k.a. Papi

-- 
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] How to handle multiple lines in PHP?

2001-01-16 Thread Pavel Kalian

nl2br() will do the translation for you, just store the text in database in
the form user writes it (allows later editing of the messages in the db
without having to deal with 's) and then echo(nl2br($message)) it.

Pavel


- Original Message -
From: "Ignacio Vazquez-Abrams" <[EMAIL PROTECTED]>
To: "david klein" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, January 16, 2001 5:25 PM
Subject: Re: [PHP] How to handle multiple lines in PHP?


> On Tue, 16 Jan 2001, david klein wrote:
>
> > I have a textarea in one php page to allow user to leave message. How
ever,
> > if the user input(three lines):
> >
> > 123
> > 456
> > 567
> >
> > after I get it through some php scripts, and put it into database, later
on,
> > I try to display it, but it becomes(only one line):
> >
> > 123 456 789
> >
> > Does anyone know how to handle this? One idea is to convert the  > CHAR> to "" before putting it into the database, but how can we
detect
> > the  in PHP?   Or is there any other ways?
> >
> > Thank you very much in advance.
> >
>
> The newline char in PHP is '\n'.
>
> --
> Ignacio Vazquez-Abrams  <[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 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] WML/WAP and PHP

2001-01-16 Thread Pavel Kalian

are you sure that there's nothing in the file in before you call the
header() function? The situation you describe could happen if there was an
empty line at the begining of the file and the warnings were turned off.
When I tried your code it worked as expected:

C:\>c:\php4\php test.php
X-Powered-By: PHP/4.0.4
Content-type: text/vnd.wap.wml



Hello world!


C:\>

Pavel

- Original Message -
From: "Rick Hodger" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 16, 2001 5:02 PM
Subject: Re: [PHP] WML/WAP and PHP


>
> "Pavel Kalian" <[EMAIL PROTECTED]> wrote in message
> 028e01c07fc1$dffdecf0$8361d4c2@pavelk">news:028e01c07fc1$dffdecf0$8361d4c2@pavelk...
> > Hi Rick,
> > you are not doing anything wrong. You just have to send the proper
> > content-type depending on what you're outputing. For example if you want
> to
> > produce a gif image you have to use header("Content-type: image/gif");
> > There's nothing wrong with it as PHP can't predict what you want to do.
> > text/html is set as default simply because it's the type most users in
> most
> > cases need.
>
> Yes, I know that. But what I'm saying is that eg.
>
>  header("Content-type: text/vnd.wap.wml");
> ?>
> 
> 
> Hello world!
> 
> 
>
> ...gets put out with a text/html content type as opposed to the specified
> text/vnd.wap.wml. Having said that, I just tried it on the linux machine
and
> it worked fine. A Windows thing?
>
> --
> Rick Hodger
>
>
>
> --
> 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]




Re: [PHP] Reading specific data from a .txt file into PHP

2001-01-16 Thread Pavel Kalian

check the manual for fgets() function. then you can maybe explode() the
string using " " (space) as separator.

Pavel

- Original Message -
From: "James Holloway" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 16, 2001 4:13 PM
Subject: Re: [PHP] Reading specific data from a .txt file into PHP


>
> Glen Scott <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > James,
> >
> > The trouble is, that there are about 3000 cities in the text file.  I'm
> > >assuming that I fill use fopen(); and fread(); to open and read the
> files,
> > >but does anyone know of a way of singling out one line (say:
> > >
> > >CYGL 161346Z 34004KT 15SM -SN BKN011 BKN030 RMK SF6SC1
> > >
> > >) from the whole text file?  Like if a variable, $city = CYGL, is it
> > >possible to then go to that one line in the text file and read all the
> > >information from just one line?  I'm pretty confident I could then
split
> the
> > >information up into readable variable using the split(); function :)
> >
> > Assuming the first field (i.e. CYGL) is unique, just read each line and
> > check using a regular expression whether it matches the city you
> > require.  If it matches, you can stop reading the file and do whatever
you
> > need to do with the line.
>
> That's just it, I don't know how to 'read' each line and stop  And the
> first field is unique  Sorry to be such a dummy, I'm still very new to
> PHP, and have never really used Perl either ;)
>
> By 'using a regular expression', do you mean that something as simple as
an
> "if" statement might do the job?
>
> Can you help any further?
>
> Thanks for getting me this far.
>
> James.
>
>
>
> --
> 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]




Re: [PHP] WML/WAP and PHP

2001-01-16 Thread Pavel Kalian

Hi Rick,
you are not doing anything wrong. You just have to send the proper
content-type depending on what you're outputing. For example if you want to
produce a gif image you have to use header("Content-type: image/gif");
There's nothing wrong with it as PHP can't predict what you want to do.
text/html is set as default simply because it's the type most users in most
cases need.

Pavel

- Original Message -
From: "Rick Hodger" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 16, 2001 2:10 PM
Subject: [PHP] WML/WAP and PHP


> Here's a fun little thing I discovered, possibly a bug in PHP itself?
>
> To output a WAP page you must output a content-type header else the
phone's
> browser won't recognise the page. Dead simple. Use:
>
> header("Content-type: text/vnd.wap.wml");
>
> And all is well and good as long as you use echo/printf etc to output your
> page. The second you deviate out of PHP and back to HTML the content-type
> gets overwritten with a text/html, and so the page doesn't work.  ASP used
> to be able to cope with this, is it a bug or something I'm doing wrong?
>
> --
> Rick Hodger
>
>
>
> --
> 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]




Re: [PHP] is 1 a Variable...Discoverd it just now...

2001-01-16 Thread Pavel Jartsev

Dhaval Desai wrote:
> 
> ...
>
> for($i=1; $i<=$recepients; $i++)
> {
> echo ""  ."";

Maybe this line should be:

echo "";



-- 
Pavel a.k.a. Papi

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

2001-01-12 Thread Pavel Jartsev

"Leon Mergen, BlazeNetwork" wrote:
> 
> ...
>
>  $string = eregi_replace(">:(","width=\"15\" height=\"15\"",$string);
> 
> What is wrong with this? What can I do to fix it?
> 

Use this pattern: ">:\("
Point is, you must escape "(" here, 'cause it's metacharacter in regexp.


Hope this helps.

-- 
Pavel a.k.a. Papi

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

2001-01-11 Thread Pavel Kalian

http://www.php.net/manual/features.http-auth.php

Pavel

P.S. Manual je nekdy docela prima cteni. ;-)

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 11, 2001 12:42 PM
Subject: [PHP] HTTP autentification


> Please, can you send me where could I find more information about
> HTTP autentification and PHP support.
>
> Thanks.
>
> Regards, PETER.
>
> -
> Tento e-mail byl odeslán ze serveru www.worldmail.cz
>
> --
> 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]




Re: [PHP] Calling a Windows Com object or an Extended Fetch?

2001-01-11 Thread Pavel Kalian

The DCOM (COM on a remote server) works fine but you still have to run PHP
on a windows machine. AFAIK there's no decent way to use COM from a unix
box.

Pavel

- Original Message -
From: "Niel Zeeman" <[EMAIL PROTECTED]>
To: "Paulson, Joseph V. "Jay"" <[EMAIL PROTECTED]>; "php gen list"
<[EMAIL PROTECTED]>
Sent: Wednesday, January 10, 2001 5:16 PM
Subject: Re: [PHP] Calling a Windows Com object or an Extended Fetch?


> Try this article
> http://www.phpbuilder.com/columns/alain20001003.php3
>
> it helped me allot, If you go deeper into the Com object you will find
that
> you can actually call an object from a
> remote server -- have not tried it myself yet : )
> Niel Zeeman
>
> - Original Message -
> From: Paulson, Joseph V. "Jay" <[EMAIL PROTECTED]>
> To: 'bard' <[EMAIL PROTECTED]>; Miles Thompson
> <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Wednesday, January 10, 2001 5:42 PM
> Subject: RE: [PHP] Calling a Windows Com object or an Extended Fetch?
>
>
> > Well the next problem I have found is that php has to be running on a
> > windows machine for the com objects to actually work and well we are
> running
> > it on a Unix box.  So we can't use the com objects.  Thanks for all the
> help
> > thought!
> > Jay
> >
> > -Original Message-
> > From: bard [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, January 09, 2001 5:37 PM
> > To: Miles Thompson
> > Cc: Paulson, Joseph V. "Jay"; [EMAIL PROTECTED]
> > Subject: Re: [PHP] Calling a Windows Com object or an Extended Fetch?
> >
> >
> > Or you could just look at the phpbuilder.com column on using COM objects
> in
> > php, or you could RTFM at the php.net site. just type in php.net/com and
> see
> > what happens.
> >
> > We use php and com here a lot, and while the implementation lacks a few
> > features of the asp/vb implementation it's handy when migrating from
> NT/ASP
> > to NT/PHP.
> >
> >
> > On Tue, 9 Jan 2001, Miles Thompson wrote:
> >
> > > I don't know, but I was glancing through an article on PHP in the
> current
> > > issue of Dr. Dobb's Journal last week. At the very end I *think* there
> was
> >
> > > an example of calling a COM object. It was a VbScript <-> PHP
> comparision.
> >
> > > Have a look, might help.
> > >
> > > Miles
> > >
> > > (Yes, I've been known to make notes while in the newsstand.)
> > >
> > > At 10:01 AM 01/09/2001 -0600, Paulson, Joseph V. \"Jay\" wrote:
> > > >Hello everyone--
> > > >I was wondering if PHP can call Windows COM objects in memory?  If
PHP
> > can
> > > >do this does anyone know how to do it or can you point me in the
> > direction
> > > >were I can pissibly figure it out.  Also, does anyone know if PHP can
> > call
> > > >an Extended Fetch?
> > > >Thanks,
> > > >Jay Paulson
> > > >
> > > >--
> > > >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 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]




Re: [PHP] looking for a PHP editor

2001-01-10 Thread Pavel Jartsev

"Markus H. Maussner" wrote:
> 
> hi..
> 
> ..i am curious if theres anny linux (x, KDE, Gnome) php editor with syntax
> highliting and this things...
> 

bluefish is quite nice.
http://bluefish.openoffice.nl/

-- 
Pavel a.k.a. Papi

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




<    1   2