test
--
c3f7bc9d7683857572da3d1fa3d31af17bde4ebbc5c0f0dc2b7f6f
...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
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
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
";
}
?>
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
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
:>
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
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 General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
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
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
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
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
30 matches
Mail list logo