Re: [PHP] function with argument of type array

2005-07-28 Thread André Medeiros
On Thu, 2005-07-28 at 11:08 +0200, marc serra wrote: Hi, i want to know if it is possible to create a function and declare that one of its arguments is array type. In fact i want to do something like this function test(String $litteral, array $foo){ . } I got an error when i

Re: [PHP] function with argument of type array

2005-07-28 Thread Marcus Bointon
On 28 Jul 2005, at 12:07, André Medeiros wrote: On Thu, 2005-07-28 at 11:08 +0200, marc serra wrote: Hi, i want to know if it is possible to create a function and declare that one of its arguments is array type. In fact i want to do something like this function test(String $litteral, array

Re: [PHP] function with argument of type array

2005-07-28 Thread André Medeiros
On Thu, 2005-07-28 at 12:45 +0100, Marcus Bointon wrote: On 28 Jul 2005, at 12:07, André Medeiros wrote: On Thu, 2005-07-28 at 11:08 +0200, marc serra wrote: Hi, i want to know if it is possible to create a function and declare that one of its arguments is array type. In fact i want

Re: [PHP] function MAX with WHERE

2005-07-25 Thread Georgi Ivanov
What print_r($test_m) say ? Or echo mysql_num_rows($test); May be you get 0 records from your query. On Monday 25 July 2005 09:06, Jesús Alain Rodríguez Santos wrote: I have someting like this: $test = mysql_query(SELECT MAX(dato) AS datos FROM tabla WHERE campo_mes = '$mes'); $test_m =

[PHP] function MAX with WHERE

2005-07-24 Thread Jesús Alain Rodríguez Santos
I have someting like this: $test = mysql_query(SELECT MAX(dato) AS datos FROM tabla WHERE campo_mes = '$mes'); $test_m = mysql_fetch_array($test); $test_mes = $test_m['datos']; print $test_mes where $mes is a value I need to know if something its wrong, because I don't recive any error, but I

Re: [PHP] Function shall receive Pointer to Array

2005-05-06 Thread Richard Lynch
On Wed, May 4, 2005 3:29 pm, Fred Rathke said: how can a function get a pointer to an array? This does not work. I use PHP4. Technically, in PHP, they are references, not pointers. There are no pointers in PHP. The difference is too subtle for me to understand it, but there is apparently some

[PHP] Function shall receive Pointer to Array

2005-05-04 Thread Fred Rathke
Hello, how can a function get a pointer to an array? This does not work. I use PHP4. $t = array(test = unchanged); echo brtestarray unchanged:\.$t['test'].\; changearray($t); echo brtestarray hopefully changed:\.$t['test'].\; function changearray($myarray) { $myarray['test'] = changed; } Before

Re: [PHP] Function shall receive Pointer to Array

2005-05-04 Thread Chris
I don't know what to tell you, that code should work (it does work, exactly as you gave it in my PHP 5). Chris Fred Rathke wrote: Hello, how can a function get a pointer to an array? This does not work. I use PHP4. $t = array(test = unchanged); echo brtestarray unchanged:\.$t['test'].\;

[PHP] function troubles...

2005-03-17 Thread William Stokes
I don't know whats wrong with this. Can someone help please. ?php require sql.php; function shit_func($var) { $sql = select * from users where sessionid='$sessionid' ; $kys = mysql_query($sql); $user = mysql_fetch_row($kys); $k_tun = $user[0]; $ok1 = $user[4]; $ok2 = $user[5]; $ok3 = $user[6];

Re: [PHP] function troubles...

2005-03-17 Thread Chris Ramsay
Will Whatever you are making available in the required file sql.php, it is not accessible by the function shit_func. Define the connection string or whatever as a global inside function shit_func and it should work, else make the connection within the function - not such a good idea... chris --

Re: [PHP] function reverse to get_object_vars

2005-03-15 Thread Richard Lynch
Hello Do you know how to implement function reverse to get_object_vars? For example if I have class and I wish to set it's properties from database with loop through the columns in table? If you are willing to have the object properties be the same names as the columns, you do an

[PHP] function reverse to get_object_vars

2005-03-14 Thread kamen 123
Hello Do you know how to implement function reverse to get_object_vars? For example if I have class and I wish to set it's properties from database with loop through the columns in table? - http://gbg.bg/search -- ! -- PHP

Re: [PHP] function reverse to get_object_vars

2005-03-14 Thread Robert Cummings
On Mon, 2005-03-14 at 13:26, kamen 123 wrote: Hello Do you know how to implement function reverse to get_object_vars? For example if I have class and I wish to set it's properties from database with loop through the columns in table? Something like this? $obj-$fieldName = $fieldValue;

[PHP] function to resize images

2005-02-28 Thread Bosky, Dave
Does anyone have a nice function that will resize an uploaded image to specific width/height dimensions? I wanted to find something that would work for only GIF and JPG image types. I've converted my shopping cart application from Cold Fusion to PHP and need to create thumbnails and reduce the

Re: [PHP] function to resize images

2005-02-28 Thread Frank Arensmeier
Dave! I would start by reading the PHP manual. Look for a function called 'imagecopyresized()'. This might help. /frank 2005-02-28 kl. 16.34 skrev Bosky, Dave: Does anyone have a nice function that will resize an uploaded image to specific width/height dimensions? I wanted to find something that

Re: [PHP] function to resize images

2005-02-28 Thread Robby Russell
On Mon, 2005-02-28 at 10:34 -0500, Bosky, Dave wrote: Does anyone have a nice function that will resize an uploaded image to specific width/height dimensions? I wanted to find something that would work for only GIF and JPG image types. I've converted my shopping cart application from Cold Fusion

Re: [PHP] function to resize images

2005-02-28 Thread Andre Dubuc
On Monday 28 February 2005 10:34 am, Bosky, Dave wrote: Does anyone have a nice function that will resize an uploaded image to specific width/height dimensions? I wanted to find something that would work for only GIF and JPG image types. I've converted my shopping cart application from Cold

Re: [PHP] function to resize images

2005-02-28 Thread Richard Lynch
Bosky, Dave wrote: Does anyone have a nice function that will resize an uploaded image to specific width/height dimensions? Not a function, per se, but I use this script: ?php $path = $_SERVER['PATH_INFO']; ereg(.*/target/([0-9]*).*, $path, $target); $target = isset($target[1])

[PHP] function to remove all \ from a variable

2005-02-15 Thread Tim Burgan
Hello, I'm using FCKeditor to edit content on my site. But the content it produces escapes all the (double quote) characters from my HTML, and replaces it with \ (backslash-double quote). Is the a function that I can use to change it back? Does str_replace() do it.. if so is this how I use it:

Re: [PHP] function to remove all \ from a variable

2005-02-15 Thread Lars B. Jensen
General List php-general@lists.php.net Sent: Wednesday, February 16, 2005 11:22 AM Subject: [PHP] function to remove all \ from a variable Hello, I'm using FCKeditor to edit content on my site. But the content it produces escapes all the (double quote) characters from my HTML, and replaces

Re: [PHP] function to remove all \ from a variable

2005-02-15 Thread Tim Burgan
Sorry for clogging up you mail box. Yes.. str_replace('\', '', $_POST['FCKeditor1']) works. I must've needed to think through my thoughts by typing it out. Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: calling php function when submit button is pressed

2005-02-14 Thread Jason Barnett
[EMAIL PROTECTED] wrote: Can anyone show me how to call a function when submit is pressed or a form is submitted. When submit is pressed... as in instantly / on the web browser's side? You need Javascript for that; PHP simply won't do that. Or did you mean when a form gets posted to the server?

[PHP] calling php function when submit button is pressed

2005-02-14 Thread ross
Can anyone show me how to call a function when submit is pressed or a form is submitted. I am for an alternative to $php_self which refreshes the whole page. I want to run the function which displays the errors on a form and only do a $php_self when the form is filled out correctly. thanks

Re: [PHP] calling php function when submit button is pressed

2005-02-14 Thread John Nichel
[EMAIL PROTECTED] wrote: Can anyone show me how to call a function when submit is pressed or a form is submitted. I am for an alternative to $php_self which refreshes the whole page. I want to run the function which displays the errors on a form and only do a $php_self when the form is filled

[PHP] Is there a function to c if a php function exists

2005-02-02 Thread Ben Edwards (lists)
I have been implementing a system on a different ISP than I normally use and have got:- Fatal error: Call to undefined function: cal_days_in_month() in /home/hosted/www.menublackboard.com/public_html/dev/classes/validator.class.php on line 134 I found a reference to this an the web and it

Re: [PHP] Is there a function to c if a php function exists

2005-02-02 Thread The Disguised Jedi
The function is called function_exists. Honestly, just look at the manual dude On Tue, 01 Feb 2005 20:33:11 +, Ben Edwards (lists) [EMAIL PROTECTED] wrote: I have been implementing a system on a different ISP than I normally use and have got:- Fatal error: Call to undefined

[PHP] Re: Is there a function to c if a php function exists

2005-02-02 Thread Jason Barnett
Ben Edwards wrote: ... So something like function_exists( cal_days_in_month() ) http://www.php.net/manual/en/function.function-exists.php And to check if a specific extension is enabled: http://www.php.net/manual/en/function.extension-loaded.php -- Teach a man to fish... NEW? |

[PHP] function and interface in parameter list?

2005-02-01 Thread Marco Schuler
Hi I found a function declaration in an open source project (in php5) and I could not find documantation for this. The function declaration is: public function registerComp(IComp $comp) Is it a kind of typecast? -- Cheers! Marco -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] function and interface in parameter list?

2005-02-01 Thread Jochem Maas
Marco Schuler wrote: Hi I found a function declaration in an open source project (in php5) and I could not find documantation for this. The function declaration is: public function registerComp(IComp $comp) Is it a kind of typecast? no its a type declaration (is that the correct term). it states

Re: [PHP] function and interface in parameter list?

2005-02-01 Thread Marco Schuler
Hi Am Dienstag, 1. Februar 2005 15:50 schrieb Jochem Maas: Marco Schuler wrote: Hi I found a function declaration in an open source project (in php5) and I could not find documantation for this. The function declaration is: public function registerComp(IComp $comp) Is it a kind

Re: [PHP] function and interface in parameter list?

2005-02-01 Thread Marco Schuler
Am Dienstag, 1. Februar 2005 16:07 schrieb Marco Schuler: Am Dienstag, 1. Februar 2005 15:50 schrieb Jochem Maas: Marco Schuler wrote: Hi I found a function declaration in an open source project (in php5) and I could not find documantation for this. The function declaration is:

Re: [PHP] function and interface in parameter list?

2005-02-01 Thread Jochem Maas
Marco Schuler wrote: Am Dienstag, 1. Februar 2005 16:07 schrieb Marco Schuler: Am Dienstag, 1. Februar 2005 15:50 schrieb Jochem Maas: Marco Schuler wrote: Hi I found a function declaration in an open source project (in php5) and I could not find documantation for this. The function declaration

Re: [PHP] function problem

2005-01-03 Thread Viktor Popov
Hi! Thank you for the reply! I have change the function: function doReg($fname1=,$family1=,$company1=, $MOL1=, $dannum1=, $bulstat1=, $phone1=, $email1=, $username1=, $password1=, $payment1=, $maillist1=, $Addr1=, $City1=, $zipcode1=, $Country1=, $shippingName1=, $shippingFamily1=,

Re: [PHP] function problem

2005-01-03 Thread Richard Lynch
'$shippingCountry1' { echo the insertiont cannot be done; echo mysql_error(); http://php.net/mysql_error exit(); } header(Location:http://$HTTP_HOST/$DOCROOT/allright.html;); DON'T DO THAT!!! Just do: include 'allright.html'; The Location header is for a document that

Re: [PHP] function problem

2005-01-03 Thread Matthew Weier O'Phinney
* Richard Lynch [EMAIL PROTECTED]: '$shippingCountry1' { echo the insertiont cannot be done; echo mysql_error(); http://php.net/mysql_error exit(); } header(Location:http://$HTTP_HOST/$DOCROOT/allright.html;); DON'T DO THAT!!! Just do: include

[PHP] function problem

2005-01-02 Thread Viktor Popov
Hi, I'm trying to do the following but I don't have any success. Could you help me here... I have this code in mu page: ?php include script/functions.php; require 'script/common.inc'; $valid = TRUE; if (isset ($_POST['submit'])) { foreach($_POST as $key=$value) { $$key = $value; }

Re: [PHP] function problem

2005-01-02 Thread Ligaya Turmelle
Are you getting an error? If so what does it say. Also in your code you have nothing to tell you if something is going wrong. Use echo statements - say something if the connection or the query doesn't go through. Also noticed that when you made the connection to the DB you didn't assign it

[PHP] Function Default Values

2004-12-28 Thread The Disguised Jedi
I have written a function to generate and store a salt data for a session cookie. I haven't written the MySQL code, so that is absent. Basically what I am trying to do is make it so that if there is no value submitted for an argument, I want it to fall back to the defaults set up in my

Re: [PHP] Function Default Values

2004-12-28 Thread Jason Wong
On Wednesday 29 December 2004 01:46, The Disguised Jedi wrote: Can you not default to variables in a function? No. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development *

Re: [PHP] Function declaration failing on return value

2004-10-09 Thread Jason Wong
On Tuesday 05 October 2004 06:20, Whil Hentzen wrote: I cut this directly out of the online manual and put it into my PHP page. If I've got a typo, then there's an error in the manual. I also cut the entire PHP page into my email. Nothing missing or hidden. I'm stumped. I retyped

[PHP] Function declaration failing on return value

2004-10-04 Thread Whil Hentzen
/title/head body bSquare of number/b/fontbrbr ?php function square($num) { return $num * $num; } echo square(4); // outputs '16'. ? br /body /html When I run the php page, I get Parse error: parse error, unexpected T_RETURN in /var/www/html/afi/sq.php on line 12 I've experimented

Re: [PHP] Function declaration failing on return value

2004-10-04 Thread Matthew Sims
, like so: html headtitleTest function/title/head body bSquare of number/b/fontbrbr ?php function square($num) { return $num * $num; } echo square(4); // outputs '16'. ? br /body /html When I run the php page, I get Parse error: parse error, unexpected T_RETURN in /var

Re: [PHP] Function declaration failing on return value

2004-10-04 Thread Matthew Fonda
bSquare of number/b/fontbrbr ?php function square($num) { return $num * $num; } echo square(4); // outputs '16'. ? br /body /html When I run the php page, I get Parse error: parse error, unexpected T_RETURN in /var/www/html/afi/sq.php on line 12 I've

Re: [PHP] Function declaration failing on return value

2004-10-04 Thread Whil Hentzen
On Monday 04 October 2004 16:43, Matthew Sims wrote: Don't get too excited; this is an awfully lame newbie question. Too late, I'm already excited. Sorry 'bout that. ?php function square($num) { return $num * $num; } echo square(4); // outputs '16'. ? br /body

Re: [PHP] Function declaration failing on return value

2004-10-04 Thread Whil Hentzen
On Monday 04 October 2004 17:00, Matthew Fonda wrote: Howdy, It seems to work just fine for me, perhaps you have a syntax error somewhere else, such as a missing ; or $ or {. Check and make you you have no typo's, it seems to work perfectly for me. I cut this directly out of the online

[PHP] function problem

2004-09-04 Thread Matthias Bauw
I'm having a problem with a php application; I have two files: one is ccadduser wich adds users to a controlcenter that I am currently designing for a website. In that ccaduserfile I call for a function checkpermission(); this function is defined in another file called ccfunctions When a user

[PHP] Function Get Error

2004-09-03 Thread [EMAIL PROTECTED]
I write this function to delete directory and file but when i 've a directory not empty i get error The code that i write is this: function DelDir($dir) { if (!($handle = opendir($dir))) die(Error, it's not possible open $dir); while($file = readdir($handle) !== false) { if

Re: [PHP] Function Get Error

2004-09-03 Thread raditha dissanayake
[EMAIL PROTECTED] wrote: DelDir('my_folder'); I receive this warning: Warning: rmdir(cartella): Directory not empty in c:\programmi\apache group\apache\users\test\project\delete.php on line 23 I have set chmod on linux chmod to 777 but i can delete folder only when is empty. What I do ? Thanks to

[PHP] Function Problem

2004-09-01 Thread Matthias Bauw
I'm having a problem with a php application; I have two files: one is ccadduser wich adds users to a controlcenter that I am currently designing for a website. In that ccaduserfile I call for a function checkpermission(); this function is defined in another file called ccfunctions When a user

Re: [PHP] Function Problem

2004-09-01 Thread Jim Grill
I'm having a problem with a php application; I have two files: one is ccadduser wich adds users to a controlcenter that I am currently designing for a website. In that ccaduserfile I call for a function checkpermission(); this function is defined in another file called ccfunctions When a

Re: [PHP] Function Mail

2004-08-08 Thread John Holmes
Juan Pablo Herrera wrote: I have a cuestion about the features on function mail. I think that it send the email one to one address. Is it ok?. Yes. It is all ok. -- John Holmes php|architect - The magazine for PHP professionals - http://www.phparch.com -- PHP General Mailing List

[PHP] Function Mail

2004-08-07 Thread Juan Pablo Herrera
Hi everybody, I have a cuestion about the features on function mail. I think that it send the email one to one address. Is it ok?. Regards, Juan Pablo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] function similar to to sizeof

2004-08-01 Thread Justin Patrin
serialize() it, then get the size of the string, send it, and deserialize() it on the other side. -Original Message- From: raditha dissanayake [mailto:[EMAIL PROTECTED] Sent: Saturday, July 31, 2004 6:16 PM Cc: [EMAIL PROTECTED] Subject: Re: [PHP] function similar to to sizeof

[PHP] function similar to to sizeof

2004-07-31 Thread bruce
does php have a function similar to the 'C' sizeof function... i'm looking to copy an object, and i'd like to be able to copy it at the binary level but i need to be able to determine the size of the object... any thoughts/comments..??? thanks -bruce -- PHP General Mailing List

Re: [PHP] function similar to to sizeof

2004-07-31 Thread raditha dissanayake
bruce wrote: does php have a function similar to the 'C' sizeof function... yep in PHP 5 but it's just an alias for count. i'm looking to copy an object, and i'd like to be able to copy it at the binary level So how about using the clone feature of PHP5 instead of doing this manually.

RE: [PHP] function similar to to sizeof

2004-07-31 Thread bruce
PROTECTED] Sent: Saturday, July 31, 2004 6:16 PM Cc: [EMAIL PROTECTED] Subject: Re: [PHP] function similar to to sizeof bruce wrote: does php have a function similar to the 'C' sizeof function... yep in PHP 5 but it's just an alias for count. i'm looking to copy an object, and i'd like to be able

[PHP] PHP function speed testing

2004-07-25 Thread Shawn McKenzie
O.K. So I've written my application and debugged it, and now I want to try and optimize the speed. I have written a little test script to test the time of each PHP function that I can use in a certain situation (ereg, eregi, strpos). Problem is, no matter what I do, the first function I

[PHP] Re: PHP function speed testing

2004-07-25 Thread Jason Barnett
Shawn McKenzie wrote: O.K. So I've written my application and debugged it, and now I want to try and optimize the speed. I have written a little test script to test Several profilers / debuggers will help you optimize on speed... by telling you how much time the parser spends inside a

Re: [PHP] PHP function speed testing

2004-07-25 Thread Jason Wong
On Monday 26 July 2004 06:21, Shawn McKenzie wrote: O.K. So I've written my application and debugged it, and now I want to try and optimize the speed. I have written a little test script to test the time of each PHP function that I can use in a certain situation (ereg, eregi, strpos

[PHP] Function with Optional Arguments

2004-07-21 Thread Alex Hogan
Hi All, How do I write a function with optional arguments? Is it possible in php? function myfunc($First, $Second,[$Third, $Fourth]){ some stuff here } alex hogan * The contents of this e-mail

Re: [PHP] Function with Optional Arguments

2004-07-21 Thread Geethanandh Kandasamy
check this link simple example http://perl.about.com/library/weekly/aa121002c.htm On Wed, 21 Jul 2004 13:39:32 -0500, Alex Hogan [EMAIL PROTECTED] wrote: Hi All, How do I write a function with optional arguments? Is it possible in php? function myfunc($First, $Second,[$Third, $Fourth

Re: [PHP] Function with Optional Arguments

2004-07-21 Thread Marek Kilimajer
Alex Hogan wrote: Hi All, How do I write a function with optional arguments? Is it possible in php? function myfunc($First, $Second,[$Third, $Fourth]){ some stuff here } Yes, it's in the manual, I recomend you read it first. function myfunc($First, $Second, $Third = 'third arguments

Re: [PHP] Function with Optional Arguments

2004-07-21 Thread Frank Munch
You can use default arguments: func foo($first, $second=2, $third=3 etc. or look at function func_num_args(... HIH Frank At 01:39 AM 7/22/2004, Alex Hogan wrote: Hi All, How do I write a function with optional arguments? Is it possible in php? function myfunc($First, $Second,[$Third, $Fourth

Re: [PHP] Function with Optional Arguments

2004-07-21 Thread Justin Patrin
On Wed, 21 Jul 2004 13:39:32 -0500, Alex Hogan [EMAIL PROTECTED] wrote: Hi All, How do I write a function with optional arguments? Is it possible in php? function myfunc($First, $Second,[$Third, $Fourth]){ some stuff here } Give them a default value and they become optional

[PHP] Function that creates a class instance with a given name

2004-06-29 Thread Maris
Hi there! I am trying to make a PHP function create_object that would allow me to create a class instance with supplied name Here's the Smarty code snipset I would like to use my function in: {* Let's create a new class object with name car *} {create_object id=$id_car name=car} {* When

Re: [PHP] Function that creates a class instance with a given name

2004-06-29 Thread Justin Patrin
On Tue, 29 Jun 2004 14:16:16 +0300, Maris [EMAIL PROTECTED] wrote: Hi there! I am trying to make a PHP function create_object that would allow me to create a class instance with supplied name Here's the Smarty code snipset I would like to use my function in: {* Let's create a new

[PHP] function for string to array (map)?

2004-06-18 Thread Pete Forman
Is there a standard function that converts a string to an array with proper keys, not auto generated integers? I've found myself calling explode() twice. split(), etc. do not seem to offer any improvement. $str = a:x,b:y,c:z; $arr = explode(,, $str); foreach ($arr as $item) { list($key,

Re: [PHP] function for string to array (map)?

2004-06-18 Thread Dascalu Marius
- Original Message - From: Pete Forman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 17, 2004 7:22 PM Subject: [PHP] function for string to array (map)? Is there a standard function that converts a string to an array with proper keys, not auto generated integers? I've

[PHP] Function Date

2004-06-14 Thread Juan Pablo Herrera
Hi! I am using date(j M Y), the format date is 14 Jun 2004, but i need this format 14 JUN 2004. The unique difference is Jun - JUN. How can i change this?. Thank You, Juan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Function Date

2004-06-14 Thread Sam Masiello
Use the strtoupper function: http://www.php.net/strtoupper HTH! --Sam -Original Message- From: Juan Pablo Herrera [mailto:[EMAIL PROTECTED] Sent: Monday, June 14, 2004 11:05 AM To: [EMAIL PROTECTED] Subject: [PHP] Function Date Hi! I am using date(j M Y), the format date is 14 Jun

Re: [PHP] Function Date

2004-06-14 Thread Dennis Freise
On Mon, 14 Jun 2004 14:04:56 -0300 (ART) Juan Pablo Herrera [EMAIL PROTECTED] wrote: I am using date(j M Y), the format date is 14 Jun 2004, but i need this format 14 JUN 2004. The unique difference is Jun - JUN. How can i change this?. How about strtoupper( date(j M Y) ); ? -- Dennis

Re: [PHP] Function Date

2004-06-14 Thread Daniel Clark
How about. strtoupper( date(j M Y)) I am using date(j M Y), the format date is 14 Jun 2004, but i need this format 14 JUN 2004. The unique difference is Jun - JUN. How can i change this?. Thank You, Juan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Function Date

2004-06-14 Thread Richard Davey
Hello Juan, Monday, June 14, 2004, 6:04:56 PM, you wrote: JPH I am using date(j M Y), the format date is 14 Jun 2004, but i need this JPH format 14 JUN 2004. The unique difference is Jun - JUN. How can i change JPH this?. $date = strtoupper(date('j M Y')); :) Best regards, Richard Davey --

Re: [PHP] Function Date

2004-06-14 Thread Juan Pablo Herrera
Yes! That's right! Thank you Juan Hello Juan, Monday, June 14, 2004, 6:04:56 PM, you wrote: JPH I am using date(j M Y), the format date is 14 Jun 2004, but i need this JPH format 14 JUN 2004. The unique difference is Jun - JUN. How can i change JPH this?. $date = strtoupper(date('j M

[PHP] function imagecreatefromjpeg()

2004-05-12 Thread PHP
Hello, I use the function imagecreatefromjpeg() to create thumbnails of my pictures. This is the code I use : ?php function thumbnail($i,$nw,$p,$nn) { $img=imagecreatefromjpeg($i); $ow=imagesx($img); $oh=imagesy($img); $scale=$nw/$ow; $nh=ceil($oh*$scale); $newimg

Re: [PHP] function imagecreatefromjpeg()

2004-05-12 Thread Petr U.
On Wed, 12 May 2004 10:48:24 +0200 PHP [EMAIL PROTECTED] wrote: [11-May-2004 23:16:15] PHP Warning: imagecreatefromjpeg() [a href='http://www.php.net/function.imagecreatefromjpeg'function.imagecreatef romjpeg/a]: '/home/infos/domalle/miweb/pizias/photodir/6.jpg' is not a valid JPEG file in

Re: [PHP] function imagecreatefromjpeg()

2004-05-12 Thread PHP
I checked to open it with Fireworks and I got an error, but other programs like MS Internet Explorer can open it perfectly. The files on which PHP gives an error are the same as the ones that Fireworks can't open and vice versa. Is there a solution to fix these files, since they are not really

Re: [PHP] function imagecreatefromjpeg()

2004-05-12 Thread Petr U.
On Wed, 12 May 2004 12:08:29 +0200 PHP [EMAIL PROTECTED] wrote: Is there a solution to fix these files, since they are not really corrupt ? I don't know :) -- Petr U. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] function gethostbyname - how can i deactivate cache / force look-up???

2004-05-12 Thread Tobes
Hi there - in a script I use the function gethostbyname to resolve a hostname (www.example.com) into an IP-address. Unfortunately, the host name that I try to resolve changes its IP address frequently. Since the function gethostbyname caches its results, it sooner or later returns a wrong

Re: [PHP] Question about the mail() php function

2004-04-24 Thread Andy B
them what smtp server to use. - Original Message - From: Shawn Inder [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, April 24, 2004 1:02 AM Subject: [PHP] Question about the mail() php function Hello, I was browsing your site and came across the mail() PHP function. I tryed

RE: [PHP] Question about the mail() php function

2004-04-24 Thread Julien Wadin
you've to go in the php.ini and give a smtp server -Message d'origine- De : Shawn Inder [mailto:[EMAIL PROTECTED] Envoyé : samedi 24 avril 2004 6:03 À : [EMAIL PROTECTED] Objet : [PHP] Question about the mail() php function Hello, I was browsing your site and came across the mail() PHP

Re: [PHP] calling php function

2004-04-24 Thread Daniel Clark
Because the Javascript onclick event runs in the client browser, you could call a php file that has and runs a particular php function. Is it possible to call php function in the onclick event ? REgards, Uma -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] calling php function

2004-04-23 Thread T UmaShankari
Hello, Is it possible to call php function in the onclick event ? REgards, Uma -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] calling php function

2004-04-23 Thread John W. Holmes
From: T UmaShankari [EMAIL PROTECTED] Is it possible to call php function in the onclick event ? No. Please do research on the difference between server side and client side code. Report back to us when finished. ---John Holmes... -- PHP General Mailing List (http://www.php.net

[PHP] Re: calling php function

2004-04-23 Thread Aidan Lister
No, you are confusing javascript (client side) with PHP (server side). T Umashankari [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, Is it possible to call php function in the onclick event ? REgards, Uma -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] Question about the mail() php function

2004-04-23 Thread Shawn Inder
Hello, I was browsing your site and came across the mail() PHP function. I tryed it out: ?php mail([EMAIL PROTECTED], My Subject, Line 1\nLine 2\nLine 3); ? [EMAIL PROTECTED] is my e-mail adress, obviously enough.. The problem is, the e-mail doesn't get sent. A warning appears on the page

Re: [PHP] Question about the mail() php function

2004-04-23 Thread Travis Low
paraphrasing here. cheers, Travis Shawn Inder wrote: Hello, I was browsing your site and came across the mail() PHP function. I tryed it out: ?php mail([EMAIL PROTECTED], My Subject, Line 1\nLine 2\nLine 3); ? [EMAIL PROTECTED] is my e-mail adress, obviously enough.. The problem is, the e-mail doesn't

Re: [PHP] Question about the mail() php function

2004-04-23 Thread Richard Harb
. Saturday, April 24, 2004, 7:02:43 AM, thus was written: Hello, I was browsing your site and came across the mail() PHP function. I tryed it out: ?php mail([EMAIL PROTECTED], My Subject, Line 1\nLine 2\nLine 3); ? [EMAIL PROTECTED] is my e-mail adress, obviously enough.. The problem is, the e

[PHP] function for backing up mysql

2004-04-14 Thread Victor Spång Arthursson
Hi! Wonder if anyone knows if there somewhere out there are any good functions that streams out data from mysql as a sql-file, like phpmyadmin does? The best would be one which I told which database and which tables to dump, and which directly stared streaming the data Sincerely Victor --

RE: [PHP] function for backing up mysql

2004-04-14 Thread Hawkes, Richard
PhpMyAdmin (www.phpmyadmin.net) is a great MySQL admin tool, and utilises the MySQL backup functions. Thanks Richard -Original Message- From: Victor Spng Arthursson [mailto:[EMAIL PROTECTED] Sent: 14 April 2004 08:52 To: [EMAIL PROTECTED] Subject: [PHP] function for backing up mysql

Re: [PHP] function for backing up mysql

2004-04-14 Thread Victor Spång Arthursson
2004-04-14 kl. 09.57 skrev Hawkes, Richard: PhpMyAdmin (www.phpmyadmin.net) is a great MySQL admin tool, and utilises the MySQL backup functions. Yes, and it is the same functionability I want. But I want a php-function to implement in various scripts I have, and since I probably aint

Re: [PHP] function for backing up mysql

2004-04-14 Thread Burhan Khalid
Victor Spång Arthursson wrote: 2004-04-14 kl. 09.57 skrev Hawkes, Richard: PhpMyAdmin (www.phpmyadmin.net) is a great MySQL admin tool, and utilises the MySQL backup functions. Yes, and it is the same functionability I want. But I want a php-function to implement in various scripts I

Re: [PHP] function for backing up mysql

2004-04-14 Thread Victor Spång Arthursson
2004-04-14 kl. 11.26 skrev Burhan Khalid: Just redirect the output from mysqldump. mysqldump -u username -ppassword database dump.sql and then send that dump.sql file. Or, you can just read the output from the mysqldump command directly, using output buffering to make sure your script

Re: [PHP] function for backing up mysql

2004-04-14 Thread John W. Holmes
From: Victor Spng Arthursson [EMAIL PROTECTED] Wonder if anyone knows if there somewhere out there are any good functions that streams out data from mysql as a sql-file, like phpmyadmin does? The best would be one which I told which database and which tables to dump, and which directly

Re: [PHP] function for backing up mysql

2004-04-14 Thread Enrico Weigelt
* Victor Spång Arthursson [EMAIL PROTECTED] [2004-04-14 11:55:13 +0200]: snip But? the database is on a hotel to which I have no remote access to mysql? My client want to be able to click a link and get a backup file in return? Is it possible to redirect the output from mysqldump using

[PHP] function imagecreatefromjpeg pb

2004-04-11 Thread Cosas minovela
about GD, Warning: imagecreatefromjpeg(): '/var/www/html/datos/2004/02/crio25.jpg' is not a valid JPEG file. how can i solve it please? image pass the EOF and BOF test, so this is not the problem :)

[PHP] function CreateDate i made doesnt work?

2004-04-06 Thread Andy B
i have the function i made: function CreateDate($day, $month, $year) { if(!empty($day) !empty($month) !empty($year)){ //convert $day, $month, and $year into a valid timestamp $time= strtotime($day, mktime(0,0,0,$month,1,$year)); $time=date(YmdHis, $time); return $time; } else { return false; }}

Re: [PHP] function CreateDate i made doesnt work?

2004-04-06 Thread John W. Holmes
From: Andy B [EMAIL PROTECTED] i have the function i made: function CreateDate($day, $month, $year) { if(!empty($day) !empty($month) !empty($year)){ //convert $day, $month, and $year into a valid timestamp $time= strtotime($day, mktime(0,0,0,$month,1,$year)); $time=date(YmdHis, $time);

Re: [PHP] function CreateDate i made doesnt work?

2004-04-06 Thread Richard Davey
Hello Andy, Tuesday, April 6, 2004, 2:18:45 PM, you wrote: AB i have the function i made: AB function CreateDate($day, $month, $year) { AB if(!empty($day) !empty($month) !empty($year)){ AB //convert $day, $month, and $year into a valid timestamp AB $time= strtotime($day,

Re: [PHP] function CreateDate i made doesnt work?

2004-04-06 Thread Shimi
by the way change ur if alittle.. change the to || John W. Holmes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] From: Andy B [EMAIL PROTECTED] i have the function i made: function CreateDate($day, $month, $year) { if(!empty($day) !empty($month) !empty($year)){ //convert

<    1   2   3   4   5   6   7   8   9   >