Re: [PHP] data move from mssql to mysql via php

2005-10-07 Thread Matt Darby
pump it in but I am not sure if this is the best option so am looking for suggestions Thanks! You can easily do this; you could also cut out the middleman and use the ODBC driver to import/export directly. HTH Matt Darby -- PHP General Mailing List (http://www.php.net/) To unsubs

Re: [PHP] Image resizing...

2005-10-03 Thread Matt Darby
7;t hurt either ;) Matt Darby -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Image resizing...

2005-10-03 Thread Matt Darby
od in your case. HTH! Matt Darby -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PDF Thumbnails

2005-09-29 Thread Matt Darby
I wrote a script for this; it's designed to run from the command line in *nix, but can be triggered via exec(): Usage: ./pdf2thumb.php "source_dir" "out_dir" [code] #!/usr/local/bin/php echo("USAGE: pdf2thumb source_folder_path \n\n"); exit; } if(!isset($argv[1])){usage();} substr($a

Re: [PHP] Fast count of recordset in php...

2005-08-06 Thread Matt Darby
$num=mysql_num_rows($sql); Gustav Wiberg wrote: Hello there! How do i get a fast count of a recordset in php? Look at this code: $sql = "SELECT COUNT(IDVara) cn FROM tbvara WHERE Varunamn LIKE '$checkLev%'"; $querys = mysql_query($sql); //Count products in db // $dbArray =

Re: [PHP] Error Suppression with '@'

2005-08-02 Thread Matt Darby
Bad Idea. A Very Bad Idea actually. If he's just looking to hide error output, he should at least edit php.ini to log to an error file. Otherwise, debugging his code would be horrible. The "@" is total slop. Matt Darby -- PHP General Mailing List (http://www.php.net/) To uns

Re: [PHP] Running a PHP script everyday

2005-07-30 Thread Matt Darby
, you will have to preface your script's path in your cron entry with the location of the PHP binary: 0 1 1,15 * * /path/to/php/binary /root/scripts/System_Dump.php Matt Darby -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Redirect with referer info

2005-07-30 Thread Matt Darby
Dotan Cohen wrote: Hi list, I need to redirerect a page, and send the referer information along with the redirect. I have tried: header("Location: $url"); and print""; Both of them redirect as expected, but the browser (Firefox and Opera) do not send referer information along with the request.

Re: [PHP] is it possible.

2005-07-29 Thread Matt Darby
lag in the database that this link is no longer valid, and redirect the user's browser to the file (check out the "header" function). The link in the email will only be valid once (or as many times as you allow). You could even tie this in with a login/password form. HTH! Matt D

Re: [PHP] How would you create a tracking pixel?

2005-07-25 Thread Matt Darby
A blank (transparent) pixel would be more difficult, but a simple colored pixel would be easy: In target file: pixel.php I guess this begs the question, why not use session variables to track activity?? Matt Darby Brian Dunning wrote: I want to create a pixel that can be used to track

Re: [PHP] Prepopulating form fields afer an error

2005-07-25 Thread Matt Darby
$_REQUEST['user']==$curr_user?$select="selected":$select=""; echo("$curr_user Jack Jackson wrote: Hi, I have a form and it does basic error checking after submission; when the user omits required fields it kicks back the form with highlighted errors telling them the error of their ways

Re: [PHP] Konqueror does not like my Website

2005-07-22 Thread Matt Darby
The easiest way to fix this is to validate your output. Konqueror is likely more picky about correct code. Here is validator output: http://validator.w3.org/check?uri=http%3A%2F%2Fmichelle.konzack.home.tamay-dogan.homelinux.net%2Ftdlandmap%2F Michelle Konzack wrote: Hello *, I an developing

Re: [PHP] Affiliate Tracking [Management] program

2005-07-22 Thread Matt Darby
Eugene Voznesensky wrote: I' looking for free PHP/MySQL Affiliate Tracking [Management] program. Would appreciate any advice/idea fd. Have you looked over sourceforge.net? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Rate to charge

2005-07-21 Thread Matt Darby
ideas on how to charge would be great. Thanks I charge $50/hr. Be very careful when you specify a timeline, it will always take at least 10-25% more than you estimate! It's better to over estimate and complete earlier. At least it makes you look good ;) Good Luck! Matt Darby -- PHP Ge

Re: [PHP] PHP and MySQL and resouce limits

2005-07-20 Thread Matt Darby
correct? This happens to me sometimes if the query is rather crazy... Matt Darby -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] redirecting some values from one page to other in php

2005-07-20 Thread Matt Darby
http://uk.php.net/manual/en/ref.session.php Mikey So long as you call session_start(); at the very top of your scripts, sessions will work. session.auto_start is fine if your entire site will be using sessions. Matt Darby

Re: [PHP] redirecting some values from one page to other in php

2005-07-20 Thread Matt Darby
babu wrote: It will become a big mess up for me if i combine all the files as they are large files. Matt Darby <[EMAIL PROTECTED]> wrote: babu wrote: I am using header method for redirecting to another php file.I also want to pass some variables to the redirected file. for e

Re: [PHP] My Project

2005-07-20 Thread Matt Darby
It *is* a great book (I cut my teeth with it as well): PHP and MySQL Development (Welling and Thomson) http://www.amazon.com/exec/obidos/tg/detail/-/0672326728/qid=1121869940/sr=8-1/ref=pd_bbs_1/002-5827183-4477639?v=glance&s=books&n=507846 Read it, learn it, live it. Matt Darby Jay B

Re: [PHP] My Project

2005-07-19 Thread Matt Darby
George B wrote: Jay Blanchard wrote: [snip] $money -= 10; saves some chars ;) [/snip] This actually requires two trips to the database, once to get $money and once to update $money. Do it in the query instead...once. $sqlUpdate = "UPDATE `myDatabase`.`myTable` SET `myMoney` = (`myMoney`

Re: [PHP] Re: Need help with PHP / MySQL connect problem

2005-07-17 Thread Matt Darby
You should definitely see a listing for MySQL in phpinfo()... What order did you install MySQL/PHP/Apache? Linda H wrote: I added the following to the top of my script: Got all sorts of environment and path info. Not anything about MySQL, but I didn't see anything that looked obviously wron

Re: [PHP] Re: Need help with PHP / MySQL connect problem

2005-07-17 Thread Matt Darby
nings turned off in php.ini: Find php.ini (not sure where it installs to in Windows version), and set error_reporting = E_ALL. This will show all notices and warnings generated by your PHP code; extremely usefull in debugging. Matt Darby Linda H wrote: I'm running MySQL 4.0.21, Apache 2

Re: [PHP] Need help with PHP / MySQL connect problem

2005-07-17 Thread Matt Darby
p.ini: Find php.ini (not sure where it installs to in Windows version), and set error_reporting = E_ALL. This will show all notices and warnings generated by your PHP code; extremely usefull in debugging. Matt Darby Linda H wrote: Hi, I'm running MySQL 4.0.21, Apache 2.0.52 and PHP 5.

Re: [PHP] Copy Remote File to Local Server

2005-07-15 Thread Matt Darby
Wouldn't something like rsync be better suited for this? I only ask because I've run something like this before... Matt Darby Richard Davey wrote: Hello Matt, Saturday, July 16, 2005, 3:04:29 AM, you wrote: MP> I am writing a script that will read a file from a remote server

Re: [PHP] Tired and feeling dumb...maths question....

2005-07-14 Thread Matt Darby
$average = round(($votes/$pts),2); ;) Ryan A wrote: people vote on a scale of 1-5, so the average should be between 1-5 (right?? am not even sure of this!) Yes. I was thinking of rounding it with a 2 decimal point...eg: round(5.045, 2) Just need to solve this and them am hittin

Re: [PHP] Refresh

2005-07-14 Thread Matt Darby
Put this between the page's tags: http://somesite_to_refresh_to";> The "1" in the above line controls the time to refresh; the higher the number, the longer to refresh. Matt Darby Miguel Guirao wrote: Hello people, I need to have a web page (PHP) that displays

[PHP] Echo array string index?

2005-07-13 Thread Matt Darby
I have an array setup as such: *$arr['generated text']='generated number';* What would be the best way to echo the key in a loop? Seems pretty easy but I've never attempted... Thanks all! Matt Darby