[PHP] test

2004-10-15 Thread Cosmin
test -- c3f7bc9d7683857572da3d1fa3d31af17bde4ebbc5c0f0dc2b7f6f

Re: [PHP] Suggestion for IN()

2004-09-30 Thread Cosmin
you could try in_array() if (in_array(1,2,3,4,5), 6) On Thu, 2004-09-30 at 22:10, Daevid Vincent wrote: I'm sure I'll be flamed for this, but it seems to me that there should be a shortcut way to write: If ($a == 1 || $a == 4 || $a == 20 || ...) {} To something more like what SQL has...

Re: [PHP] Suggestion for IN()

2004-09-30 Thread Cosmin
...sorry, that should have been if (in_array(array(1,2,3,4), 6)) On Thu, 2004-09-30 at 22:10, Daevid Vincent wrote: I'm sure I'll be flamed for this, but it seems to me that there should be a shortcut way to write: If ($a == 1 || $a == 4 || $a == 20 || ...) {} To something more like

Re: [PHP] Can't install PHP on Windows/Apache

2004-07-19 Thread Cosmin Chiru
:\windows\php.ini file point to the .dll file correctly. Could anybody please tell me what the problem could be? Thank you in advance Alberto Brea Hello. You might wanna check this: http://www.php.net/manual/en/installation.php -- Best regards, Cosminmailto:[EMAIL

Re: [PHP] Mixing $_POST with text in a variable

2004-07-19 Thread Cosmin Chiru
$message = Name: $_POST['Name']\n; $message .= Division: $_POST['Division']\n; $message .= Phone: $_POST['Phone']\n; $message .= Email: $_POST['Email']\n; -- Best regards, Cosminmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net

Re: [PHP] Login Script

2004-07-19 Thread Cosmin Chiru
if the cookie is set - if(isset($_COOKIE['username'])) {...} - and if it's set, proceed to user page; if not, display the login form again. -- Best regards, Cosmin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] flash to image using PHP

2004-07-16 Thread Cosmin
Is it possible to convert a swf file(static, no animation) to an image format(jpeg or png preferably) using PHP? I have a flash script which chooses the colors for a logo and saves it a swf file and I need to transform it in an image file so I could I use it in a PDF file -- PHP General Mailing

[PHP] PHP-GTK mailing list

2004-04-08 Thread Cosmin
sorry for the off topic but i didn't knew where to ask this. does anyone know what's happening with the php-gtk mailing list. I haven't received a message for more than a month now and any message that i try to send comes back saying Hi. This is the qmail-send program at pb1.pair.com. I'm

Re: [PHP] OTP: Programming

2004-03-07 Thread Cosmin
with PHP. I have heard that PHP can be used in this capacity, would PHP work for me to create applications with a GUI? Take a look at php-gtk: http://gtk.php.net/ -- Cosmin [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] XML Validate

2003-11-01 Thread Cosmin
Is there a function to validate a XML document(make sure tags are closed/nested)? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] sockets - fine tunning

2003-10-26 Thread Cosmin
: text/xml Cosmin wrote: I'm trying to make an application using XML-RPC, and I have the following problem: I use fsockopen() to simulate a POST to my local web-server. All goes very well except it's very very slow. Here is my code maybe someone could tell me what I'm doing wrong

[PHP] sockets - fine tunning

2003-10-25 Thread Cosmin
Client StartClient Stop 1067090777.5303 1067090794.5286 If someone knows a way on how to speed this up please tell me how to do it. Thank you for your time -- Cosmin [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] sockets - fine tunning

2003-10-25 Thread Cosmin
On Sat, 2003-10-25 at 17:42, Curt Zirzow wrote: * Thus wrote Cosmin ([EMAIL PROTECTED]): I'm trying to make an application using XML-RPC, and I have the following problem: I use fsockopen() to simulate a POST to my local web-server. All goes very well except it's very very slow. Here is my

[PHP] Object and properties

2003-10-13 Thread Cosmin
Is there a way to find out all the properties from an object? For instance if I have: --- class test { var $a; var $b; var $c; function test(){} } $example= new test(); --- , is there a function to tell me that the

[PHP] Unix time

2002-05-23 Thread Cosmin
Hello How can I compare Unix Time? As integer values? I take the unix time from database and I compare with the current time and something is not functioning. Can somebody show me how can I do this? Thank you , Cosmin -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] comparing time

2002-04-24 Thread Cosmin
Hello, How can I compare time? So I have to check a difference of 12 or 24 hours this mean I have to compare the time between the days too.. How I can make this comparing just comparing hour with hou and then minute with minute or is possible all of them at the same time? Thanks Cosmin

[PHP] get ip of visitors

2002-04-23 Thread Cosmin Vlasiu
Hello, How can I take the IP of the visitator of my php page? not gethostbyname... I need the ip of any visitator not for the specified visitator. Thank you Cosmin

[PHP] Re: get ip of visitors

2002-04-23 Thread Cosmin
Ya I found $ip = gethostbyname($REMOTE_ADDR); Thanks anyway Cosmin Cosmin Vlasiu [EMAIL PROTECTED] wrote in message 007d01c1ea9d$9db78660$[EMAIL PROTECTED]">news:007d01c1ea9d$9db78660$[EMAIL PROTECTED]... Hello, How can I take the IP of the visitator of my php page? not gethostbyname..

[PHP] Re: get ip of visitors

2002-04-23 Thread Cosmin
Thanks to all, very usefull samples Cosmin Cosmin Vlasiu [EMAIL PROTECTED] wrote in message 007d01c1ea9d$9db78660$[EMAIL PROTECTED]">news:007d01c1ea9d$9db78660$[EMAIL PROTECTED]... Hello, How can I take the IP of the visitator of my php page? not gethostbyname... I need the ip of any v

[PHP] Help - Variables

2002-03-15 Thread BUDINSCHI Cosmin
Could smbdy please help me I have a variable with the name $name(=the_name_of_the_variable) and I want to know if $the_name_of_the_variable is set. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Help - Variables

2002-03-15 Thread BUDINSCHI Cosmin
On Fri, 15 Mar 2002, Julio Nobrega Trabalhando wrote: :if (isset($var_name)) { :echo 'Isset!'; :} : : ? This I knew ... i don't know the variable's name untill I execute the script. I want to found out if a cookie is set who's name is $var1.$var2 and $var2 is the

Re: [PHP] Re: Help - Variables

2002-03-15 Thread BUDINSCHI Cosmin
On Fri, 15 Mar 2002, bvr wrote: :isset($_COOKIE[$var1 . $var2]) :isset($HTTP_COOKIE_VARS[$var1 . $var2]) // (for ancient PHP versions) : :http://www.php.net/manual/en/features.cookies.php : :or : :isset(${$var1 . $var2}) : :http://www.php.net/manual/en/language.variables.variable.php : :bvr. :

[PHP] Driving me nuts, need one second of your time

2002-03-15 Thread cosmin laslau
? $query = SELECT * from mytable; $result = mysql_db_query(db, $query); while ($myarray = mysql_fetch_array($result)) { $title = $myarray[title]; echo $titlebr; } ? Can someone PLEASE tell me why the coding above gives the following error: Warning: Supplied argument is not a valid MySQL

[PHP] Test - don't read just delete

2002-02-27 Thread BUDINSCHI Cosmin
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Image width??

2001-11-29 Thread cosmin laslau
Hi, Is there any function or command in PHP that will return the width an image (GIF)? Thanks. _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- PHP General Mailing List (http://www.php.net/) To

[PHP] Updating Timestamps

2001-11-26 Thread cosmin laslau
table which I want to affect the timestamps. Is there a command for 'manually' updating a timestamp rather than by SQL's own logic? Thanks in advance. Cosmin Laslau _ Get your FREE download of MSN Explorer at http://explorer.msn.com

[PHP] Deleting from MySQL with more than one 'where' variable?

2001-11-21 Thread cosmin laslau
Ok, there's a table with 4 fields, I want to delete from it when two of the variables passed (through the function below) match up with the table's contents. However, I have only been able to get it to work with one 'where' clause, not two. Here's my code for one: function

[PHP] PHP Backing up a Database?

2001-11-17 Thread cosmin laslau
Hi, Say I'm not really confident in the prowess of my server, and I want to download my database onto my computer. Can that be done? What can I look (FTP access) in the directory structure. I guess, where is it usually located? Thanks. Cosmin Laslau