[PHP] is there something like get_time_limit() ?

2001-04-22 Thread almir

is it possible to get time limit of script on server ?

almir



-- 
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] constatnts and case sensitivity

2001-03-30 Thread almir

hallo people
simply
i am using php 3.0.11 on IIS4
here is a problem
if I use
define ("Rights", "RIGHTS");
define ("rights", "RIGHTS");
end then
echo Rights ."-" . rights  / / output : RIGHTS - rights

simply if i have constant Rights i cannot define a new one rights but if i
meke echo of rights i get "rights" as if i havent define it ,

ps can i redifne a constant anyhow




-- 
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] constatnts and case sensitivity

2001-03-30 Thread almir

i had a old manual localy , but now i have found it on net with optional
parametar , sorry

""almir"" [EMAIL PROTECTED] schrieb im Newsbeitrag
9a2ksp$kkm$[EMAIL PROTECTED]">news:9a2ksp$kkm$[EMAIL PROTECTED]...
 hallo people
 simply
 i am using php 3.0.11 on IIS4
 here is a problem
 if I use
 define ("Rights", "RIGHTS");
 define ("rights", "RIGHTS");
 end then
 echo Rights ."-" . rights  / / output : RIGHTS - rights

 simply if i have constant Rights i cannot define a new one rights but if i
 meke echo of rights i get "rights" as if i havent define it ,

 ps can i redifne a constant anyhow




 --
 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] constants and case sensitivity

2001-03-30 Thread almir

just when I thought , nice I didn't know how does it work  i found out that
it is not wroking anyhow if I put

define ("rights", "RIGHTS", X);
define ("Rights", "RIGHTS", X);

echo rights . "-" .defined("rights") ."  " .Rights ."-"
.defined("Rights")."br";

regardless of X i always get
RIGHTS-1 Rights-0
but if i  change places of definiton it changes

define ("rights", "RIGHTS", X);
define ("Rights", "RIGHTS", X);
..
 Rights-0 RIGHTS-1


again I am using 3.0.11 on IIS4

thanks




-- 
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] oci8 and primary key its speed

2001-03-26 Thread almir

first of all thank all of you who helpd me up to now, to make this work
now when i make

SELECT c.column_name, c.position

FROM user_cons_columns, c, user_constraints t

WHERE t.table_name='YOURTABLENAME'

AND t.constraint_type='P'

AND t.constraint_name=c.constraint_name

AND t.table_name=c.table_name

ORDER BY c.position

it is ok and i have it

but what i realy need to know is the name of trigger that was fired , so i
made this but this one needs minutes
why ??

  SELECT c.column_name, c.position, tc.trigger_name
 FROM user_cons_columns c, user_constraints t, all_trigger_cols tc
 WHERE t.table_name='TR_LOG'
  AND t.constraint_name=c.constraint_name
 AND t.table_name=c.table_name
 and tc.column_name=c.column_name
 and tc.table_name=t.table_name
 ORDER BY c.position;

now i make one query to find out the name of column , then another one to
get the name of trigger( this is fast) but i would like to write a single
statement to get the name of trigger because that is the only thing i need
actualy
but it is to slow




-- 
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] finding primary key with oci8

2001-03-25 Thread almir

is there any why to find out from php with oci8 functionen , which colomn/s
is/are primary key in a table in oracle

almir





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

2001-03-24 Thread almir

1) if you are running it on linux(web server ) it will cost you about 2000$
at least to connect it , and you will have to use odbc for linux,
2)if you are using ms web server then you have to enable support for that in
php3.ini but usualy this way is not good, i usualy had problems with that
and i always used odbc with odbc.dll
"Mauricio Alarcon" [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hello
 I want to connect to a Microsoft SQL Server, I try with mssql_connect
 but the script don't work, it always say
 Call to unsupported or undefined function
 What I do worng?

 Thanks

 --
 Mauricio Alarcon Rincon
 Webmaster - Webdepot
 Linux Registered User # 157093


 CF-18 Hornet

 \ /
  \ _ /
   /_\
   x--( . )--x
x|x   | |_|\_/|_| |   x|x
 xx   xx

 http://www.merlinux.org


 --
 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] oracle last inserted

2001-03-24 Thread almir

is there a way to get last inserted id from oracle as
mysql_inerted_id() or
SELECT @@IDENTITY AS LastId
in mssql server

i have a function that does only that, takes insert statement and returns
last id,  but this function have to work for all tables (different triggers
in oracle) , right now the only thing i can imagine is to give this function
the name of ID column and read name of table with regex and then do
select max(parametar_id) from regex_table
and then to do commit ,
this way is somehow realy stupid but is my only solution in this moment so
if you have any better ideas plese help

almir



-- 
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] Text fading with PHP?

2001-03-24 Thread almir

i think you need DHTML or flash

almir

""Jamie Anderson"" [EMAIL PROTECTED] schrieb im Newsbeitrag
99is88$m8a$[EMAIL PROTECTED]">news:99is88$m8a$[EMAIL PROTECTED]...
 Hi

 Is it possible to do text fading with PHP.  For instance, I want to one
line
 of text fade in, have another line fade in later, and a third line after
 that.  Then all three lines will fade out at the same time and start over
 with three different lines.  Is this possible with php?

 Thanks

 Jamie



 --
 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_SELF - internal error?

2001-03-24 Thread almir

is it realy everithing that you get from php or there is something missing ?

i mean usualy it helps basename() or base_name() cant remmember now
try it, but in your case it seems differently

almir

""Tommy"" [EMAIL PROTECTED] schrieb im Newsbeitrag
99i3q7$57q$[EMAIL PROTECTED]">news:99i3q7$57q$[EMAIL PROTECTED]...
 Hi,
 that's my paht:

 ./Webpages/Kalender/php.php

 The value of PHP_SELF in php.php is:

 /Kalender/php.php/Kalender

 How can I fix this Problem? I have PHP 4.04pl1 CGI, Windows ME.

 THX Tommy





 --
 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] i get this for some reason

2001-03-24 Thread almir

$text=stripslashes($text);

almir

""Jason Lotito"" [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  -Original Message-
  From: adam [mailto:[EMAIL PROTECTED]]
  Sent: Saturday, March 24, 2001 1:43 AM
  To: [EMAIL PROTECTED]
  Subject: Re: [PHP] i get this for some reason
 
 
  but i am not talking about running a server, i am just using php on
server
  space that has php installed.
 
  what code would i incluse to get rid of this?
 

 RTM: http://www.php.net/manual/en/function.stripslashes.php

 Jason Lotito
 www.NewbieNetwork.net
 Where those who can, teach;
 and those who can, learn.


 --
 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] Image background bleeding through text

2001-03-24 Thread almir

check if the area you are filling with another colour is  realy closed,
maybe send a url to that it could help
almir


""Kevin Rose"" [EMAIL PROTECTED] schrieb im Newsbeitrag
000c01c0b3b7$87a071c0$8105a8c0@kevin">news:000c01c0b3b7$87a071c0$8105a8c0@kevin...
Hello,

I am using GD v. 1.8.3, freetype 1.3.1 and php 4.0.3.p1.  I am having a
problem with some of my background color bleeding through my font/text when
I create a new image with ImageTTFText.  Specifically I want my text to be
pure white (255,255,255), but it is not appearing that way on my output
image.

Here is the code I am using:

 $fontColor = ImageColorAllocate ($im,255,255,255);
 ImageTTFText($im,$fontSize,0,$fontX,$fontY,$fontColor,$fontFile,$fontText);

Has anyone else experienced this?

Thank you,
Kevin




-- 
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] WebCam and PHP

2001-03-24 Thread almir

simply insert disk2 into flopy and press any key to continue

almir
""Chris Lee"" [EMAIL PROTECTED] schrieb im Newsbeitrag
99fq6b$acv$[EMAIL PROTECTED]">news:99fq6b$acv$[EMAIL PROTECTED]...
wow thats a vague question :)

are you trying to display them to the user?

echo "
img src='/path/imagename.jpg'
";

or are you trying to read that data ?

fopen('/path/imagename.jpg', 'r');

is the file not in the document root ?

header('Content-Type: image/jpeg');
readfile('/path/imagename.jpg');


--

 Chris Lee
 [EMAIL PROTECTED]



""Marcelo Pereira"" [EMAIL PROTECTED] wrote in message
006001c0b396$05167cc0$0b01a8c0@hmmg">news:006001c0b396$05167cc0$0b01a8c0@hmmg...
Hi All,

How can I show images, captured by a webcamp, in my website using PHP ???

Thanks,

Marcelo Pereira





--
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] Move data from one MySql table to another?

2001-03-24 Thread almir

write
insert into new_table (val1, val2)
select from old_table
val1, val2 where id=kdsaflkj

and execute it with php like any other statement

almir
ps. but  checking mysql.com helps, there are lot of other interesting things

""YoBro"" [EMAIL PROTECTED] schrieb im Newsbeitrag
99e1q7$gv8$[EMAIL PROTECTED]">news:99e1q7$gv8$[EMAIL PROTECTED]...
 I need to know how to do it in PHP?


 ""Cal Evans"" [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 : Probably on the MySQL list.  This is the PHP. (This is arguments,abuse
is
 : down the hall.)
 :
 : Try:
 : http://www.mysql.com/documentation/lists.html
 :
 :
 : Cal
 : http://www.calevans.com
 :
 :
 : -Original Message-
 : From: YoBro [mailto:[EMAIL PROTECTED]]
 : Sent: Thursday, March 22, 2001 5:20 PM
 : To: [EMAIL PROTECTED]
 : Subject: [PHP] Move data from one MySql table to another?
 :
 :
 : Hello,
 :
 : Does anybody know where I could find out how to Move data from one Mysql
 : table to another.
 :
 : I have a query showing all the results, and I am trying to put a link at
 the
 : end of each row that says "move"
 :
 : Clicking this will move that records information to another table.
 : IE From table orders to table ordered
 :
 : Make sense?
 :
 : Please help
 :
 : --
 : Regards,
 :
 :
 : YoBro
 : -
 : DO NOT REPLY TO THIS VIA EMAIL
 : PLEASE USE THE NEWSGROUP
 : All emails sent to this address are automatically deleted.
 : This is to avoid SPAM!
 : -
 :
 :
 :
 : --
 : 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]




[PHP] LDAP problem

2001-03-22 Thread almir

ok
i am usng php3.0.11 ,IIS4 and NT4 trying to connect to ldap server but i get
a error
Fatal error: Call to unsupported or undefined function ldap_connect() in ...
i have included php3_ldap.dll in my php3.ini, i have even tried to include
it dinamicaly with dl but then i get

Fatal error: Unable to load dynamic library './php3_ldap.dll'

yes the file is THERE i have tested it and that is the right directory i
tested it with other .dll-s and it works just fine but this one is making
problems i had a similar problem with oracle oci81 where i had to restart
the server but in this case I realy dont know what to do

I also tryied with two different files from php 3.0.11 and 3.0.17 both of
them are 56k (could be the same) but none of them works

-almir



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

2001-03-22 Thread almir

PERIOD_DIFF(P1,P2)
or convert them both tu unix_time(p1) - unix_time(p2) then you can have
seconds and format them as you want

almir
""BlackLord"" [EMAIL PROTECTED] schrieb im Newsbeitrag
99dcs5$cbh$[EMAIL PROTECTED]">news:99dcs5$cbh$[EMAIL PROTECTED]...
 Hi!

 I want to subtract to date times from each other. Like :

 '2000 12 01 12:12:12' - '2000 11 10 11:39:59'

 Is there any function to do this subtraction or can i do it with MySQL's
 SELECT query ?

 Thanks



 --
 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] Problems connecting to remote mySQL server

2001-03-21 Thread almir

the only problem could be that yourUser@webhost do not have same permisions
for this db as yourUser@yourHost, check them if you can

-almir



"Floyd Piedad" [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hi Almir,

 Yes I checked the names and they are correct.  Yes I am able to connect
using
 the command prompt from the remote server as I am able to list the
databases,
 tables, etc. remotely.

 Thanks,

 Floyd

 almir wrote:

  when you connect to server issue
  "show databases" -query then look inside what you can see some servers
are
  case sensitive
  i hope that will help,
  and are you sure that you are connected , it could be that you may not
  connect at all because of firewalls or something like that
  -almir
 
  "Floyd Piedad" [EMAIL PROTECTED] schrieb im Newsbeitrag
  [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
   I am trying to connect to a remote mySQL server through PHP but I get
a
   mySQL error of "Unknown Database".  I can connect to the remote mySQL
  server
   using the mysql command but not with PHP.
  
   1. How can I debug what the problem is?
   2. Do I need to specify the Port parameter in PHP?
   3. Which mySQL error logs do I examine to help me out - the one on the
  local
   machine or on the remote machine?
   4. And where is the mySQL error logs anyway?
  
   I tried other lists but no help there.  I hope this list helps!
  
   Thanks all,
  
   Floyd Piedad
  
  
   --
   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] URIs as variables

2001-03-21 Thread almir

try with

uri=? echo implode("", $HTTP_GET_VARS);?


""Issac Goldstand"" [EMAIL PROTECTED] schrieb im Newsbeitrag
99at42$5be$[EMAIL PROTECTED]">news:99at42$5be$[EMAIL PROTECTED]...
 Newbie question here.  I am trying to pass a varaible containing a URI
 across a few scripts.  Basically, the first script get's a query string
 including the URI (eg
 http://foo.bar/script1.php?url=script2.php?var1=avar2=b).
 Now, script1 contains a form pointing to script3 so basically, I have the
 user form and then:

 ?
 echo "INPUT TYPE=\"HIDDEN\" NAME=\"url\" VALUE=\"$url\"";
 ?

 (I have register-gloabls enabled and am not sure whether the call to
script1
 will be POST or GET)

 This creates a slight problem, as, using the above example once again, PHP
 will send the browser the line:

 INPUT TYPE="HIDDEN" NAME="url" VALUE="script2.php?var1=a"

 But it totally chops off everything from the "" and onwards.  How can I
fix
 it to get the entire URI?

 Thanks,
 Issac


 --
 Internet is a wonderful mechanism for making a fool of
 yourself in front of a very large audience.
   --Anonymous

 Moving the mouse won't get you into trouble...  Clicking it might.
   --Anonymous

 PGP Key 0xE0FA561B - Fingerprint:
 7E18 C018 D623 A57B 7F37 D902 8C84 7675 E0FA 561B




 --
 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 an WinNT-Filesystem

2001-03-21 Thread almir

try giving all rights to all users for short time just to check if it is
going to work at least in this case, i never had problems localy (only in
network) it works fine with me
wich php are you using
""Dirk Ritters"" [EMAIL PROTECTED] schrieb im Newsbeitrag
99arbh$ior$[EMAIL PROTECTED]">news:99arbh$ior$[EMAIL PROTECTED]...
 Hi,

 i have to install a php-tool on an IIS4.0 NT-server owned by our customer.
I
 would like to write into a directory with a script but i always receive an
 error:

 Warning:
 fopen("d:\InetPub\blabla\pages\news\admin\data\210301192417.dat","a") -
 Permission denied in d:\InetPub\blabla\pages\news\admin\publish.php on
line
 17

 I gave writing permission to the directory \data\ but it doesn't work. Can
 you tell me please, what i have to do!

 Tanks a lot

 Dirk Ritters



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

2001-03-21 Thread almir

select distinct * from mytable is functioning just as it should what the
answer is not group by try pleas to explain better what do you want

almir
"Jared Howard" [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 I need to retrive all column information from a DISTINCT query.  But so
 far, I only can get one column to show by using this:

 SELECT DISTINCT my_column FROM my_table;

 which then gives me a list of my_column information and is correct, but I
 need all information from all columns.  Querying this:

 SELECT DISTINCT my_column, my_column2, my_column3, my_column4 FROM
my_table;

 was my guess at it, but doesn't work how I'd like.


 --
 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] Simple question about mail() limitations (if any :)

2001-03-21 Thread almir

on IIS it is much better solution for more than few mails is to put them
simply in pickup directory of smtp server, I am also sure that there is a
similar possibility on linux

-almir
""SED"" [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hi,

 Before I try it myself and kill my server :), is it safe to send via
mail()
 function multiply e-mails like:

 while (expr) {
 mail ($to, $subject, $message);
 }

 Are there any limitation in this? (e.g. 100 mails? 100.000? 1.000.000?) If
 so, is it possible to work around the limitation by using delay between
 sending certain amount of mails?

 Regards,
 Sumarlidi Einar Dadason

 SED - Graphic Design

 --
 Phone:   (+354) 4615501
 Mobile:  (+354) 8960376
 Fax: (+354) 4615503
 E-mail:  [EMAIL PROTECTED]
 Homepage:www.sed.is - New Homepage!
 --


 --
 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] include virtual, file or exec cgi?

2001-03-21 Thread almir

you can include through http ,I did it even remotly and it works fine but
slow, see in manual how to read files through http

-almir



""Christian Dechery"" [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Can't I

!--#include file="something.php"-- or
!--#include virtual="something.php"-- or
!--#exec cgi="something.php"-- ???

I'm trying to, the script works fine if I load it normally, but as an
include
in a shtml (server parsed) file it always returns "error ocurred bla bla
bla".

What am I doing wrong?


. [ Christian Dechery  ]
. Webdeveloper @ Tá Na Mesa!
. Listmaster @ Gaita-L
. http://www.tanamesa.com.br



--
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] file height and width

2001-03-21 Thread almir

1) why put it into db , i dont think it is good idea to do it, put it in
file sytem , check it with image funrtions and than do what you want to or
even easier use stiles to format it with html so that it doesn´t metter how
big file actualy is

-almir


""george"" [EMAIL PROTECTED] schrieb im Newsbeitrag
99akou$rsc$[EMAIL PROTECTED]">news:99akou$rsc$[EMAIL PROTECTED]...

 Chris,

It's going straigt into a db and is then pulled out and
 displayed on the page. I want the image to be a specific size.

 Thanks

 george





 --
 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] Attachment problem with web based mail - CODE SAMPLE

2001-03-21 Thread almir

if you want to change the behaviour of IE or NN with save, then you have to
change header of the page you are sending with header comand

-almir



""Grant Walters"" [EMAIL PROTECTED] schrieb im Newsbeitrag
001101c0b1f8$d7c52080$[EMAIL PROTECTED]">news:001101c0b1f8$d7c52080$[EMAIL PROTECTED]...
  We hired a developer about a year ago to develop a
  web based email system for us in php. The developer
  is no longer around, so I am having to pick up
  the development on the project...When clicking
  on the attachment link of an email in Internet
  Explorer 5.5 in Windows 98, I get the save as dialog
  and when I select ok, it tries to save the html
  page. If I right click and do save target as, it
  gets the correct file. This all works correctly in
  IE 5.0 and Netscape 4.76, and what's weird is that
  it even works as expected in IE 5.5 running on Win2k.
  Can anyone offer any suggestions? I'll be glad to send
  any code snipplets, or info if anyone can clue me in...
 
  Jack Davis
  Network Admin
  Bootheel Internet Services

 I built this a few months ago to handle mail merges with a fixed defied
 attachment and it seems to work for most email readers I have tried.  It
is
 supposed to handle text email clients and MIME clients as well as per the
 RFC's (It was templated from an outgoing email attachment from Microsoft
 Outlook so it will probably screw something up somewhere).

 The site variable is a class variable from an included file that contains
 all sorts of default stuff.
 class SITE {
   var $mail_from = "[EMAIL PROTECTED]";
   var $mail_reply_to = "[EMAIL PROTECTED]";
 } // END SITE CLASS

 The get page function
   function get_page($page_name="") {
 $return="";
 if (file_exists($page_name))

   $fp = fopen("$page_name","r");
   $return .= fread($fp, filesize($page_name));
   fclose($fp);
 }
 return $return;
   }

 The logger function is just a thing thats adds a record to a mysql table
to
 record the event for later use by my contact management/list procesing
 system.

   function

mail_it($subject,$mail_message,$mail_to="[EMAIL PROTECTED]",$mail_
 attachment="",$from="",$reply_to="") {
 global $site;
 if ($from) { $mail_from="From:$from"; } else
  $mail_from="From:".$site-mail_from; }
 if ($reply_to) { $mail_reply_to="Reply-To:$reply_to"; } else
  $mail_reply_to="Reply-To:".$site-mail_reply_to; }

 $rand=md5(rand());
 $boundary="=_NextPart_000_$rand";
 $boundary2="=_NextPart_001_$rand";
 $mail_headers = "$mail_from\n$mail_reply_to\n";
 $mail_headers .= "Content-Type: multipart/mixed;\n
 boundary=\"$boundary\"";
 $mail_headers .= "\nX-Priority: 3 (Normal)\nX-Mailer: Walters And
 Associates WCDS, Build 1.01\nImportance: Normal";
 $mail_body = "";
 $mail_body .= "  This message is in MIME format.  The first part
 should";
 $mail_body .= "be readable text,\n  while the remaining parts are";
 $mail_body .= "likely unreadable without MIME-aware tools.\n  Send
 mail";
 $mail_body .= "to [EMAIL PROTECTED] for more information.\n";
 $mail_body .= "\n";
 $mail_body .= "--".$boundary;
 $mail_body .= "\n";
 $mail_body .= "Content-Type: multipart/alternative;\n
 boundary=\"$boundary2\"\n";
 $mail_body .= "\n";
 $mail_body .= "\n";
 $mail_body .= "--".$boundary2."\n";
 $mail_body .= "Content-Type: text/plain;\n
 charset=\"iso-8859-1\"\n";
 $mail_body .= "Content-Transfer-Encoding: 7bit\n";
 $mail_body .= "\n";
 $mail_body .= strip_tags($mail_message)."\n";
 $mail_body .= "\n";
 $mail_body .= "\n";
 $mail_body .= "--".$boundary2."\n";
 $mail_body .= "Content-Type: text/html;\n
 charset=\"iso-8859-1\"\n";
 $mail_body .= "Content-Transfer-Encoding: quoted-printable\n";
 $mail_body .= "\n";
 $mail_body .= "$mail_message\n";
 $mail_body .= "\n";
 $mail_body .= "--".$boundary2."--\n";
 $mail_body .= "\n";

 if ($mail_attachment"") {
   $content = get_page($mail_attachment);
   if ($content) {
 $mail_body .= "--".$boundary."\n";
 $mail_body .= "Content-Type: application/octet-stream\n";
 $mail_body .= "name=\"".basename($mail_attachment)."\"\n";
 $mail_body .= "Content-Transfer-Encoding: base64\n";
 $mail_body .= "Content-Description: \"Mail Attachment\

Re: [PHP] Optional Parameter ?

2001-03-21 Thread almir

function print_this( $value1, $value2, $maybe3="somethin") {
}

-almir

"Jack Sasportas" [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Is it possible to have a function that looks something like

 function print_this( $value1, $value2, $maybe3) {

 do whatever;

 }

 that would expect $value1, $value2 BUT would not care if $maybe3 came in
 or not ? and not give an error message that there is a missing paramter
 ?

 I know I can do a condition within the function, but just want to see if
 there is a more technical approach as in from php to ignore that
 optional per say variable.


 I did look in my PHP book by wrox, but no luck.

 Thanks !!!


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

2001-03-21 Thread almir

are you using cookies together with header , i had problems with that
-almir

[EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hi,

 I`m having whats probably a very basic problem but just can`t get my head
 around it this late in the day, anyone have any idea why this won`t work?

 $URL="domain.com";

 header ("Location: Http://www.$URL/members/index.php");

 $URL changes so I can`t write it directly into the header line, anyone?

 --
 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] load DB from other server

2001-03-21 Thread almir

are you trying only to connect  to database or to transport data from one db
to another (LOAD) connect will do just fine
to export and inport data between two databases use mysql programms
mysqldump and mysqlimport or for smaller DB phpMyAdmin is ok

-almir

""McShen"" [EMAIL PROTECTED] schrieb im Newsbeitrag
998ln4$86g$[EMAIL PROTECTED]">news:998ln4$86g$[EMAIL PROTECTED]...
 hi

 is it possible to load my DB from other servers? if yes, how?
 like
 mysql_connect("http://blah.com","username","pass");

 thanks.



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




AW: [PHP] file height and width

2001-03-21 Thread Kazazic Almir

if it is about logos and stuff that may be changed put it simply in a
include and include it from all over or make a function and call it 
-almir

-Ursprngliche Nachricht-
Von: darion mapp [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 21. Mrz 2001 23:05
An: almir
Betreff: Re: [PHP] file height and width


I think that the DB approach is not bad at all. It allows you to format your
page quite easily and create different formatting for different sections of
your site with great ease.

How ever where the work comes is in the geration of the page. You will have
to echo the height and width to ensure that it is done. The name if the
image can also be done that way. This allows you to maintain things like a
company logo file with ease.

pluse adding a new page becomes easier once you take a modular approah to
it.

suggestion:

img src="?php echo "$imglocation" ?" height="?php echo "$height" ?"
..

now that SHOULD work provided that you get the data from the DB and place
them in their variables as needed.

you can even use arrays to hold all that data and echo what is needed by
using a dumy variable to hold the index that you would like to echo.

Any problems you can contact me 
--

On Wed, 21 Mar 2001 22:57:24  
 almir wrote:
1) why put it into db , i dont think it is good idea to do it, put it in
file sytem , check it with image funrtions and than do what you want to or
even easier use stiles to format it with html so that it doesn4t metter how
big file actualy is

-almir


""george"" [EMAIL PROTECTED] schrieb im Newsbeitrag
99akou$rsc$[EMAIL PROTECTED]">news:99akou$rsc$[EMAIL PROTECTED]...

 Chris,

It's going straigt into a db and is then pulled out and
 displayed on the page. I want the image to be a specific size.

 Thanks

 george





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




Get 250 color business cards for FREE! at Lycos Mail
http://mail.lycos.com/freemail/vistaprint_index.html



Re: [PHP] Problems connecting to remote mySQL server

2001-03-20 Thread almir

when you connect to server issue
"show databases" -query then look inside what you can see some servers are
case sensitive
i hope that will help,
and are you sure that you are connected , it could be that you may not
connect at all because of firewalls or something like that
-almir



"Floyd Piedad" [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 I am trying to connect to a remote mySQL server through PHP but I get a
 mySQL error of "Unknown Database".  I can connect to the remote mySQL
server
 using the mysql command but not with PHP.

 1. How can I debug what the problem is?
 2. Do I need to specify the Port parameter in PHP?
 3. Which mySQL error logs do I examine to help me out - the one on the
local
 machine or on the remote machine?
 4. And where is the mySQL error logs anyway?

 I tried other lists but no help there.  I hope this list helps!

 Thanks all,

 Floyd Piedad


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