any one see why this wouldnt work?
";
$subject = "*www.test.com*";
$date = getdate(time());
$date = sprintf("%s %s %s %s:%s:%s",
$date["mday"],$date["month"],$date["year"],$date["hours"],$date["minutes"],$date["seconds"]);
$from = sprintf("s s", $HTTP_POST_VARS["Name"], <$HTT
; On Friday 10 January 2003 00:57, travis wrote:
> > any one see why this wouldnt work?
>
> Why don't you tell us _how_ it doesn't work?
>
> [snip]
>
>
> --
> Jason Wong -> Gremlins Associates -> www.gremlins.biz
> Open Source Software Systems Integra
-\n\n";
$Body .= "$M\n\n";
$Body .=
"---\n\n";
$Body .= " $H\n";
$Body .= " $A\n";
$Body .= " $UA\n";
mail($To, $Subject, $Header, $Body);
//echo "&
just a quick syntax question: here is my php
\n";
$openingEntry = "
if done twice it returns this:
http://www.me.com/>
http://www.me.com/>
i want it to display as follows:
http://www.me.com/";>
http://www.me.com/";>
now it is writing to the file I want perfectlybut but but I
parses and loads the xml
file seperately
"Travis" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
just a quick syntax question: here is my php
\n";
$openingEntry = "
if done twice it returns this:
http://www.me.com/>
http:
this is a long one so bear with me...
my current php script
*
\n";
$openingEntry = ' \n";
$closingItemTag = "\n";
$Entry=
$openingEntry.$numberAtt.$myNumber.$nameAtt.$myName.$dateAtt.$myDate.
$messageAtt.$myMessage. $linkAtt.$myLink.$closingEntry;
$Item = $openingItemT
e";
}
?>
i have an xml file with the following,
I want to add an entry like this:
any ideas? i think i am ont he right track, short of splitting the contents
into arrays.Id rather deal with it in strings help?
thanx
travis
--
PHP General Mailing List (http:
If its a Win box there is a sendmail_from config param in php.ini.
php.net/manual/function.mail.php read for 'Additional Params' the fifth
argument, it specifically deals with this case.
Travis
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ysql_password');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
Travis Doherty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
This is a widespread problem. One which we faced, and eventually solved by
deciding to just write the application in .NET instead.
Some links that may be helpful...
This link deals with problems trying to use PHP's built-in function
"odbc_connect" on a Linux box:
http://forums.devshed.com/t37357/s
it.
<>
Thank you,
Travis Trout
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
if ($sort == "lname" || $sort == "dept"){
printf("%s, %s
%s
%s
%s
%s
%s
\n", $myrow[2], $myrow[3], $myrow[4], $myrow[5], $myrow[6],
$myrow[7], $myrow[1]);
} else {
printf("%s %s
%s
%s
%s
%s
%s
\n", $my
sending the information to the remote server?
Travis Trout
-Original Message-
From: Adrian Murphy [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 10:48 AM
To: Dan McCullough; PHP General List
Subject: Re: [PHP] A quick question - Help Please !
to do it with javascript u could
Travis Trout
Production Support
Mobile Register
Phone: (251) 219-5263
Email: [EMAIL PROTECTED]
Address: 401 N Water St.
Mobile, AL 36602
Hey,
I am just wondering if there were any changes done to the session
"engine" or settings between PHP 4.0.6 and 4.1.1.
I have been getting nothing but grief from 4.0.6 and 4.1.1 seems to work
fine.
Any help would be MUCH appreciated.
Thanks,
-Travis
Oh, if this isn't the rig
is maxing out with a certain number of SESSION variables. Once
it has so many, it just starts over.
I will just post the link here tomorrow, unfortunately I don't have the
files on this computer.
I hope this is a little more clear.
Thanks,
-Travis
-Original Message-
From: Yasu
lly
works ;) I figured it would set the variable $key to the value of
$value. But it didn't. It created a new variable. Naming it the value of
$key. And giving that new variable the value of $value.
Does this confuse anybody else?? ;)
Thanks for all your help,
-Travis
-Original Message--
Ok I have the same problem but this isnt working.
The first line of my sript is #!/usr/local/php -q , BTW this isnt in the brackets, but should it be?
then I use lynx -dump -http://localhost/show_reminder.php
in the crontab, but the mailer demon gives me the message
your terminal lacks the abil
Another way to make money on free software is consulting. Many organizations
don't have the time, resources, or interest in adapting free software for their
needs.
cheers,
Travis
Manuel Lemos wrote:
Hello,
"Rubem Pechansky" <[EMAIL PROTECTED]> wrote in message.
o security aspects of it.
Given the nature of the project, I realise security is a must. My question
is: what recommended reading for security or ecommerce can any of you
suggest?
--
Thanks,
Travis Moore
tra...@live.com OR trabus2...@gmail.com
--
PHP General Mailing List (http://www.ph
ime to look into a different language to
do whatever it is you want to do, something like Visual Basic might suit
you well (last time I used it there was a control that would popup the
standard windows 'Select Folder' dialog.)
Travis Doherty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
don't see why someone wouldn't just use http://php.net/wordwrap/ .
Travis Doherty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Børge Holen wrote:
>On Wednesday 24 January 2007 07:32, Travis Doherty wrote:
>
>
>>Aslam Bari wrote:
>>
>>
>>>Dear All,
>>>I m new in this Forum. I m making a project in which i need to show user a
>>>Browse Folder Dialog Box, In wh
Aslam Bari wrote:
>Hello,
>Just a minute. I know the php script will run on server. Suppose i m working
>on server machine and i need to make a project for myself. The machine is
>only one and same. Also there are a lot of file and directory methods
>available in PHP, Whats that? Actually i want t
Hello.
Came across some code that startled me. Mostly because it goes against
the generally accepted idea of detecting and rejecting bad input instead
of trying to escape it, secondly because "it just feels wrong."
The only technical case I have so far is for inserting a double/single
quote into
.. I'm really not sure if
PHP's functions will take care of moving that username/password
information into the header of the HTTP request or just leave it there.
Travis Doherty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ossible that your OS has a cron job running that clears out that
directory, especially if these complaints are usually around midnight
when these types of jobs typically run.
Travis Doherty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
r as a cookie (unless its in the URL...)
www.php.net/session/
Take a look at cookie_lifetime and you might like the cache_expire docs
on the same page too.
Travis Doherty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
oring sensitive
data in _SESSION. Anyone local to the system can probably read
plaintext session data from the session cache.
HTTPS only protects communications between the client and the server at
best, do be afraid!
Travis Doherty
--
PHP General Mailing List (http://www.php.net/)
To unsubscri
han a string (such as int) than you're
>safe and you don't have to use htmlentities.
>
>
>
Good call. One better is prepared statements. Avoid the problem all
together.
Travis Doherty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Juergen Wind wrote:
>Travis Doherty wrote:
>
>
>>By default the session cookie expires when the browseris closed.
>>
>>
>this is not always true: f.e. FF requires *all* open windows to be closed to
>forget that session.
>
>
Personally I think th
op is fastest.
Note that the while loop with a post-increment runs once more than with
a pre-increment.
Everytime I run, the results are *very* different, though still fall
within similar comparitive domains.
Travis Doherty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
and was probably choke full of security problems.
Setting up ProFTPd for MySQL authentication was a pain, I'm sure its
easier today. Once you have that setup, its just a simple matter of
CRUD SQL queries.
Travis Doherty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
mated_date > (current_date + 14)
>
> etc. Which functions are best suited for such calculations?
>
> O. Wyss
>
www.php.net/strtotime is probably a good start.
Travis Doherty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
>
> Tijnema
Taking the Zend ZCE exam puts you under a strict NDA. Nobody can tell
you what you will see on the exam.
Study the exam guide and if design patterns really interest you then
take it to the next level out of personal interest. Since patterns are
not "PHP-only" you can
.
- Profile your code and find the right places to optimize.
Optimizing code that takes .0001 seconds to run down to .1 seconds
is great, 10x improvement! Who cares. Find the chunk that takes 0.5
seconds to run and optimize that to 0.05 seconds. 10x improvement still,
except that this time it actu
Jason Pruim wrote:
> Hi Everyone,
>
> First off, I'm using PHP 5.2.0 and apache 1.3.33
>
> I am trying to figure out what format a string is in in a database.
> It's a timecard system that I have found on-line and I am attempting
> to figure out how to write a script that would give me everyones
)
>>
>>
>>
>>
>>
>
>what does strtotime return for that string?
>
>
>
It's already a time, strtotime should return FALSE. It probably can't
parse that string to a time.
Travis D
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ree - I agree with "you should migrate to PHP5 *NOW*"
(my emphasis added) and I disagree with "then it's not really needed to
upgrade." (unless you don't care about security.)
Ilia Alshanetsky gave a great talk on this topic recently,
http://ilia.ws/talks/ scroll to the bottom to "(PDF) Migrating to PHP
5.2.1".
Travis Doherty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
will be dropped at the end of the year, 8 months from
now. So now is the time to start upgrading all your scripts as we won't
be releasing new versions after December 31st, 2007."
http://derickrethans.nl/php_quebec_conference_rip_php_4.php
Travis Doherty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Myron Turner wrote:
> Travis Doherty wrote:
>
>>>
>>
>> What about the argument that PHP4 is dead. It's done. It's over.
>> There is no reason anyone should be using it, less perhaps a lack of
>> time to tweak scripts for an upgrade from 4 t
ng the adoption rates of PHP5 show what
Rob said.
http://www.nexen.net/chiffres_cles/phpversion/16814-php_stats_evolution_for_march_2007.php
I'm sure many of the polled domains are shared hosts, who have users,
which exponentially complicates the task of migration.
Travis Doherty
--
PHP G
nsible for their card numbers being stolen.
Travis Doherty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
whatever info you want into the 'unused' or
'less used' bytes of the image.
With this in mind I imagine even if you did have an image repository of
only 8 images you could add some random bytes to the right spots in the
image without distorting it beyond recognition/corrupting it, and
therefore get a hybrid of static/on-the-fly images, that hashing
couldn't break so simply.
2 cents...
Travis Doherty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
its defined constant
DBVERSION matches that of the database it is running against. This has
actually helped out more than once, though not a solution to the actual
problem.
Travis Doherty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Okay, so what I have is a BB code type of thing for a CMS, which I for
obvious reasons can't allow HTML.
Here's the snippet of my function:
function bbCode($str)
{
$db = new _Mysql;
$strOld = $str;
$strNew = $str;
$getRegexs = $db->query("SELECT `regex`,`replace`,`search` FROM
Can you point me to a link showing usage of PHP, Java, ASP, etc.? I've been
looking at netcraft.com, but I'm not seeing it. Thanks!
Travis
Jeffrey Tavares wrote:
netcraft shows how many servers have php, but nothing specific about
versions. Maybe I'm wrong, but I checked all
Millions WorldWide...
http://search.jobsgrabber.com
--
Travis Low
<mailto:[EMAIL PROTECTED]>
<http://www.dawnstar.com>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
, while still leaving the HTML human-readable (newlines are intact).
cheers,
Travis
Arthur Radulescu wrote:
What I meant was that it is obiously that eliminating the spaces but not by
a blind replacement, the new lines characters and even the tabs will reduce
the size of the page which will result
TO GET THEIR ACT TOGETHER AND FIX THE SYSTEM SO THAT WE
C*A*N* UNSBSCRIBE !
I just unsubscribed and re-subscribed, no problems at all.
Did I miss anything? :-)
cheers,
Travis
--
Travis Low
<mailto:[EMAIL PROTECTED]>
<http://www.dawnstar.com>
--
PH
Sorry, the new window is part of the same session. You'll have to find some
other way to distinguish between the two windows.
cheers,
Travis
Bob Bruce - Programmer wrote:
This is my first posting to this group, so I am not familiar
with any special etiquette for it, please bear with me.
you call "setcookie".
Of course, this may not be the problem, in which case you can ignore what I
just said. :-)
cheers,
Travis
Jaskirat Singh wrote:
Hi Guys,
I have some thing weird happening with sessions here.
They are getting destroyed/reset for *SOME* clients.
I wrote a
Isn't the database kept in a file? Why would that file be faster than a plain
text file?
cheers,
Travis
Jay Blanchard wrote:
[snip]
I have two text files with two rows of data on each line sperated by a
tab for about 20 lines in each file. Would it be faster accessing this
data by putti
tegrity might be a reason.
However, I agree -- don't back up the database directly -- use whatever
utilities the database provides to dump the database, then back up the dump.
Depending on how well the dump utility works, you might be able to do away with
the downtime.
cheers,
Travis
has pg_dump. Both of these are pretty
much all you'd need, and neither requires any site downtime.
Exactly. Use the DB to make the snapshot, then back up the snapshot.
cheers,
Travis
-
michal migurski- contact info and pgp k
It's not necessary. If you want to go to that much trouble, I would switch to
Java for the speed. I stick with PHP for the shorter development time.
cheers,
Travis
Gabe wrote:
When scripting in a language (such as PHP) that doesn't require you to
determine the variable type befo
Also, for the lazy variable typing. To me, strong typing means pounding the
keyboard extra hard.
cheers,
Travis
Travis Low wrote:
It's not necessary. If you want to go to that much trouble, I would
switch to Java for the speed. I stick with PHP for the shorter
development time.
c
;, so get it.
# If you're careful, you can modify $i here
# as you gather up the title.
}
if( 0 == strpos( $chunks[$i], "body" ) )
{
# Body starts after the next ">"
# Modify $i, but be vewwy caweful.
}
}
The de-commentin
age.php on line 24. Just
paraphrasing here.
cheers,
Travis
Shawn Inder wrote:
Hello,
I was browsing your site and came across the mail() PHP function. I
tryed it out:
[EMAIL PROTECTED] is my e-mail adress, obviously enough..
The problem is, the e-mail doesn't get sent.
A warning appe
What options?
cheers,
Travis
--
Travis Low
<mailto:[EMAIL PROTECTED]>
<http://www.dawnstar.com>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
d mean always.
No, no, that's crazy talk. :-)
cheers,
Travis
--
Travis Low
<mailto:[EMAIL PROTECTED]>
<http://www.dawnstar.com>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
so I'm
getting more lost, not less. Please help!
cheers,
Travis
--
Travis Low
<mailto:[EMAIL PROTECTED]>
<http://www.dawnstar.com>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
again. Even if PHP5 had a Class object (a la Java),
you'd have to instantiate *it* in order to find the relationship between class
A and class B. Prior to that point, you only have text strings to work with.
I suppose you could search the text of the file for "extends FooBar"
Besides checking the browser cookie settings, have one of the affected users
turn off the auto-fill form feature, then tell the browser to forget all saved
form information. Let us know what happens.
cheers,
Travis
CF High wrote:
Re: the browser track, it looks like all adversely affected
To do this reliably, you'll need something like a Java applet. In your shoes,
I'd ask the customer how important this requirement REALLY is. It will cost
more to develop, and will increase the load on the database a LOT.
cheers,
Travis
[EMAIL PROTECTED] wrote:
i'm curren
ame=$username&password=$password";);
if ($s[0])
{
# User is logged in.
}
You can also write the script on server1 so that it only returns 1 if the
request came from server2.
Disclaimer: I know this scheme isn't airtight, but it beats relying on the referer.
cheers,
Travis
[EMAI
Hi Richard,
Just curious...how do you do your profiling?
cheers,
Travis
Richard Davey wrote:
Hello Ryan,
Friday, May 7, 2004, 4:51:45 PM, you wrote:
RA> Nearly all programs can be written in *one* very large .php file but just
RA> thinking of going back in to make changes 3 months do
tant, you might be able to generate non-printable PDF files,
or generate images containing the desired text, or stuff like that. Just to
make copying/printing harder.
cheers,
Travis
--
Travis Low
<mailto:[EMAIL PROTECTED]>
<http://www.dawnstar.com>
--
PHP General Mailing List (h
I sent this a couple days ago and haven't heard a peep. Can anyone help me?
Or, is there a better place I could be asking these questions?
cheers,
Travis
Travis Low wrote:
Greetings. We have a need for our PHP scripts to run as the user and
group associated with each Apache virtual d
Hi Katie,
The foreach construct operates on copies of the array values. I usually just
stick to C-like syntax:
for( $i = 0; $i < count( $array ); $i++ )
{
$array[$i] = doSomething( $array[$i] );
}
cheers,
Travis
Katie Marquez wrote:
I'm practicing from a beginning PHP book r
Wow, what a concept. I found this link by searching the PHP site for "AS/400":
http://publib-b.boulder.ibm.com/Redbooks.nsf/RedpieceAbstracts/redp3639.html
cheers,
Travis
William Lovaton wrote:
Hi,
Is there a way to integrate PHP with AS/400??
-William
--
Travis Low
<
ny hits were returned.
To answer your question, no I have never done this.
cheers,
Travis
William Lovaton wrote:
El vie, 30-04-2004 a las 10:42, Jay Blanchard escribió:
[snip]
So, is this possible? is this a viable solution for a production system?
[/snip]
Did you even read this article posted by Tra
stic2 c2 etc.
cheers,
Travis
John W. Holmes wrote:
Dave Carrera wrote:
Hi List,
How do I select data from 24 table in my database.
Each one is identical in structure layout being
Id,name,list
The first thing you need to do is reorganize your database schema and
put all of this into one
malized applications such as you
suggest are when the customers are asking for quick-and-dirty stopgap
solutions. Then it makes sense to optimize for the application writer.
However, I have found that stopgap solutions have a way of becoming permanent.
These days, I usually turn d
uld just remove the links and leave
the code. There is also extensive documentation to help you get started with
your customizations.
Have fun.
cheers,
Travis
bruce wrote:
hey
doing some basic research... has anyone found a seriously good user
management script (preferably free) that can be
ding optimizing for programmer/bug-fixer/etc, after thinking about it, I
realized that what constitutes "optimization" really depends a lot on your
development situation, so I'll refrain from further comments on that. I
probably shouldn't have brought it up, sorry.
cheers,
uld probably look at the Adobe Distiller license.
Adobe sells a Distiller server for 100 users for $5000, unlimited users for
(cough) $15,000. See their website for details.
cheers,
Travis
--
Travis Low
<mailto:[EMAIL PROTECTED]>
<http://www.dawnstar.com>
--
PHP General Maili
Change:
value=
to
value=""
or
value=""
cheers,
Travis
Ronald "The Newbie" Allen wrote:
Here is my problem:
When I get the value of $date and I echo it it shows up just fine
$date = date("Y-m-d H:i");
echo "$date";
2004-05-15 16:20
but w
The manual says:
";
}
?>
To paraphrase, just use mysql_list_tables() to get a table list in a result
set, then go through the result set to see if the named table exists.
But wouldn't it be easier to create the tables in the first place?
cheers,
Travis
John Taylor-Johnston wrote:
Ho
They confuse non-C programmers, mostly.
See this: http://www.php.net/operators.comparison
cheers,
Travis
Radek Zajkowski wrote:
Here's a code snippet
// call gui object method
$method = $cmd."Object";
$class_name = $objDefinition->getClassName($obj_type);
$module = $objDef
You need to learn how to use regular expressions. The manual page is here:
http://www.php.net/manual/en/ref.pcre.php
I could easily write the regular expression for you, but then you wouldn't
learn anything.
cheers,
Travis
Student wrote:
Hi i was hoping if someone can help;
I want to tri
n't have permissions to read d:\ or
d:\php or d:\php\PEAR, etc.
Good luck.
Travis
>
> but I get the following error info:
> Warning: main(DB.php): failed to open stream: No such file or directory in
> D:\Apache2\htdocs\dunj\test\member\connectDatabase.php on line 2
>
> Fa
So all of the stuff you see when you create an account the normal way
(using the Cpanel web interface) will be displayed unless you stop it. That's
what the flush() and the ob_* stuff does.
If you find more information, that would be great. We can trade notes.
cheers,
Travis
--
Travis Low
&l
ypass the
Java access control systems.
I suppose I could use https, but does that encrypt the url and post data?
I think you have found yourself trapped in the java applet sandbox. You
need to create a signed applet. see
http://www.radinks.com/java/sandbox/ for a brief guide.
all the best
--
T
something unexpected comes up.
It might be easier to buy a CFM-to-PHP converter. You can get those at most
Kmart stores. They're usually next to the bacon stretchers and smoke-shifters.
Hope this helps!
cheers,
Travis
Chris Jernigan wrote:
Hi everyone,
Ok, I need serious help. I have been ha
server?
or if a file from a particular directory is downloaded...
I don't think you can do that unless the php script is used to access the file
or perform the download you speak of.
cheers,
Travis
--
Travis Low
<mailto:[EMAIL PROTECTED]>
<http://www.dawnstar.com>
--
PHP General M
of code around too. I'm sure plenty of people
disagree, so of course this is IMHO.
cheers,
Travis
Michael Nolan wrote:
charles kline wrote:
Hi all,
I was having a conversation with a friend and talking about coding
standards in the open source community (focusing on PHP). I seem to
remembe
Justin Patrin wrote:
Travis Low wrote:
[I hate K&R indenting]
And I'm one of them. :-) I like the K&R version because it saves
verticaly space and most editors can't really handle correct tabbing...
Arrggghh...TABS. Don't even get me started on tabs...
cheers,
Travi
PHP scripts to run as the user and group associated
with the apache virtual host?
cheers,
Travis
--
Travis Low
<mailto:[EMAIL PROTECTED]>
<http://www.dawnstar.com>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
$conn = mysql_connect("localhost:3308","user","password");
You are connecting as user "user" with password "password" in the code, yet the
error message references "[EMAIL PROTECTED]" so I'm pretty confused.
cheers,
Travis
Srirang
o the new MAC
packet. At that point, the original MAC address is lost.
cheers,
Travis
Yngve wrote:
Hi!
I wonder how i can retrive the MAC-address of the visitor using PHP?
What i am thinking about is using the MAC-address instead of the IP-address
to ban troublesome users from forums etc.
If i jus
Would you please turn off return receipt in your messages? Thanks!
Travis
Hull, Douglas D wrote:
After doing calculations etc on my data I am wanting to place it in a textarea form in html. I
am having trouble getting my data to show up in my texarea. For example, say after all my
select * from foo limit n, m
n == starting index, zero-based
m == maximum number of rows to return.
You probably shouldn't cross-post to different mailing lists.
cheers,
Travis
[EMAIL PROTECTED] wrote:
I need to grab a range of rows from a mysql result resource.
The resource is made up of
later) or a
500 for perm error right at the mail server. Not sure if you can get
your logic in up the stream though before it gets to you. If you can
you never have to deal with bounce messages and the entire queuing
process that goes along with it, mail server maintenance, etc..
Bounce to the enveloper sender, not the "From" header. I also believe
bounces are supposed to have an envelope sender of "<>" to avoid bounce
loops... not sure on that though.
Cheers
Travis Doherty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
If you're using window.location="./script.php?var=value", it's not
actually using a variable, it's using a string.
If you're just using the above as an example, then could you please post
the line of javascript for redirecting.
Travis.
Davis Chan wrote:
Hi
Skip Evans wrote:
> Hey all,
>
> I've installed Feisty Fawn on the curmudgeon barber's machine, but it
> won't get any of the outside packages I've tried to get. I've tried an
>
> apt-get install {package}
>
> ...on digikam, kate, gftp, and others. All stuff I had no trouble
> getting with Edgy.
>
DDR" to get the
address of the host you are running under if you wanted to access it from
PHP only.
Travis Doherty
ginal code goes
from:
foreach ($pdo->query($query) as $row) {}
To:
$statement = $pdo->query($query);
$statement->setFetchMode(PDO::FETCH_ASSOC);
foreach( $statement as $row) {}
There must be a way to set it with setAttribute for the connection though,
instead of just on a per-statement basis...
Travis Doherty
Kevin Murphy wrote:
> Not really. If it were always "today" that would work, but in this
> case, I was thinking of storing a day of the week in a database
> ("3"), and then display the info based on that digit. So assuming
> that the number was in fact 3, then:
>
> echo date("D","3");
>
> Would
efman/5.0/en/date-and-time-functions.html
They should all work on DATETIME type columns, storing seconds since
epoch doesn't quite give you that (you could work it in pretty easily
I'm sure, why not use the native column type!)
Cheers,
Travis
>
> On 9/18/06, Travis Doherty <[EMAIL
1 - 100 of 139 matches
Mail list logo