Google "php4 to php5 converter" or "php4 to php5 conversion"
That should set you on your way.
The best way I have read to do this is just run your code on a php5
server and build in php error detection of some kind, then just fix
the errors as they come.
:)
Best,
Karl
On Jun 3, 2011, at 6
--
From: "Richard Quadling"
Sent: Friday, June 03, 2011 7:26 PM
To: "Dr Vijay Kumar"
Cc:
Subject: Re: [PHP-DB] Converting from PHP4 to php5
On 1 June 2011 13:52, Dr Vijay Kumar wrote:
i AM WONDERING IF SOMEONE CAN TAKE
--
From: "Richard Quadling"
Sent: Friday, June 03, 2011 7:26 PM
To: "Dr Vijay Kumar"
Cc:
Subject: Re: [PHP-DB] Converting from PHP4 to php5
On 1 June 2011 13:52, Dr Vijay Kumar wrote:
i AM WONDERING IF SOMEONE CAN TAKE
On 1 June 2011 13:52, Dr Vijay Kumar wrote:
> i AM WONDERING IF SOMEONE CAN TAKE UP CONVERSION OF MY SOFTWARE FROM PHP4 TO
> PHP5
Whilst there will be many aspects of the code that will run quite
happily, there are several features that have been deprecated and/or
removed, depending upon the vers
Richard & I are waiting for an answer from someone..???
--
*Best,
*
*Guru™*
On 1 June 2011 14:26, HallMarc Websites wrote:
> Without looking at the rules (Sry barely have time to reply!) I don't think
> this is appropriate for this list. I am fairly certain it is against the
> rules to ask/offer work on here.
> Can anyone confirm or deny?
>
> Thank you,
> Marc Hall
> Hall
> i AM WONDERING IF SOMEONE CAN TAKE UP CONVERSION OF MY
> SOFTWARE FROM PHP4 TO
> PHP5
>
Without looking at the rules (Sry barely have time to reply!) I don't think
this is appropriate for this list. I am fairly certain it is against the
rules to ask/offer work on here.
Can anyone confirm or den
I am not a master but as per my knowledge your software which is in PHP4
should work properly in PHP5 too.
--
*Best,
*
*Guru™*
Jorge,
If you have downloaded FPDF you will se that it comes with a couple of
examples that you can use to learn.
Miguel Guirao
-Original Message-
From: Jorge Giménez [mailto:[EMAIL PROTECTED]
Sent: Viernes, 27 de Octubre de 2006 04:49 p.m.
To: php-db@lists.php.net
Subject: [PHP-DB] Co
www.fpdf.org has a free class / tutorial
bastien
From: Jorge Giménez <[EMAIL PROTECTED]>
To:
Subject: [PHP-DB] Converting text field to barcode CODE 39
Date: Fri, 27 Oct 2006 23:49:22 +0200
Hello.
Can anyone tell me where I can find information or examples about printing
on screen or in
de Junio de 2006 06:04 p.m.
To: [EMAIL PROTECTED]
Cc: Php-Db
Subject: Re: [PHP-DB] Converting to Decimal
Mark Bomgardner wrote:
I am query a database and pulling some decimal values out of the table,
but when I display whole numbers in php, it drops the decimal places.
It takes a value of 12.00
You could actually do (int) $var or use the sprintf(%d, $var);
-Original Message-
From: John Meyer [mailto:[EMAIL PROTECTED]
Sent: Miércoles, 28 de Junio de 2006 06:04 p.m.
To: [EMAIL PROTECTED]
Cc: Php-Db
Subject: Re: [PHP-DB] Converting to Decimal
Mark Bomgardner wrote:
> I am qu
$val = number_format($row['val'],2);
Bastien
From: Mark Bomgardner <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: Php-Db
Subject: [PHP-DB] Converting to Decimal
Date: Wed, 28 Jun 2006 17:20:21 -0500
I am query a database and pulling some decimal values out of the table, but
when I disp
Mark Bomgardner wrote:
I am query a database and pulling some decimal values out of the table,
but when I display whole numbers in php, it drops the decimal places.
It takes a value of 12.00 in the database and makes it 12, where I need
12.00. I am having trouble finding ways to "cast" this val
Whoops misunderstood the other one
$month = Date("m",strtotime($month));
Another option is to use an array and then invert it to get the value
$month="Jun";
$Months = array("Jan","Feb","Mar"..."Dec");
$Inv_Month = array_flip($Months);
$month_num = $Inv_Month($month);
bastien
From: "Ron Pigg
Ron Piggott wrote:
I have the word for the month stored in the variable $month In this
example $month may be equal to "June". I wonder if there is a way to use
the DATE function to convert this into a numberical expression --- in this
example 06 Ron
Indeed there is: strtotime
See http:
Yes, my apologies to the list!
Stuart
--- David Robley <[EMAIL PROTECTED]> wrote:
> May I suggest that as well as echoing mysql_error()
> you also echo your
> query; that way you can see _exactly_ what is being
> passed to mysql and you
> can resolve problems like this simply and without
> resor
On Fri, 15 Oct 2004 17:26, Stuart Felenstein wrote:
> See below:
> --- John Holmes <[EMAIL PROTECTED]> wrote:
>
>> Are you sure it's the date that's causing the
>> rejection? What does
>> mysql_error() say?
>
> No, I'm not sure. At first the date was being
> accepted but "wrong" in the database
See below:
--- John Holmes <[EMAIL PROTECTED]> wrote:
> Are you sure it's the date that's causing the
> rejection? What does
> mysql_error() say?
No, I'm not sure. At first the date was being
accepted but "wrong" in the database. It was setting
it to 1/1/2000. Someone suggested I add '' aroun
Stuart Felenstein wrote:
I have one of those widget calendars.
Mysql keeps throwing back the date regardless of the
way I format it.
I'm passing session variables over to the database and
have tried quotes ' around the date as well.
Now I went ahead and changed this line:
$_SESSION['f3k'] = $
did you look to see what the data format was? many of these calendars fill
in american dates (mm-dd-) and mysql prefers (-mm-dd)check to
see what the format is before you assign it to the session id...
bastien
From: Stuart Felenstein <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject:
If you have already have a number of scripts and, especially, if you are doing
things with the variables inside the script (in other words, the variables
appear more than once), it can be more convenient to convert at the top of
each page, eg:
$id = $_REQUEST['id'];
$this = $_REQUEST['this'];
$
From: "Kim Jacobs (Crooks) - Mweb" <[EMAIL PROTECTED]>
> I have written some scripts to access my online
> SQL db and I've tested the scripts on my machine
> with PHP 4.3.6 and register_globals = On
> Now where I host my site, uses PHP 4.3.5 and has
> register_globals = Off which means of course,
nt to design a page so that it can be called
indifferently by POST or GET.
Just my 2 Belgian francs.
Ignatius
_
- Original Message -
From: "Mikael Grön" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 29, 2004 12:42 PM
Subject:
ot;Kim Jacobs (Crooks) - Mweb" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Thursday, April 29, 2004 11:54 AM
Subject: Re: [PHP-DB] converting scripts for register_globals=Off
What register_globals does (Please correct me if I'm wrong) is convert
i.e. $_POST['variable_
Hi
There are three main types of data passed by the browser - GET POST and
COOKIE.
php creates an array for each type, so what is $id now would also be
$_GET["id"] or $_POST["id"]
There is also $_REQUEST which is a combination of $_GET and $_POST so
$_REQUEST["id"] will also work.
If it were a
- Mweb" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, April 29, 2004 11:54 AM
Subject: Re: [PHP-DB] converting scripts for register_globals=Off
What register_globals does (Please correct me if I'm wrong) is convert
i.e. $_POST['variable_name'], $_GET[
What register_globals does (Please correct me if I'm wrong) is convert
i.e. $_POST['variable_name'], $_GET['variable_name'] and so on to
$variable_name. which isn't very good from my point of view.
I suggest you make sure you use $_GET['your_variable'] when ever you're
fetching a GET variable,
You shouldn't have a semicolon at the end of your class declaration/closing
bracket. Also, I'm not sure if it would cause a problem, but try using standard
file extensions instead of things like .cls. Lastly, just for sake of
readability, you might want to simplify your naming scheme; this was a
> I need help. I need to convert a Date column in MySQL where the date
is
> stored like "2003-01-15" to the following seconds "1042621252 ".
SELECT TO_UNIXTIME(date_column) AS formatted_column FROM yourtable WHERE
...
The TO_UNIXTIME() function will convert the date to the format you need
that
hi,
all
you have to do is to extract values from the database with a query.
i suppose you know...
after that you have to do all you have done till now except the dropdown toolbox(that
is called actually a listbox).
for the list box you have to write like this:
$records_returned[$i].';
?>
so th
Simple solution, if you only have one or two tables: dump them in comma
delimited format and then use the LOAD command from the MySQL shell
frontend.
Alternative: use the MySQL ODBC component and export from access to that
(it works like a charm if you use the latest version).
Either way should m
Mauch" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 29, 2002 9:27 PM
Subject: Re: [PHP-DB] Converting database from MS Access to MySQL on Linux
> Matthew Hildebrand <[EMAIL PROTECTED]> wrote:
>
> > http://www.devhood.com/Tools/tool_details.a
Matthew Hildebrand <[EMAIL PROTECTED]> wrote:
> http://www.devhood.com/Tools/tool_details.aspx?tool_id=759
> I've been very happy with this tool, and it is well worth the cost.
If you are the author of the tool, you want perhaps add a note that "the
tool" can convert _from_ Access _to_ MySQL on L
Sent: Tuesday, October 29, 2002 10:14 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP-DB] Converting database from MS Access to MySQL on
Linux
Oops... my mistake. I gave the wrong link. Here's the correct link:
http://www.devhood.com/Tools/tool_details.aspx?tool_id=758
--Matthew
-Origin
bject: Re: [PHP-DB] Converting database from MS Access to MySQL on
Linux
He wants Access to MySQL, not MySQL to Access...unless the tool does
both?
John
- Original Message -
From: "Matthew Hildebrand" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, Octobe
http://www.devhood.com/Tools/tool_details.aspx?tool_id=759
I've been very happy with this tool, and it is well worth the cost.
--Matthew
-Original Message-
From: Soma Shekhar K [mailto:somashekhark@;yahoo.com]
Sent: Tuesday, October 29, 2002 6:11 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTEC
> Can u pls help in "Converting database from MS Access
> to MySQL on Linux". Pls send the code for converting.
http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=Converting+database+f
rom+MS+Access+to+MySQL+on+Linux
---John Holmes...
--
PHP Database Mailing List (http://www.php.net/)
To u
Hi Matt,
I think this might be the answer to your problem. It basically checks if
the string is an integer. I generally love the PHP automatic type
conversion, but sometimes it can trick ya :)
if (intval($val) == $val){
// integer stuff
} else {
// string stuff
}
Adam
> H
sweet-as
Russ
-Original Message-
From: Matthew Nock [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 21, 2002 1:15 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP-DB] Converting values from text to numerical
Hi Russ,
thanks for the reply ... if that will evaluate whether a (in this case
[mailto:[EMAIL PROTECTED]]
Sent: Friday, 21 June 2002 3:04 PM
To: Matthew Nock; [EMAIL PROTECTED]
Subject: RE: [PHP-DB] Converting values from text to numerical
Matthew:
um how about using the is_int() function to decide if the value from
your DB is a number or not?
http://www.php.net/manual
th it..";
}
else
{
echo "This aint a number so it must be a string, so do stringy
things with it...";
}
Any good?
Russ
-Original Message-
From: Matthew Nock [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 21, 2002 1:00 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP-DB] Co
alculation) then display the result, otherwise, just display the
text.
-Original Message-
From: Russ [mailto:[EMAIL PROTECTED]]
Sent: Friday, 21 June 2002 2:53 PM
To: Matthew Nock; [EMAIL PROTECTED]
Subject: RE: [PHP-DB] Converting values from text to numerical
"is it possible to
"is it possible to have PHP covert numbers that are stored as text
strings
back into values it can calculate with?"
Mathew:
You can use PHP to convert these - dependant upon the way you store them
in your DB.
Foe example I sometimes need to store different types of data in the
same field (I supp
update some table set some_field='X' where ((some_field IS NULL) OR (some_field!=""));
HTH
Andrey
- Original Message -
From: "Natividad Castro" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 12, 2002 2:47 PM
Subject: [PHP-DB] converting
> Hi to all,
> I'm having a lot
On Friday 08 February 2002 00:14, Raquel Rice wrote:
> On Thu, 7 Feb 2002 17:07:35 +0100
>
> Andy "Andy" <[EMAIL PROTECTED]> wrote:
> > Hi there,
> >
> > I have a tabel with 250 entries showing a country code lik "CA"
> >
> > Now my application does not work on linux, because they have to be
> > i
strtolower()
-Original Message-
From: Andy [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 07, 2002 8:08 AM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] Converting upper case letters to lower case because of
db??
Hi there,
I have a tabel with 250 entries showing a country code lik "CA"
Andy,
You can do it with PHP's strtolower() function..
See:
http://www.php.net/manual/en/function.strtolower.php
Gurhan
-Original Message-
From: Andy [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 07, 2002 11:08 AM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] Converting upper case lett
On Thu, 7 Feb 2002 17:07:35 +0100
Andy "Andy" <[EMAIL PROTECTED]> wrote:
> Hi there,
>
> I have a tabel with 250 entries showing a country code lik "CA"
>
> Now my application does not work on linux, because they have to be
> in lower
> case.
>
> Can I make anyhow an bufix, or even better crea
$var_array = explode("#", "student#name#address#college#etc... #...#");
// -Original Message-
// From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
// Sent: Tuesday, 18 December 2001 3:07 PM
// To: [EMAIL PROTECTED]
// Subject: [PHP-DB] converting extracted variables to arrays
//
//
/
Ok, the answer was staring me in the face. I have it all figured out now.
Thanks for the help.
- Original Message -
From: "Mark C. Farrington" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 29, 2001 11:59 AM
Subject: Re: [PHP-DB] Converting My
unit_name.
> I see how the code snippet creates the dropdown box but I'm still fuzzy on
> how to pass the query results.
>
> - Original Message -
> From: "Richard Hillström (GIS)" <[EMAIL PROTECTED]>
> To: "'Mark C. Farrington'" <[E
wn box but I'm still fuzzy on
how to pass the query results.
- Original Message -
From: "Richard Hillström (GIS)" <[EMAIL PROTECTED]>
To: "'Mark C. Farrington'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, November 29, 2001 9:
- Original Message -
From: "Richard Hillström (GIS)" <[EMAIL PROTECTED]>
To: "'Mark C. Farrington'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, November 29, 2001 9:31 AM
Subject: RE: [PHP-DB] Converting MySOL query resul
I solved it like this:
echo "";
while($row = sybase_fetch_array($dbresult)) {
$r0 = $row[0];
echo "$r0";
}
echo "";
//Richard
-Original Message-
From: Mark C. Farrington [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 29, 2001 3:25 PM
Ah, the join function...I see implode() will also perform the same task.
That was what I needed to do.
Thanks!
Zach
-Original Message-
From: matt stewart [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 16, 2001 9:06 AM
To: 'Zach Curtis'; [EMAIL PROTECTED]
Subject: R
put them into an array
$date_stuff[0] = $date_year;
$date_stuff[1] = $date_month;
$date_stuff[2] = "01";
$date_to_enter = join('-',$date_stuff);
then whack $date_to_enter into your database - obviously if the input to
$date_month is "
doh! ofcourse...
that actually works.
Thanks a bunch :)
/Christian
-Original Message-
From: Gonzalez, Lorenzo [mailto:[EMAIL PROTECTED]]
Sent: 15. november 2001 16:11
To: Christian Sandfeld; [EMAIL PROTECTED]
Subject: RE: [PHP-DB] Converting "text" fields to "integer&q
PROTECTED]
Cc:
Subject: RE: [PHP-DB] Converting "text" fields to "integer" in
queries with ODBC connection to an MS Access file
Lorenzo,
That was a good suggestion (had forgotten about the between
function)
01 14:57
To: Christian Sandfeld; [EMAIL PROTECTED]
Subject: RE: [PHP-DB] Converting "text" fields to "integer" in queries
with ODBC connection to an MS Access file
Some of the databases I work with would support this as 'between' on two
text fields that are sortable a
Some of the databases I work with would support this as 'between' on two
text fields that are sortable alphabetically - I'd give that a try.
-Lorenzo
-Original Message-
From: Christian Sandfeld
Sent: Thu 11/15/2001 7:55 AM
To: '[EMAIL PROTECTED
The best tool is MS Access. It has an export facility to ODBC data source.
Export to a MySQL odbc dsn.
Regards, John
"Taylor "Cody" Fletcher" <[EMAIL PROTECTED]> wrote in message
001401c11098$25cf98c0$[EMAIL PROTECTED]">news:001401c11098$25cf98c0$[EMAIL PROTECTED]...
> yeah, cut and paste, jk, i
You can use ODBC to go from Access to MySQL. Get the MyODBC driver for
Windows and setup your datasource so you can get to it via Access. You can
do a direct export from Access to the MySQL database that way. There may be
some differences, but I'm not sure of what all of them would be.
Hope th
yeah, cut and paste, jk, im curious too
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 19, 2001 2:15 PM
Subject: [PHP-DB] Converting MS Access to MySQL
> Can anyone suggest a good utility for converting database from MS Access
to MySQL?
> Tha
Hey Ali,
... if you own a MS-SQL-Server, you could use the import/export-tool.
The Data-Architect from PowerSoft (?? - PowerBuilder) can make it, too.
Or you write a little php-skript which does the job for you, not much
work i think.
Hope this helps.
Greetinx,
Mike
Michael Rudel
- Web-Dev
65 matches
Mail list logo