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
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
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
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 =
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
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
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
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'].\;
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];
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
--
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
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
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;
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
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
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
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
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])
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:
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
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
[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?
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
[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
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
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
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? |
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
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
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
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:
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
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=,
'$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
* 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
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;
}
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
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
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 *
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
/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
, 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
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
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
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
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
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
[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
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
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
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,
- 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
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
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
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
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:
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
--
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
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
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
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
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
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
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
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
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
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
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
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
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
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
.
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
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
--
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
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
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
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
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
* 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
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 :)
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; }}
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);
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,
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
301 - 400 of 830 matches
Mail list logo