RE: [PHP] register session

2002-04-03 Thread Vlad Kulchitski

Kris,

Idi na phpbeginner.com tam est 'tutorials' dlya tebya.

Vlad

-Original Message-
From: Kris Vose 
Sent: 3 êâ³òíÿ 2002 ð. 12:42
To: [EMAIL PROTECTED]
Subject: [PHP] register session

I am trying to register a session after verification of username and password.
 
It looks like this:
 
session_start();
If ($name = $aa) && ($username = $ab)
{
session_register("valid_user");
echo "window.location=\'admin_.php'\";
}
else
{
echo "Your username/password is incorrect";
}
 
On each page that I want secure I include a script that checks for the 
session_register().  It looks like this:
 
session_start();
global $valid_user;
 
if (session_is_registered("valid_user"))
{
echo "you are registered";
}
else
{
echo "you are not registered";
}
 
This code is not working and it sends a warning message like this: Warning: Cannot 
send session cache limiter - headers already sent (output started at 
/var/www/focus-capital/BetterBus/1/admin_.php:7) in 
/var/www/focus-capital/BetterBus/1/admin_.php on line 126
you are registered 1 - Send Mail
 
I have not used sessions before and I am wondering if I am doing some wrong with the 
syntax?
 

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




RE: [PHP] Hi to you anti-spammers HAHA

2002-04-01 Thread Vlad Kulchitski

Phpinfo(); works all the time, unless you went ahead and reprogrammed php yourself :)

Hello to AFRIKA from SOVIETS!   CCCP rules!


-Original Message-
From: vins [mailto:[EMAIL PROTECTED]] 
Sent: 1 êâ³òíÿ 2002 ð. 15:43
To: [EMAIL PROTECTED]
Subject: [PHP] Hi to you anti-spammers HAHA

Happy Happy Easter.
and to all you peeps out there who don't celebrate this day.
Hope you enjoyed your day.

And just too keep the cool
How do i run that script that give all the information about php ?
Someone told me the you type PHPINFO();
but it sometimes doesn't work

Cheerz
Spammer Vins



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




[PHP] password protected pages with cookies

2002-03-28 Thread Vlad Kulchitski

Hi,

I have a very general question about my php project. Basically, it's about secure 
pages for administering site. The way I do it is authorizing users against their 
credentials in the mysql database. Then if authentication passed successfully, I 
register a session with a specific name and do header() to move him to another page 
where he can edit content. Every move he/she makes in admin site it checks if specific 
session is registered, if yes it lets you do it and if not, sure it doesn't.

Is this the simplest and relatively secure way? Or are there any other techniques for 
this?

Thanks,
Vlad

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




RE: [PHP]

2002-03-26 Thread Vlad Kulchitski

OK, hope you don't mind I follow up a question, and it will be up to you to answer or 
not, this is very general and important to me.

My whole project main template is FILE.PHP, the content is changed based on the values 
sent via QUERY_STRING. SO:

Below is the approximate outline: (basically the content is loaded from smaller 
scripts, but main does language switching, loading menu in appropriate language and so 
on.

FILE.PHP
 _about.php
 _one.php
 _two.php

So my question is, is it better to use separate .PHP file for every part of the page 
and load template design requirements (like 'header' and 'footer') via REQUIRE() so 
there's no conflict with sessions for instance? Because the code is already BIG:

http://www.kulchitski.com/btl/source.php

So anyway, for who are experienced the question goes, is it better to use separate 
file for every script? Or do like I do use one main and then include('content'php') 
based on the value passed in the string.

With my current session problem I don't thnk I can overcome the problem with current 
design structure, I need to use different file for ADMIN because the template is 
already formed before it included the file with the script that tries to create a 
session.

Anyway, this certainly makes it clearer - thank you guys.
Vlad


-Original Message-
From: Miguel Cruz [mailto:[EMAIL PROTECTED]] 
Sent: 26 ÂÅÒÅÚÎÑ 2002 Ò. 20:41
To: Vlad Kulchitski
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] 

On Tue, 26 Mar 2002, Vlad Kulchitski wrote:
> Hi can anyone help me, I am getting this error when I try
> to start session:
> 
> Warning: Cannot send session cookie - headers already sent by (output
> started at /var/www/kulchitski/btl/btl.php:2) in
> /var/www/kulchitski/btl/_talkroom_edit.php on line 39
> 
> I didn't start session before, in fact I never use session here
> except this step. Can anyone suggest anything?

1) Read the list and the archive. This comes up at least once per day, 
including on days when I know I saw you post to the list.

2) It means that you generated output prior to a session_register or 
session_start call. Make sure you don't print anything and don't have any 
space outside of http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP]

2002-03-26 Thread Vlad Kulchitski

Hi can anyone help me, I am getting this error when I try
to start session:

Warning: Cannot send session cookie - headers already sent by (output
started at /var/www/kulchitski/btl/btl.php:2) in
/var/www/kulchitski/btl/_talkroom_edit.php on line 39

I didn't start session before, in fact I never use session here
except this step. Can anyone suggest anything?

Thanks,
Vlad

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




RE: [PHP] forms and inputs

2002-03-24 Thread Vlad Kulchitski

Hi continuing with the same issue I just found another bug in my code. Basically I 
have a script myfile.php, based on codition it goes through submit process STEP 1 
through 4. It takes along the values it has collected via:







And so on, on the final stage it submits everything is has collected to the database. 
What I noticed now is that if I type name with space, like "Mister Simpson" or again 
like I mentioned before if I type a sentence in step 2 on the final stage it gets 
lost. You can check how it works here:

http://kulchitski.com/btl/btl.php?lang=eng&page=talkroom_submit

If anyone knows how to overcome the problem, please help.

Thanks,
Vlad

-Original Message-
From: S [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, March 24, 2002 2:34 PM
To: Vlad Kulchitski; [EMAIL PROTECTED]
Subject: RE: [PHP] forms and inputs

Your input tag should look like this:



-Original Message-----
From: Vlad Kulchitski [mailto:[EMAIL PROTECTED]]
Sent: March 24, 2002 1:39 PM
To: [EMAIL PROTECTED]
Subject: [PHP] forms and inputs


Hi,

Can anyone suggest anything regarding the following problem.

Basically, I ask the user to type a few sentences, in 
 and on the next page I show everything
s/he typed asking "Are you sure you want to submit this...

Once clicked "YES" all data is being taken to the next page for
FINAL submission to mysql. (all is done in one php script though)

But anyway, the problem is that when I see the final data in the
database, there's only 1 word from the sentence the used has typed
in, i.e if I submit "Hello my name is Vlad", the only word that will
end up in the database would be "Hello". What is the best solution to
overcome this?

Thanks,
Vlad

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




[PHP] forms and inputs

2002-03-24 Thread Vlad Kulchitski

Hi,

Can anyone suggest anything regarding the following problem.

Basically, I ask the user to type a few sentences, in 
 and on the next page I show everything
s/he typed asking "Are you sure you want to submit this...

Once clicked "YES" all data is being taken to the next page for
FINAL submission to mysql. (all is done in one php script though)

But anyway, the problem is that when I see the final data in the
database, there's only 1 word from the sentence the used has typed
in, i.e if I submit "Hello my name is Vlad", the only word that will
end up in the database would be "Hello". What is the best solution to
overcome this?

Thanks,
Vlad

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




[PHP] Displaying data from db

2002-03-22 Thread Vlad Kulchitski


Hi,

I have several questions.

First what would be the best solution to take the records from the
database and display like 10 results per page? 

Another question, the same records from the database, but say I want to
sort them by name. Like I have a menu: a,b,c,d,e,f,g,h.. etc.
And if I click 'a' I only get records with name starting with A. Is this
possible?

I am not necessarily asking for a complete code to reuse, just the
logic, how it would work.

Thanks in advance,
Vlad


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




[PHP] I won NETSCAPE BATTLE!!!

2002-03-20 Thread Vlad Kulchitski


Hi everyone!

I am so happy tonight because it worked!

All I had to do is to convert the image to JPEG and it worked!

I think it would be useful to know it in the future.

Have a good one,
Vlad
Kulchitski.com


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




[PHP] something weird is going on...

2002-03-20 Thread Vlad Kulchitski


Sorry bringing Netscape issue up again but I seem to have found
something...

Here's the issue, I am talking about image-background in table cell
... the problem is that one of the cells shows background, one
of them does... the index.html file attached...

This cells shows background:

 

This doesn't:

 

NOTE: the weird thing is that when I change the image name the the one
on the first cell where it works, it shows the image, but when I change
it back to  bottomcell_bg.gif it doesn't... I went to change GIF files
and they have the same property, both GIF(indexed colour)...

And to illustrate the problem, here's the file: 
http://kulchitski.com/problem/

Vlad



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


RE: [PHP] HTMLnetscape issue

2002-03-20 Thread Vlad Kulchitski


I agree, but there are sites like heavy GRAPHICS sites that look fine
everywhere you know what I am saying... the only solution I see is to
add more cells, like even 1 pix cells and 100 pix wide if I want a line
of graphic etc... that is the only solution I see

-Original Message-


> Sorry for repeating myself, but am lost and still can't find a
solution
> to the following problem, I need to specify a background image for

> like the code below:
>
> 
>   
> 
>
> This code works EVERYWHERE (in all browsers) but Netscape Navigator
4.xx
> versions.

You're fighting an unwinnable battle.  Give up on Crapscape 4.x, it is 
full of bugs.

Erik






Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]


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




RE: [PHP] HTMLnetscape issue

2002-03-20 Thread Vlad Kulchitski

The problem is it doesn't show the picture background, even if I type text in that 
cell...

-Original Message-
From: Nathan Cassano [mailto:[EMAIL PROTECTED]] 
Sent: 20 ÂÅÒÅÚÎÑ 2002 Ò. 14:43
To: [EMAIL PROTECTED]; Vlad Kulchitski
Subject: RE: [PHP] HTMLnetscape issue


Yes here is a solution to this problem and I am surprised no one on this
list pointed it out.

Simply put a transparent dot within a cell table that you wish to have
the background image display.
Netscape 4 in retarded in the fact that it will not display a cell
background image unless it has cell content.






-Original Message-
From: Vlad Kulchitski [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, March 20, 2002 10:12 AM
To: [EMAIL PROTECTED]
Subject: [PHP] HTMLnetscape issue


Hi,

Sorry for repeating myself, but am lost and still can't find a solution
to the following problem, I need to specify a background image for 
like the code below:


  


This code works EVERYWHERE (in all browsers) but Netscape Navigator 4.xx
versions.




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




RE: [PHP] HTMLnetscape issue

2002-03-20 Thread Vlad Kulchitski

STILL DOESN'T WORK :(

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: 20 ÂÅÒÅÚÎÑ 2002 Ò. 13:29
To: [EMAIL PROTECTED]
Subject: Re: [PHP] HTMLnetscape issue

At 20.03.2002  13:11, you wrote:
>
>Hi,
>
>Sorry for repeating myself, but am lost and still can't find a solution
>to the following problem, I need to specify a background image for 
>like the code below:
>
>
>   
>
>
>This code works EVERYWHERE (in all browsers) but Netscape Navigator 4.xx
>versions.
UNTESTED
Try an $nbsp; inside as:
 
HTH Oliver


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




[PHP] HTMLnetscape issue

2002-03-20 Thread Vlad Kulchitski

Hi,

Sorry for repeating myself, but am lost and still can't find a solution
to the following problem, I need to specify a background image for 
like the code below:


  


This code works EVERYWHERE (in all browsers) but Netscape Navigator 4.xx
versions.

Please help,
Thanks,
Vlad
http://kulchitski.com

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




[PHP] eregi()

2002-03-19 Thread Vlad Kulchitski

Hi,

Can any1 send a small script of how to valiade a username using eregi().

I want username to consist only a-zA-Z1-0, "_", and "-"

I can't get it to work correctly

Vlad

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




[PHP] YET another question re: magic quotes

2002-03-14 Thread Vlad Kulchitski

If I have magic quotes on, will stripslashes() / addslashes() work? Doesn't seem to 
work for me...

-Original Message-
From: Vlad Kulchitski 
Sent: 14 ÂÅÒÅÚÎÑ 2002 Ò. 11:10
To: [EMAIL PROTECTED]
Subject: [PHP] Opera broswer & file upload / MY CODE

This is the code I am using for uploading:

if(($userfile) && ($userfile != "none"))
{

  $type=basename($userfile_type);

  
  switch ($type) 
  {
   case "jpeg":

   case "pjpeg": $filename="talkroom_gallery_photographs/$username.jpg";
 copy($userfile, $filename);
 echo "file copied OK!";
 echo "";
 break;
   case "gif":   $filename="talkroom_gallery_photographs/$username.gif";
 copy($userfile, $filename);
 echo "file copied OK!";
 echo "";
 break;
   case "bmp":   $filename="talkroom_gallery_photographs/$username.bmp";
 copy($userfile, $filename);
 echo "file copied OK!";
 echo "";
 break;
   default:  echo "invalid picture format";
}

Vlad

-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]] 
Sent: 14 ÂÅÒÅÚÎÑ 2002 Ò. 10:58
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Opera broswer & file upload

On Thursday 14 March 2002 23:57, Vlad Kulchitski wrote:
> Also another question, my fileupload works everywhere (IE, Netscape) but
> Opera. Does Opera support it at all?
>
> My fileupload is very simple. It checks is the file is JPEG/GIF/BMP and
> then
> saves it, if not, gives an error message.

I use Opera 5.12 for uploads and have no problems.


What problems are you getting?

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk

/*
The more crap you put up with, the more crap you are going to get.
*/

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


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




[PHP] Opera broswer & file upload / MY CODE

2002-03-14 Thread Vlad Kulchitski

This is the code I am using for uploading:

if(($userfile) && ($userfile != "none"))
{

  $type=basename($userfile_type);

  
  switch ($type) 
  {
   case "jpeg":

   case "pjpeg": $filename="talkroom_gallery_photographs/$username.jpg";
 copy($userfile, $filename);
 echo "file copied OK!";
 echo "";
 break;
   case "gif":   $filename="talkroom_gallery_photographs/$username.gif";
 copy($userfile, $filename);
 echo "file copied OK!";
 echo "";
 break;
   case "bmp":   $filename="talkroom_gallery_photographs/$username.bmp";
 copy($userfile, $filename);
 echo "file copied OK!";
 echo "";
 break;
   default:  echo "invalid picture format";
}

Vlad

-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]] 
Sent: 14 ÂÅÒÅÚÎÑ 2002 Ò. 10:58
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Opera broswer & file upload

On Thursday 14 March 2002 23:57, Vlad Kulchitski wrote:
> Also another question, my fileupload works everywhere (IE, Netscape) but
> Opera. Does Opera support it at all?
>
> My fileupload is very simple. It checks is the file is JPEG/GIF/BMP and
> then
> saves it, if not, gives an error message.

I use Opera 5.12 for uploads and have no problems.


What problems are you getting?

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk

/*
The more crap you put up with, the more crap you are going to get.
*/

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




RE: [PHP] Opera broswer & file upload

2002-03-14 Thread Vlad Kulchitski

The message I get is that the file is invalid format...

I tested on Netscape 4.xx and Netscape 6.xx

tested on IE 4 through 5. Works fine.

I can paste the code I am using if you want to take a look.

Vlad

-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]] 
Sent: 14 ÂÅÒÅÚÎÑ 2002 Ò. 10:58
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Opera broswer & file upload

On Thursday 14 March 2002 23:57, Vlad Kulchitski wrote:
> Also another question, my fileupload works everywhere (IE, Netscape) but
> Opera. Does Opera support it at all?
>
> My fileupload is very simple. It checks is the file is JPEG/GIF/BMP and
> then
> saves it, if not, gives an error message.

I use Opera 5.12 for uploads and have no problems.


What problems are you getting?

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk

/*
The more crap you put up with, the more crap you are going to get.
*/

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




RE: [PHP] If...Else question

2002-03-14 Thread Vlad Kulchitski

Of course it's legal, absolutely.

You have to make sure though that you
don't use double quotes in php portion,
and if you do, you have to escape them
for instance:

echo "";

if you paste the code that's causing the
problem, we can take a look.

Vlad

-Original Message-
From: Brad Harriger [mailto:[EMAIL PROTECTED]] 
Sent: 14 ÂÅÒÅÚÎÑ 2002 Ò. 10:52
To: [EMAIL PROTECTED]
Subject: [PHP] If...Else question

Is it legal for an if...else statement to span PHP code blocks? Here's 
an example:




   
   MORE HTML CODE HERE




I have some code similar to this example.  When I run the code in my 
browser, I get a parse error on the last line (?>).


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




[PHP] Opera broswer & file upload

2002-03-14 Thread Vlad Kulchitski


Also another question, my fileupload works everywhere (IE, Netscape) but
Opera. Does Opera support it at all?

My fileupload is very simple. It checks is the file is JPEG/GIF/BMP and
then
saves it, if not, gives an error message.

Vlad


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




[PHP]

2002-03-14 Thread Vlad Kulchitski


Hi,

I have the following probably very simple problem.

Basically what I need to do is to collect info from the user
via 4 steps... like a set of  throughout
STEP 1 of 4 ... STEP 4 of 4... etc... submitted to db on
STEP 5.

The only problem I have is I need to display  on
step 3, and once again the same  on step 4
so that user has another chance to review what s/he's 
written in and on the fifth page all date submitted to db.
The problem though is that it adds slashes, and on the
submission page (page 5) there's like three slashes
for the info collected via . Basically, for
instance I submit "I'm Russian" on step 3, by the time
this data reached final step it's "I\\\'m Russian".

How can I overcome this issue? If I avoid putting variable
taken from step 3 to 4th into 
$about_eng and do  half of the data gets lost, only first
word from the submitted previously remains...

Hope this was descriptive and hope someone can suggest something.

Thanks,
Vlad


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




[PHP] File Upload

2002-03-11 Thread Vlad Kulchitski


Hi,

Can anyone help with file upload?

I am uploading file through the form

And on the page where I get the variables from
the form I say:

if(!userfile)
   echo "ERROR";

$filelocation="/tmp";

copy($userfile, $filelocation)

The message I get in my browser is:

Warning: Unable to open 'C:\\Documents and
Settings\\vlad\\Desktop\\satellite\\florida.jpg' for reading: No such
file or directory in /var/www/kulchitski/btl/_talkroom_submit.php on
line 15


Can anyone suggest anything?
Thanks in advance guys
Vlad

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




[PHP] session OR variables

2002-03-11 Thread Vlad Kulchitski


Hi,

I have a question. I am working on a submit form that will
ask you for confirmation of info. I.e. I need to move values
submitted via form through 2 different pages. One of the ways
to do it is via session_start(). Another way to do is it via
storing variables in a QUERY_STRING and that's my favourite to
be honest (page.php?a=432&b=$this)

The question is how reliable the session is? In other words
I understand session works based on cookies right? So if the client
browser has cookies disabled the session is not going to work 
right?

Vlad


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




RE: [PHP] Netscape Vs. IE

2002-03-11 Thread Vlad Kulchitski


Hi,

Someone replied to my post about browsers incompatibilities but I lost
the message, can someone remind me how to set up the background image:



I mean I need another command that will tell to load image as a bg. I am
trying to use background-image:file.gif, but it doesn't seem to work.

Thanks,
Vlad


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




[PHP] Netscape vs. IE/Mozilla

2002-03-08 Thread Vlad Kulchitski

 
Hi guys,
 
I know it's a wrong place to ask about this, but I am sure someone here
faced the same problem. I am trying to get the site to look consistent
in
Netscape Navigator and it's giving me hard times.

Either tables or/and cell background doesn't show up or spacing between
two tables is not what it is supposed to be.

If anyone can give me suggestion about where to look for some hints
online
that would be appreciated.

Thanks,
Vlad



RE: [PHP] last update

2002-03-05 Thread Vlad Kulchitski


I have the problem,

Something happened to my server setup and all of a sudden
I am getting warning messages I haven't gotten before.

When I run the following piece of code:

if (!isset($lang))
{
 $lang="eng";
}

I get the following warning:

Warning: Use of undefined constant eng - assumed 'eng' in
/var/www/kulchitski/btl/template.php on line 40

Can I fix this somehow?

Vlad

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




[PHP] Mysql

2002-03-05 Thread Vlad Kulchitski

Hi,
 
I am trying to connect to the database like this:

$db=mysql_pconnect("localhost", "clark", "clark")

while in mysql do the following:

>grant all on * to clark identified by 'clark';
 
And I cannot connect to the DB unless I use root
in my php. Actually it seems to connect under
'clark' but will not select anything from the table.

Do I have to have this 'clark' user on my linux machine also?

Vlad 



RE: [PHP] trouble with telnet.

2002-03-01 Thread Vlad Kulchitski


Actually there's a nice bash command:

$ which mysql

that is supposed to show you the folder where binary is...
I mean my understanding is if there's 'mysql' binary that
means mysql is installed.

alternatively you can do this also:

$ find / mysql*// what this one will do is it will start
looking for mysql on your filesystem and give you results at the end

Hope this was helpful
Vlad
p.s. I think the commands Andrey pointed out work also


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




[PHP] session/cookies

2002-02-28 Thread Vlad Kulchitski



Hi again, I am doing a simple example of cookies and my server seems to
get frozen.

Basically, what I do is:

file01.php:


file02.php


What ends up happening when I go to the second file is the server just
opens the file forever never showing the content, and ends up giving me
an error message.

Can anyone suggest what I do wrong?

Thanks,
Vlad

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




[PHP] interesting problem / NETSCAPE-related

2002-02-28 Thread Vlad Kulchitski

Hi guys, I hope someone out there can help me.

I just ran into an interesting issue.

Basically, I am working on a php-powered template which works
in two different languages (English and Ukrainian):

http://www.kulchitski.com/btl/template.php?lang=eng

When you go to this address (!in Netscape), everything's fine.
Also everything's fine when you manually change the variable lang= in
the
string. But! Try to click flags on the template and that's where I 
run to an error message.

Basically what I do there is I use IMAGE

I assume the problem is because I don't specify which file I want to 
pass the variable lang to... But it works fine in IE, and works fine on
Mozilla 
on my linux machine.

Also, the same story goes to menu on the left hand side.

If someone can help me here, that would be greatly appreciated.

I mean apparently it will work if I specify which file I want to go
to...
But I am just curious if there's another way around...

Thanks a lot in advance,
Vlad
http://vladik.tripod.com

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