.
"\n" .
"\n");
exit();
}
$rs_fld0 = $rs->Fields(0);
$rs_fld1 = $rs->Fields(1);
$rs_fld2 = $rs->Fields(2);
while (!$rs->EOF) {
echo("$rs_fld0->value$rs_fld1->value$rs_fld2->value\n");
$rs->MoveNext();
}
$rs->Close();
$db_connection->Close();
--
Lowell Allen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
eturn path header and cause
receiving systems to block as spam. There's a user contributed note in the
manual: <http://www.php.net/manual/en/ref.mail.php>
--
Lowell Allen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Could you use the Zend Encoder to encrypt the PHP script?
<http://www.zend.com/store/products/zend-safeguard-suite.php>
--
Lowell Allen
> From: Mike Morton <[EMAIL PROTECTED]>
> Date: Thu, 30 Jan 2003 09:30:36 -0500
> To: <[EMAIL PROTECTED]>
> Subject: [PHP] Encryp
cause it's
associated with "true" (as 0 is associated with "false").
--
Lowell Allen
> From: "Anthony Ritter" <[EMAIL PROTECTED]>
> Date: Thu, 30 Jan 2003 18:30:28 -0500
> To: [EMAIL PROTECTED]
> Subject: [PHP] php question - query string
&g
relates -- I use the code below as a "force frame", placing it
at the top of all content pages as an include. (In my case info.php posts to
index.php, which allows any content page that's called directly to be
returned in a frameset.)
<!--
if (top.location == self.location) {
top.location.href = "info.php?contents=" + "<?=$page_name?>"
}
// -->
--
Lowell Allen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
str_replace() on $message to
escape double quotes, the email shows the escaping backslash but is still
truncated at the double quote!
I've got magic_quotes on, but I think I'm keeping up with stripslashes
because single quotes are showing up correctly.
Can anyone please advise?
--
Lowe
uncated at the double quote!
[snip]
> The way around this is to use htmlentities() or htmlspecialchars() on your
> string before you insert it into the value attribute of your form element.
> It will come out decoded on the the other side, so you don't have to worry
> abo
ludes
'--enable-safe-mode', but the directive safe_mode is "Off". I'm building a
test list with over 100 messages, but has anyone done something similar to
prevent the script timing out when sending lots of mail?
Thanks.
--
Lowell Allen
--
PHP General Mailing List (ht
> From: "Kevin Stone" <[EMAIL PROTECTED]>
>
> - Original Message -----
> From: "Lowell Allen" <[EMAIL PROTECTED]>
>
>> I've added an email feature to a content management system that will send
>> plain text email to about 1400
attempts generated while
looping through the email list (thanks, Kevin). But if I do a version with a
cron tab I'll store in MySQL instead, since speed really wouldn't be much of
a factor for a process without user involvement, and for me it would be
easier to manage.
--
Lowell Allen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> From: "Matt Schroebel" <[EMAIL PROTECTED]>
>
>> -Original Message-
>> From: Lowell Allen [mailto:[EMAIL PROTECTED]]
>> Sent: Monday, February 03, 2003 12:38 PM
>> To: PHP
>> Subject: [PHP] tracking bulk email
>> (1) My client is
{
echo 1;
}
The receiving script doesn't display anything and should only echo as shown
above. I don't get how to return success or failure from the receiving
script. The information I've been able to find on cURL doesn't clarify this.
Can anyone shed some light?
Tha
> From: Lowell Allen <[EMAIL PROTECTED]>
>
[snip]
>
> // check cURL results
> if ((trim($curl_results) != 1) || (trim($curl_results) != 0)) {
> // maybe nothing returned, bail out
> echo("Can't confirm results of attempt to add to database!\n");
> e
using trim() on the value to get rid of blank spaces, returns, and other
weirdness.
--
Lowell Allen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ve the issue.
I have no problems with file uploads using IE 5.1, Mac OS 9.2.
--
Lowell Allen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
x, PHP 4.1.2, session.cookie_lifetime setting is 0,
session.use_cookies setting is On, session.use_trans_sid setting is 1, and
other configurations as mentioned above. Why are sessions expiring? Comments
and directions to more information are appreciated.
--
Lowell Allen
--
PHP General Mailin
if (session_is_registered("user")) {
echo("Logged in as $user.");
} else {
?>
Problem: You are not logged in.
Login
"Lowell Allen" <[EMAIL PROTECTED]> schreef in bericht
> [EMAIL PROTECTED]">
> You can also define your own session handler to do what you want.
>
> Why not just use a cookie to "remember me" though, instead of keeping the
> sessions persistant? You're going to end up with a file on your computer for
> _every_ person that visits the site and the file w
.
>
> And nl2br doesn't work either.
>
> Can anyone help?
Here's what I use to make two returns a paragraph return and one return a
baseline return:
$text = ereg_replace("\r", "", $text);
$text = ereg_replace("\n\n", "", $text);
$text = ereg_replace("\n", "\n", $text);
$text = ereg_replace("", "\n", $text);
HTH
--
Lowell Allen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
es:
> $day=17
> $month=2
> $year=2003
> I searched a lot, but I didn't find how to do this.
> I'll be very happy if someone helps!
>
list($year, $month, $day) = explode("-", $newdate);
--
Lowell Allen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
down. Some things seem so obvious that you just don't think you
> need to bookmark! So why can't I remember...
>
> I would just prefer not reinventing the wheel. Suggestions would be greatly
> appreciated.
There's a free PHP mortgage calculator at <http://www.drea
e general approach -- whew! Anyway, for anyone struggling with this sort
of thing, building a queuing system like this seems to work well, and I'm
sure it would be safe to greatly increase the speed above 50/5 minutes.
HTH
--
Lowell Allen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
and bounced/undeliverable email goes to that user email
account. Someone at the client company monitors that address, verifies the
bounce, and manually removes the address from the list.
Good luck with your project!
--
Lowell Allen
> From: J J <[EMAIL PROTECTED]>
> Date: Wed, 5 Ma
(I think this is from the Welling and Thomson book -- PHP and MySQL Web
Development.)
--
Lowell Allen
> From: "shaun" <[EMAIL PROTECTED]>
> Date: Thu, 6 Mar 2003 13:45:52 -
> To: [EMAIL PROTECTED]
> Subject: [PHP] Re: Checking for empty values sent from a form
>
s logged in (Mac OSX
IE). He got Microsoft tech support to duplicate the behavior and confirm
it's a problem with IE -- doesn't happen with Mozilla.
So, it's important to verify the problem with more than one system, but it
sounds like you have since you mention both IE6 and IE Mac!
--
Lowell Allen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
;2\" AND features.TheTest=\"1\"";
>
> What I get in the return is:
>
> X Window
> pool
> fence
> drive
>
> Window
> pool
> X fence
> drive
>
> Window
> pool
> fence
> X drive
I'm not sure how you're formatting
cords; $x++) {
$merged_files = $records1[$x] . $records2[$x] . (etc) . $records40[$x];
}
If you need the data separated with semicolons, add them when concatenating.
HTH
--
Lowell Allen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
e problem is that I
have no idea what the syntax of the command line parameter is (what the "-f"
does).
Can anyone advise? Is it possible to use this fifth parameter to set the
return-path header, and if so, what's the syntax?
TIA,
--
Lowell Allen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
tdh = opendir($txtdir);
>
> while($file = readdir($imgdh)) {
> if(substr($file,-3)=="jpg") {
> $imgFiles[] = $file;
> $textFileName = substr($file,0,-3)."txt";
> $textFiles[] = $textFileName;
> }
> }
Just sort the $imgFiles array.
--
Lowell Allen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
e a plain text message and an HTML-formatted message and write
everything to a MySQL database. A separate script that's called by a crontab
actually sends the email. (That let's me control frequency and volume.)
After pulling from the database, I build the multipart message fr
liams? Would it be better to
rewrite my script so that it doesn't need to create files?
Comments on the best approach for security and reliability would be
appreciated.
--
Lowell Allen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
nux/Apache 1.3.28
--
Lowell Allen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> * Thus wrote Lowell Allen ([EMAIL PROTECTED]):
>> My commercial host is set up with the public root directory, "public_html",
>> owned by user: userid, group: nobody. Directories I create within
>> public_html are owned by user: userid, group: userid. As a result,
= base64_encode(serialize($array));
You can then pass $portable_array as a form hidden input value. To turn it
back into an array:
$array = unserialize(base64_decode($portable_array));
--
Lowell Allen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
The error reporting level setting is set higher on the Windows box than on
your Linux box. See info in the manual about changing, or define all those
variables.
HTH
--
Lowell Allen
> From: "Beauford.2002" <[EMAIL PROTECTED]>
> Date: Wed, 19 Mar 2003 11:11:42 -0500
>
MS-SQL doesn't escape with slashes. It escapes single quotes with single
quotes.
--
Lowell Allen
> From: "Poon, Kelvin (Infomart)" <[EMAIL PROTECTED]>
> Date: Thu, 20 Mar 2003 10:58:02 -0500
> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]
Read the user-contributed notes following the online manual info on
addslashes: <http://www.php.net/manual/en/function.addslashes.php>
--
Lowell Allen
> From: "Poon, Kelvin (Infomart)" <[EMAIL PROTECTED]>
> Date: Thu, 20 Mar 2003 11:20:51 -0500
> To: 'Lo
the problem. I use Mac OS 9/Internet Explorer/Outlook Express --
no problem.
--
Lowell Allen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
1\n";
if ($address2 != "") {
$message .= "Address: $address2\n";
}
etc.
Then send it and report failure or success to the user like so:
if ([EMAIL PROTECTED]("$send_to_name<$sendto>", $subject, $message, $headers)) {
// report failure to send confir
/function.addslashes.php>, which will direct
you to other info on changing the escape character used.
--
Lowell Allen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
documentation at
<http://www.php.net/manual/en/function.header.php>.
--
Lowell Allen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
== 0) {
echo("$image");
if ($i+1 == $img_count) {
echo("\n");
}
} elseif ($i%3 == 1) {
echo("$image");
if ($i+1 == $img_count) {
echo("\n");
}
} elseif ($i%3 == 2) {
echo("$image\n");
}
$i++;
}
Hope this helps.
--
Lowell Allen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
coration: none }
a:visited { color: #036; text-decoration: none }
a:hover{ color: #fff; text-decoration: none; background-color: #339 }
a:active{ color: #fff; text-decoration: none }
--
Lowell Allen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ution, but I can recommend the Java-based JSpell spell checker
if you've got Tomcat on Apache and you're OK with *absolutely no support*
installing. <http://www.jspell.com/>
--
Lowell Allen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
o tried using \r\n instead of \n
Send yourself an email using PHP and examine the Return-Path listed in the
source code. (The Return-Path is not the same as the From you're setting.)
If you're using a commercial host (shared hosting), then the Return-Path is
probably something like [EMAIL
g a
project (1/3 to 1/2 the total fee). A good proposal protects both you and
the client.
--
Lowell Allen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ansfer (data and
> structure) a MSAcess database to Mysql, and vice versa. Anyone know? Thanks
>
MS Access2MySQL Converter is at <http://www.dmsofttech.com/downloads.html>.
--
Lowell Allen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
_AGENT"))) &&
(!eregi("Gecko", getenv("HTTP_USER_AGENT"))) &&
(eregi("Mac", getenv("HTTP_USER_AGENT"
Do you really need to differentiate between 4.x versions? It looks like
you're matching any 4.x version.
--
Lowell Allen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
redirect all platforms for NS4, but you can check out the
differences here:
<http://www.webreview.com/style/css1/charts/mastergrid.shtml>
--
Lowell Allen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
one
> know any other site I can use?
>
Go to <http://www.hotscripts.com/> and search for PayPal under PHP. There
are several scripts listed -- some free.
--
Lowell Allen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
x27;t been
able to find an existing, inexpensive PHP spell checker solution. Can anyone
direct me to one or provide advice?
Thanks.
--
Lowell Allen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ing loads into the text
> field. The client swears that it isn't, but it is dammit. Or is it?
>
> http://www.overbrookfarm.myiglou.com/
>
Works fine for me in Mac OS 9.2, both Mozilla 1.0 and IE 5.1, Flash player
6. But with Mac OS 9, IE 5.1 and Flash player 5, I get a blank page.
recommend on this topic?
>
I'm currently doing a spell checker, and found this article very helpful:
<http://www.zend.com/zend/spotlight/spellchecking.php>.
--
Lowell Allen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ag:
STYLE="display: inline;"
A previous post recommended doing something similar by setting HSPACE and
VSPACE to zero, but be aware that both HSPACE and VSPACE are deprecated in
HTML 4.
--
Lowell Allen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
le to really PREVENT uploads, let's say
> bigger than 10 MB?!
>
Add this to your HTML form:
HTH
--
Lowell Allen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
e-up is on the
client machine during upload. For example, I did a site where uploads of 24
Mb are possible, but the max_execution_time is only set to 50 (and I'm
pretty sure it could be lower).
HTH
--
Lowell Allen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
't counted as execution
time because nothing is happening at the server. Perhaps whatever process
you're using for handling multiple files causes the timeout?
I'd love to hear how you resolve the problem, because I need to do a
multiple file upload system soon.
<http:/
> From: "Renaldo De Silva" <[EMAIL PROTECTED]>
>
> how can i use a variable stored in a vaiable in a if statement?
>
Check the manual info on variable variables:
<http://www.php.net/manual/en/language.variables.variable.php>
--
Lowell Allen
--
PHP Genera
Windows servers the Bcc:
header is not removed when sending, so recipients can see Bcc: receivers by
examining the headers. This is from Kevin Yank's "Advanced email in PHP" on
WebmasterBase.com.
--
Lowell Allen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
categories for the selected main category. The subcategories are also
displayed with links back to the script passing the variable $MainCatID
again plus the variable $SubCatID. When the script is called with $SubCatID
set, the submenu name with ID equal to $SubCatID is also class-styled to
indicate the selection.
The main page display (in this case for a products catalog) is generated by
other selection queries based on $MainCatID and $SubCatID.
--
Lowell Allen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
vailable to change the permissions?
>
I thought unlink() did not work on Windows. Notes in the manual suggest this
for Windows:
system("del name.ext");
--
Lowell Allen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ipart/form-data">
>
[snip]
Without looking at your other code, I'll just point out that the value for
MAX_FILE_SIZE is in bytes, so you're specifying a very small files size as
your max. Perhaps you're off by a few magnitudes. For example, "24576000"
woul
quot;\n\n", "", $summary);
$summary = preg_replace("#(.*)#", "\1", $summary);
This also returns only the second paragraph. Can anyone point out what I'm
doing wrong, or suggest another approach?
TIA
--
Lowell Allen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
anyone recommend a good online reference, book, or tutorial for
regular expressions?
--
Lowell Allen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
home page is static HTML that's generated by opening a
script-generated version of the page as an http: URL with fopen(), written
to a temp file, then copied to replace the previous static home page.
Detail/article page displays would remain script generated.
--
Lowell Allen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
e for PHP/MySQL. I've been Google-searching info on GIS and GPS
and GMT, but thought it might be worthwhile to ask this discussion list for
input.
Can anyone direct me to info on PHP presentation of geographic maps -- tied
to a database with locating coordinates?
Thanks.
--
Lowell Allen
of map coordinates, wouldn't it? If the corners of each rectangular
map view were referenced, couldn't any point be placed in relation to 3 of
the corners?
> My $.10
>
Thanks for the input. I certainly don't know if the client's desire is
realistic, and I appreciate any guida
> From: "Peter J. Schoenster" <[EMAIL PROTECTED]>
>
> On 11 Jul 2002 at 16:42, Lowell Allen wrote:
>
[snip/]
>>
>> Can anyone direct me to info on PHP presentation of geographic maps --
>> tied to a database with locating coordinates?
>
> W
ap
server? If so, does that mean multiple maps are loaded during the
interaction with the map server, then called as needed, or is one image
created by the map server then modified with JavaScript or PHP for different
zoom views and pans?
Thanks, I find your project description very helpful.
--
L
he database...
>
The system would need to handle a few thousand properties.
> The one tricky part is getting public domain maps of the regions you want.
> We may need to commission a graphic artist or cartographer to synthesize the
> desired maps...
>
I don't think that will be
> From: Analysis & Solutions <[EMAIL PROTECTED]>
>
> On Fri, Jul 12, 2002 at 09:25:56AM -0400, Lowell Allen wrote:
>> Are you using JavaScript to update the image without going back to the map
>> server?
>
> Dude, Dynamic HTML / JavaScript are a poor idea.
eference my PHP script headed with "#!/usr/bin/php -q"? And
how do I return something to tell me if execution was successful?
I'm searching through the manual, but links to good examples (or outright
explanations) would be greatly appreciated.
--
Lowell Allen
--
PHP General Mailing
ill
be acceptable.
This is my third post concerning this (rephrased and refocused each time).
Does anyone else need to create and update files in their main directories?
Is this a security problem? Do I need to completely rewrite the CMS to use a
subdirectory?
--
Lowell Allen
--
PHP General Ma
> Anyone have any sources of noun/verb/adjective lists for password
> generation?
Google search for Aspell and Pspell. Here's a link to Aspell info, which has
a link to dictionaries:
<http://aspell.net/>
--
Lowell Allen
--
PHP General Mailing List (http://www.php.net/)
To u
and he said Microsoft confirmed
the problem. However -- I've since gone to OSX and can't duplicate the
problem on my system.
--
Lowell Allen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
at link (script) writes info to the
database, flagging an update request. Every 5 minutes, a crontab calls the
PHP CGI script that actually does the update. The script checks the database
flag and does the updates if they've been requested (flagged).
Bottom line -- discuss the problem
> First, excuse-me for this out of topic message.
>
> I am searching a good mailling-list for people trying to write standard
> XHTML and CSS.
css-discuss <http://www.css-discuss.org/mailman/listinfo/css-d>
--
Lowell Allen
--
PHP General Mailing List (http://www.php.ne
ray:
$array = unserialize(base64_decode($portable_array));
--
Lowell Allen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
aren't those
sessions still listed in the sessions directory?
Thanks for any insights.
--
Lowell Allen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
troy() were never called for those sessions. Why aren't those
>> sessions still listed in the sessions directory?
> session_start() runs garbage collector in current session save path
> directory. The plus is you are not affected by other virtual hosts on
> the same server.
So
ectory for saving session data. Create a directory (on the same
level as your directory of publicly-viewable files if you can) and before
the 'session_start();' line, do 'session_save_path("../my_sessions_dir");'.
Also be aware that circumstances on the client side ca
starts like this:
require_once($req_fns);
session_save_path(prepath($PHP_SELF) . "../ccb_sessions");
session_start();
Note that when I said my session data directory is on the same level as my
publicly viewable files (public_html), I mean that the session directory is
not contained wi
code($_GET["whatever"]));
HTH
--
Lowell Allen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
sses and sends the message. By controlling the number of addresses
selected and how often the crontab calls the script, the email rate is
controlled. And using a crontab makes it a background process. The email
message is created and list progress monitored through a content management
system.
--
n example snippet
>
[snip]
>
> What I want is a dictinary of some sort to try and eliminate the lines
> where and english word does not exist !!
>
> Anyone got any ideas ... greatly appreciated
The GNU Aspell project includes dictionaries:
<http://ftp.gnu.org/gnu/aspell
F)) {
$color = "red";
} elseif (eregi("contact", $PHP_SELF)) {
$color = "yellow";
} else {
$color = "";
}
HTH
--
Lowell Allen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
2[2] . "\n\n");
} else {
echo("" . $sublink2[2] .
"\n\n");
}
}
}
}
} elseif ($pid == "0") {
// only display children of current page
// build submenu of child pages of curren
for non-HTML use (like for
plain text email), or if I actually *WANT* to use stored HTML code (like for
HTML-formatted email)
TIA
--
Lowell Allen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
and
> eval("\$psArray = array($ps2);"); - This one gives me a parse error
> (Parse error: parse error, unexpected T_STRING, expecting ')' in
> /var/www/html/ps.php(25) : eval()'d code on line 1)
>
> When I have used the same eval in another page I get eac
uld be appreciated.
Try listing the - as the first character (or last) so it's not seen as
showing a range.
> Also, any good references for regular expressions?
O'Reilly's "Mastering Regular Expressions", by Jeffrey Friedl.
HTH
--
Lowell Allen
--
PHP General Mailing
order, you can give it a different id when saving to the db.
--
Lowell Allen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ly an
inelegant solution, but it's better than losing the form data.
In my situation, I've considered rewriting the PHP script that's receiving
the form post so that if the session has expired it will re-display a
simplified version of the form (without showing protected content) with the
pos
if ($menu3[1] == $menu[0]) {
if ($menu3[0] == $id || $menu3[0] == $pid) {
echo("" .
$menu3[2] . "");
} else {
echo("" . $menu3[2
-- <http://www.lukelaura.com>.
The system described is your option (1) above, and allows the keywords to be
weighted by the contributors.
HTH
--
Lowell Allen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
reatly appreciated.
$sql = "SELECT * FROM table WHERE LastName REGEXP '^[A-E]'";
HTH
--
Lowell Allen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
tions are greatly appreciated...
Try using $HTTP_POST_FILES['uploadedFile']['name'] instead. I wasted a bunch
of time yesterday with an upload script that did not recognize files when
using "$_FILES", but worked fine with "$HTTP_POST_FILES" -- PHP 4.3.4 on
Linux.
--
Lowell Allen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> Lowell Allen wrote:
>
>>
>> Try using $HTTP_POST_FILES['uploadedFile']['name'] instead. I wasted a bunch
>> of time yesterday with an upload script that did not recognize files when
>> using "$_FILES", but worked fine with "$H
quotes_gpc() ? htmlentities($_POST[$cp]) :
htmlentities(addslashes($_POST[$cp]));
$insert_sql = "INSERT INTO Images SET PagePath='$PagePath',
FileID='$userfile_name', " .
"Caption='$Caption', Sequence='$_POST[$sq]', LastMod=NOW(),
UploadedBy='$valid_user'";
if (@!mysql_query($insert_sql)) {
echo("Error adding image information to database: " .
mysql_error() . "\n\n");
exit();
}
echo("" . $userfile_name . " uploaded sucessfully and image
information saved.\n");
--
Lowell Allen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
if you're using MySQL version 3.23.2 or later, and
you only want to return one random result you can use:
$query = "SELECT * FROM table WHERE id<10 ORDER BY RAND() LIMIT 1";
I don't know if that works without the LIMIT clause; give it a try.
HTH
--
Lowell Allen
--
P
b
$request = substr($REQUEST_URI, 1);
$results = mysql_query("SELECT DisplayStatus FROM Pages WHERE
MenuPath='$request' AND DisplayStatus='Y'");
if (!$results) {
$db_error = mysql_error();
include("error_page.php");
exit();
}
if (mysql_num_rows($
1 - 100 of 135 matches
Mail list logo