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
7;t hurt either ;)
Matt Darby
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
od in your case.
HTH!
Matt Darby
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
$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 =
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
, 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
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.
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
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
$_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
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
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
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
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
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
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
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
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`
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
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
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.
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
$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
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
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
26 matches
Mail list logo