[PHP] offline application

2002-12-19 Thread Alexander Kuznetsov
Hi All!

I have a database. And now I need to create something like offline
site with that database: ii means php pages, html and images. After
this I will burn all it to CD. And that CD should be working om every
machine (I suppose win32 as OS and php will be installed if needed).

Question:
can I somehow to make such a project? How can I redirect request from
browser to php.exe?


-- 
Best regards,
Alexander Kuznetsov



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




[PHP] php.exe without console window

2002-12-23 Thread Alexander Kuznetsov
Hello All,

I know that in PHP-GTK development there is gtk-launcher php_gtk wich
runs php-gtk scripts without terminal window. Is something like it for
usually php.exe?

I mean I was to execute php.exe from other application and don't want
to see that ugly terminal window...

-- 
Best regards,
Alexander Kuznetsov



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




Re: [PHP] uploading pictures

2002-07-25 Thread Alexander Kuznetsov

Hello Oliver,

Thursday, July 25, 2002, 1:23:24 PM, you wrote:

OW> Hi!
OW> I got a problem with uploading pictures. Using a script following this
OW> schema:

OW> if (is_uploaded_file($HTTP_POST_FILES['userfile']['tmp_name'])) {
OW> copy($HTTP_POST_FILES['userfile']['tmp_name'],
OW> "/place/to/put/uploaded/file");
OW> } else {
OW> echo "Possible file upload attack. Filename: " .
OW> $HTTP_POST_FILES['userfile']['name'];

OW>  the script always returns:
OW> Warning: Unable to create '/*.jpg': Permission denied in fotos2.php on
OW> line 62

OW> I do not understand why that happens. Do I need to include a password
OW> somewhere or somehitng like that? Thank you for your help!
OW> Oliver

i think u should set write permissions to directory
where u r trying to copy file

-- 
Best regards,
Alexander Kuznetsov
Leading Web-programmer
[EMAIL PROTECTED]
Centre of engineering technologies CS Trade
http://www.cstrade.ru



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




Re[2]: [PHP] uploading pictures

2002-07-25 Thread Alexander Kuznetsov

Hello Oliver,

Thursday, July 25, 2002, 1:42:05 PM, you wrote:

OW> Alexander Kuznetsov schrieb:

>> i think u should set write permissions to directory
>> where u r trying to copy file

OW> Thank you for answering.
OW> But how do I set write permisisons? With a .htaccess file?
OW> Oliver

i think the reason is write permission on file system of the server
and u have to type chmod command:

shell> chmod a+r /place/to/put/uploaded/file

P.S. When reply message use Reply-To All option for you answer will be
accessible in PHP-general mailing list ;)

-- 
Best regards,
Alexander Kuznetsov



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




Re: [PHP] preg_match() occurence position

2002-07-25 Thread Alexander Kuznetsov

Hello lallous,

Thursday, July 25, 2002, 3:40:32 PM, you wrote:

l> Hello,

l> Can I get the starting position of my string occurence when using any
l> regexps searching functions in PHP ?

l> for example:
l> $mem='this is a test';
l> preg_match('/test/', ...) should return me somehow: 10


l> Thanks


why regexps?
what about simple string fuctions in PHP?

for your example they will be more usefull:

strrpos - http://www.php.net/manual/en/function.strrpos.php

sample:

$text = "string";
echo strrpos($text, "r"); // must show 2 as result



-- 
Best regards,
Alexander Kuznetsov



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




Re[2]: [PHP] Help with msql_fetch_array() FIXED ! Now cookie problems :(

2002-07-25 Thread Alexander Kuznetsov

Hello Matthew,

Thursday, July 25, 2002, 5:06:09 PM, you wrote:

MB> Hello again,

MB> I got the fetch_array problems fixed.  I was using the actual server name, 
MB> when I switched back to localhost everything worked!!

MB> Now I have a question about how to make cookies work on a Windows machine. 
MB>  This is what I have these parameters set to but it's not working.  Do I 
MB> have slashes/backslashes wrong, or is there something else I have to do in 
MB> Apache??:

MB> session.save_path = "C:/Program Files/Apache 
MB> Group/Apache/web/php/dir/files/temp"

MB> ; Whether to use cookies.
MB> session.use_cookies = 1


MB> ; Name of the session (used as cookie name).
MB> session.name = PHPSESSID

MB> ; Initialize session on request startup.
MB> session.auto_start = 0

MB> ; Lifetime in seconds of cookie or, if 0, until browser is restarted.
MB> session.cookie_lifetime = 0

MB> ; The path for which the cookie is valid.
MB> session.cookie_path = "c:/Program Files/Apache 
MB> Group/Apache/web/php/dir/files/temp"

MB> ; The domain for which the cookie is valid.
MB> session.cookie_domain = www.mydomain.com

try something like this

session.save_path = c:/Program Files/Apache Group/Apache/web/php/dir/files/temp

i mean without "..."
i had that problem - deleted "" and all is working now


-- 
Best regards,
Alexander Kuznetsov



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




Re: [PHP] htaccess

2002-08-02 Thread Alexander Kuznetsov

Hello Theo,

Friday, August 02, 2002, 1:11:32 PM, you wrote:
TR> I am told that I should edit my .htaccess file because I want to include
TR> a file during the execution of a script, but apparently I do something
TR> wrong because I keep getting error messages like these:

TR> Warning: Failed opening 'header.html' for inclusion
TR> (include_path='.:/var/www/html/brokenlink/login') in
TR> /home/virtual/site161/fst/var/www/html/brokenlink/login/index.php3 on
TR> line 32

TR> There was no improvement when I added this line to the .htaccess file:
TR> php_value include_path ".:/var/www/html/brokenlink/login"

TR> Can anyone tell me what I should put in?

try to set include_path from / directory, like this

php_value include_path ".:/home/virtual/site161/fst/var/www/html/brokenlink/login"


-- 
Best regards,
Alexander Kuznetsov



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




Re: [PHP] Php "Ready-to-go"

2002-11-04 Thread Alexander Kuznetsov
Hello Martin,

Monday, November 04, 2002, 2:53:48 PM, you wrote:

MT> Hello!

MT> Is there a way to run a php-script on a pc/windows-computer which hasn't
MT> php-installed? I thought of somekind of compiler which creates an .exe,
MT> which embeds the script and the php-environment.

MT> Martin

On win32 I use PHP-GTK and I've solved this problem:

php-gtk need php executable and some dlls
all what I've done - I've created with Install Shield an
instalation package which contains php executable and its own dlls
and php-gtk files

InstallShield during install my package copy some dlls and php.ini
into %windir% and creates shortcut to my main programm file:
"php_gtk main.php"

if you don't need gtk - I think you should dig around a shortcut some
like this "php.exe your_script.php"

-- 
Best regards,
Alexander Kuznetsov



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




Re[2]: [PHP] Php "Ready-to-go"

2002-11-05 Thread Alexander Kuznetsov
Hello Paul,

Monday, November 04, 2002, 10:00:15 PM, you wrote:

PN> http://pear.php.net/bcompiler ?
PN> ~Paul

super!
thnx a lot
I will try it

-- 
Best regards,
Alexander Kuznetsov



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