[PHP] test

2004-10-15 Thread Cosmin
test -- c3f7bc9d7683857572da3d1fa3d31af17bde4ebbc5c0f0dc2b7f6f

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 li

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 h

Re: [PHP] Login Script

2004-07-19 Thread Cosmin Chiru
f 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

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

2004-07-19 Thread Cosmin Chiru
y constantly closing quotes, using . to connect text > and variables within the larger variable. > Markus $message = "Name: $_POST['Name']\n"; $message .= "Division: $_POST['Division']\n"; $message .= "Phone: $_POST['Phone']\n"; $m

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

2004-07-19 Thread Cosmin Chiru
dll, but I still > get the error message. > The paths in the c:\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] 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 afrai

Re: [PHP] OTP: Programming

2004-03-07 Thread Cosmin
ommend for someone comfortable 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.

[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
ype: 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

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

[PHP] sockets - fine tunning

2003-10-25 Thread Cosmin
read the response. Here are the execution times: Server StartServer Stop 1067090777.5339 1067090777.5346 Client StartClient Stop 1067090777.5303 1067090794.5286 If someone knows a way on how to speed this up please tell me how to do

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

Re: [PHP] Unix time

2002-05-23 Thread Cosmin
yes I think is ok, I don't know why, but I used strtotime... (what do this function?) Thank you Cosmin Justin French <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > It'd help if you showed us some code. > > If you've

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

[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

[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] Driving me nuts, need one second of your time

2002-03-15 Thread cosmin laslau
"; } ?> Can someone PLEASE tell me why the coding above gives the following error: Warning: Supplied argument is not a valid MySQL result resource in /var/web/somesite.com/html/index.php on line 5 It's absurd. It's driving me nuts. I'm about to introduce my computer to the pavement 40 feet

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

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 t

[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

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

[PHP] Updating Timestamps

2001-11-26 Thread cosmin laslau
other 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 htt

[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 delete_one_sub($sel

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

[PHP] Auto Thumbnail?

2001-11-16 Thread cosmin laslau
I've got a website which will alllow users to upload photos (jpegs) and, once approved, they'll be up for display. To do that, I need an auto-thumbnail script, preferrably for on-the-fly thumb generation. Any ideas? Also, what kind of libraries would I need. Thanks. The site is http://www.flat