PJ wrote:
I know of no better place to ask. This may not be strictly a PHP issue,
but...
I am busting my hump trying to format rather large input pages with CSS
and trying to avoid tables; but it looks to me like I am wasting my time
as positioning with CSS seems an impossibly tortuous exercise.
Alan Bell wrote:
that would appear to be a scam of some sort, not sent by Alan Lord at
all, he can spell electronic and generally speaks English.
Alan.
Alan Lord wrote:
New Horizon!
i would like to introduce a good company who trades mainly in
electornic products.
Now the company is under sa
Is there a function or variable that will tell me if a file has asked
another file to include something much the same as
$_SERVER['HTTP_REFERER'] works. I have a script that is included on
every page of a site but also needs to include some javascript only if
it's called from a certain URL.
t
Bill Guion wrote:
At 9:30 AM -0500 12/14/08, tedd wrote:
At 3:08 PM -0800 12/13/08, Yeti wrote:
I have to defend poor little IE a little now. It supports XHTML and
CSS2 pretty well so far. And those standards came out a couple of
months ago.
Even a blind pig finds an acorn every once in a wh
Ed Curtis wrote:
Is there a way to make readdir output filenames alphabetically?
Thanks,
Ed
Never mind. I figured out how to do it using an array and sort.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Is there a way to make readdir output filenames alphabetically?
Thanks,
Ed
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I've got this chunk of code (included) that used to work fine in a
script up until a couple of weeks ago. Nothing has changed in the php
page at all, it just quit working. If I take this chunk of code and
place it alone in a php script it works just fine, but only by itself. I
don't understand
Michael Kubler wrote:
Does :
/echo strtolower("CL22");/
work?
You could also try :
/var_dump($strLow);
/
Ed Curtis wrote:
Richard Heyes wrote:
Ed Curtis wrote:
I'm converting upper case characters in a string to lower case and
am coming up with an empty string.
As I
Richard Heyes wrote:
Ed Curtis wrote:
I'm converting upper case characters in a string to lower case and am
coming up with an empty string.
As I've done a million times before with other non-numerical strings.
$thisStr = "CL22";
$strLow = strtolower($thisStr);
echo
I'm converting upper case characters in a string to lower case and am
coming up with an empty string.
As I've done a million times before with other non-numerical strings.
$thisStr = "CL22";
$strLow = strtolower($thisStr);
echo $thisStr;
Why does $strLow come up empty?
Thanks,
Ed
--
PHP
Ben wrote:
It really depends on your situation.
We are an ISP hosting lots of website. Upgrading from 4 to 5 means a lot of
sites will have trouble.
Personally I have some problem of upgrading from 4 to 5.
The below codes work on 4:
include("DB/DataObjects.php");
$pro = DB_DataObject::facto
I'm currently running Debian Woody with PHP 4.1.2 installed by default.
It's really stable and I like it alot. Would I run into any problems
upgrading it to say 4.3.0. There are some functions I need in it that
4.1.2 doesn't have. I'm not ready to make the jump to PHP5 yet. I've
tried it on a t
Christian Haensel wrote:
Hi Ed,
did you try the backslash as escape character?
That's what did it. I was thinking the \ was the escape for the
command but wanted to make sure.
Thanks!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm trying to use preg_match to find a string in a system path.
What I need to do is see if the string '/realtors' exists in a variable
named '$path'.
I know '/' is used as a container within the command itself. How do I
escape it to find the string '/realtors'?
Thanks,
Ed
--
PHP General
It is an old guy thing, at least in my case (trivia: I was born the day
after the ENIAC was turned off)
Aha! October 3, 1955
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Edward Kay wrote:
you've got a stay quote mark in one of your PHP vars.
Not it, I looked and there's nothing there.
I'm sure it's because you've got some stray characters in your output that
mess it up. It would help if you actually posted the source rather than just
saying it's OK, when it
This produces an "Error on Page" in IE 7, but works perfectly in Firefox
and Netscape.
I have several other javascript calls on the page where this call
resides and all of them work perfectly except for this one. Does this
error occur because I'm sending the variables to another script that
d
Németh Zoltán wrote:
2007. 03. 7, szerda keltezéssel 10.59-kor Ed Curtis ezt írta:
I've just run into this problem this morning
This produces an "Error on Page" in IE 7, but works perfectly in Firefox
and Netscape.
I have several other javascript calls on the page
Satyam wrote:
I saw two people pointing two errors on the SQL insert statement which
you would have found yourself had you put the 'or die()' at the end of
the query, as someone else suggested. Do never leave any query without
the 'or die()' after it (or any other means to check if mysql_query
I've just run into this problem this morning
This produces an "Error on Page" in IE 7, but works perfectly in Firefox
and Netscape.
I have several other javascript calls on the page where this call
resides and all of them work perfectly except for this one. Does this
error occur becau
I have this code:
mysql_connect ($local_host, $local_user, $local_pass);
mysql_select_db ($local_db);
mysql_query ("DELETE FROM tmphitsmag");
$result = mysql_query ("SELECT DISTINCT company FROM view_log WHERE
company != ''");
if ($row = mysql_fetch_array($result)) {
do {
I have this code:
mysql_connect ($local_host, $local_user, $local_pass);
mysql_select_db ($local_db);
mysql_query ("DELETE FROM tmphitsmag");
$result = mysql_query ("SELECT DISTINCT company FROM view_log WHERE
company != ''");
if ($row = mysql_fetch_array($result)) {
do {
ust match it
against a mime type your looking for.
Ed Curtis
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> Just make $item a 2-dimensional array, with the first diemnsion addressed by
> $count; so:
>
> $item[$count][] = $_POST['phone'];
> $item[$count][] = $_POST['category'];
> $item[$count][] = $_POST['copy'];
> $item[$count][] = $_POST['pic_style'];
> $item[$count][] = $cost;
> $item[
I know this is probably simple as all get out but it's early and I can't
find an answer anywhere after searching for a while
I need to assign a number to a variable and then use that variable in a
session to store an array. It's for a shopping cart system I'm building.
What I've got is:
Can you call getimagesize() multiple times in one script? I'm trying to
use it multiple times but it only seems to work in the first loop I call
it in. I read something in the docs about it cacheing the results and
didn't know if this has something to do with it.
I also tried creating an array
I need a way to make sure an upload has been "uploaded" correctly to my
server.
I know version 4.2.0 has the $_FILE['userfile']['error'] directive but
unfortunately I'm stuck with verision 4.1.2 at the moment and upgrading
may be a way off for me.
Should I use file_exists($_FILES['userfile']['tm
On Thu, 10 Feb 2005, Richard Lynch wrote:
> Ed Curtis wrote:
> > On Thu, 10 Feb 2005, Richard Lynch wrote:
> >>
> >> In honor of our recent Super Bowl, here is a slow-motion instant replay:
> >>
> >> Bob: "Well, it's a great day so far f
On Thu, 10 Feb 2005, Richard Lynch wrote:
>
> In honor of our recent Super Bowl, here is a slow-motion instant replay:
>
> Bob: "Well, it's a great day so far for PHP today, isn't it Jim?"
> Jim: "You've got that right, Bob! Now let's check out this play."
> Bob: "Watch as the user surfs right t
I've been looking at the docs and found preg_match and preg_match_all but
these functions only seem to match 1 specific search item. I want to make
sure a variable (say $mlsnumber) contains only numbers and no spaces. What
would I use to accomplish this?
Thanks
Ed
--
PHP General Mailing List (
On Tue, 30 Nov 2004, Ahmed Abdel-Aliem wrote:
> Hi,
> i have a tables in database which fields is
> id - title - category
>
> what i want to do is to display the categories entered in the
> categories fields, without repeating any of them
> for eample if the records is like follow
>
> ID
On Mon, 20 Sep 2004, Jay Blanchard wrote:
> There are several ways here is one
>
> if(("" != $row['photo_check']) && (("Copy Change" != $entry) || ("Banner
> Change" != $entry) || ("Price Change" != $entry)))
>
> Note the parentheses to define preference order.
That's what I was looki
Before I go screwing this code up I thought I would ask for the
formatting. How would you write the following in PHP?
if $entry not equal to "Copy Change"
OR
"Banner Change"
OR
"Price Change"
AND
$ro
If you have a Linux box available here's something to try although it
does have some required software.
http://www.babysimon.co.uk/khtml2png/index.html
There is also a link on the site for a commercial product for Windows that
does the same thing.
I can't endorse either one as I have not used
I've been looking through the online docs and man is this one confusing.
Seems there are plenty of different ways to use this. Using this with
forms, what is the best setting to avoid back button mishaps?
(none,private, etc..)
Thanks,
Ed
--
PHP General Mailing List (http://www.php.net/)
To un
You could try this:
http://marginalhacks.com/Hacks/html2jpg/
Save the page as an image, and then run it through the printer. It does
have some overhead though to get it done.
Hope it helps,
Ed
On Tue, 27 Jul 2004, Vern wrote:
> I feel like I taking a hammer and well I'm sure you all know
On Fri, 16 Jul 2004, John W. Holmes wrote:
> Ed Curtis wrote:
> > On Fri, 16 Jul 2004, Justin Patrin wrote:
> >>This is why he said: "Since you seem to have magic_quotes_gpc enabled,
> >>you can put the value directly into your query."
> >>
>
On Fri, 16 Jul 2004, Justin Patrin wrote:
> This is why he said: "Since you seem to have magic_quotes_gpc enabled,
> you can put the value directly into your query."
>
> You shouldn't use htmlentities when putting it into the DB. Use it
> when displaying the text.
I tried it both ways and it on
On Fri, 16 Jul 2004, John W. Holmes wrote:
> Let's say you have $_POST['text'] from the user.
>
> To display the value back to the user with magic_quotes_enabled, you'd
> do this:
>
> echo htmlentities(stripslashes($_POST['text']));
>
> To put the value into a hidden form element, you'd do this
base (Trying out the)
What exactly do I need to do to the text so that any quotation marks
(single or double) get input into the database.
TIA,
Ed Curtis
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Mon, 12 Jul 2004, Pablo Gosse wrote:
> Try changing:
>
> fputs($ap, $row['users.name']);
> fputs($ap, $row['users.company']);
>
> To:
>
> fputs($ap, $row['name']);
> fputs($ap, $row['company']);
>
> That should do the trick.
>
> Cheers,
> Pablo
>
That did the trick! I knew it was something sim
I'm having some trouble echoing a value to a file that is being pulled
from a MySQL database. I've included my code below I'm sure it's something
really simple but I'm not seeing it. $row['users.name'] and
$row['users.company'] echo nothing while $row['cnt'] echoes it's expected
values. If anyone
Does anyone happen to have the link on microsoft's support site that
addresses the problem with the latest IE 6 hotfix and incomplete headers
being sent? I can't seem to find my bookmark and I can't access the
archive site to find it.
Thanks,
Ed
--
PHP General Mailing List (http://www.php.net/
Make sure you use imagecreatetruecolor() with GD when resizing images or
you'll get some undesirable results. Imagemagick's convert and mogrify
worked well for me although I was resizing an uploaded image.
Ed Curtis
On Thu, 26 Feb 2004, Will wrote:
> Thanks!! I found some doc
> No need to copy+mogrify; just use
>
> convert [options] /path/to/old /path/to/new
>
> instead :-)
I wasn't aware of that command. This list is great!!
Thanks,
Ed
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> [snip]
> OK, but how? I already use GD, I need to now how to create a thumbnail,
>
> somebody now how to use the GD functions to create a thumbnail???
> [/snip]
>
> http://www.php.net/GD
Personally, I think Imagemagick's mogrify works alot better. I've been
using GD for the past few months a
king for but this might be
what you're after. It was posted on Freshmeat just this week.
http://www.babysimon.co.uk/khtml2png/
Ed Curtis
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> Join the 11,000 people who use megaupload progress bar (with a little
> help from perl)
> http://www.sourceforge.net/projects/megaupload/
I tried. It wasn't worth all the perl mods I would to have had to
install to make it work.
Ed
--
PHP General Mailing List (http://www.php.net/)
To unsubs
> Now that might interest me. So what has been added to the PHP codebase
> that makes this work? And what tweaking would I need to do? [Can't I
> just have it display in the current window? Why bother with a popup?]
>From rumors I've heard on the list a future version of PHP may have a
progr
> If I understand you correctly, when you call window.close on the next
> page you want it to close the child window. I am not sure if this is
> possible
> with Javascript if you go to a new page, it might be. You would want
> to not call window.close but something like myPopUp.close() on the
I've read through the archives and run through some of the suggestions
given for progress bars and pop ups with animated gifs and haven't had
much luck.
I've had the most luck using the pop-up window method. In the
element I call onSubmit="{open some window here}" This works as the pop-up
appe
> To answer the question, $query_str.=" AND garage = '$garage' ";
>
> BUT. If $garage is an id (numeric), then you should use
> $garage=abs($garage) first in order to defeat SQL injection. If it's a
> string, well, say so and we'll tell you what to do (a lot to explain,
> and not useful if it's an
This list has helped me out alot and I hope it can do it one more time.
I need to build a MySQL query based on 11 different options from a form.
Some options will have values others will be checkboxes to say include in
the query.
How I thought about going at it was using a default query string
I guess I did miss that it says that the comparison is case sensitive
and binary safe.
Thanks,
Ed
On Wed, 19 Nov 2003, CPT John W. Holmes wrote:
> From: "Ed Curtis" <[EMAIL PROTECTED]>
>
> > I currently store text from a MySQL blob field in a string $orig_text
I currently store text from a MySQL blob field in a string $orig_text. I
need to compare that with something someone type in from a form stored in
$new_text. How would I go about comparing them to see if they are
different or exactly the same? strcmp doesn't look like it will handle
this too well
Duh. Yeah, works like a charm.
Thanks,
Ed
On Thu, 6 Nov 2003, Jay Blanchard wrote:
> [snip]
> $price = "1234.567890";
>
> $price = number_format($price, 2, '.', '');
>
> echo $price;
>
> Returns 1234.567890
>
> Should return 1234.57 correct?
> [/snip]
>
> Use a new variable to hold the modif
I'm using an example straight from the manual on the php site that
doesn't seem to work.
$price = "1234.567890";
$price = number_format($price, 2, '.', '');
echo $price;
Returns 1234.567890
Should return 1234.57 correct?
Thanks,
Ed
--
PHP General Mailing List (http://www.php.net/)
To unsu
Thanks! Works like a charm.
Ed
On Tue, 4 Nov 2003, CPT John W. Holmes wrote:
> From: "Ed Curtis" <[EMAIL PROTECTED]>
> > I currently use number_format() and str_replace() to remove a "," or "$"
> > if entered and reformat it as a pr
I currently use number_format() and str_replace() to remove a "," or "$"
if entered and reformat it as a price for an item. I've asked the
user not to use decimals but some still do. How do I remove a decimal and
anything after from a number in a varable?
Thanks,
Ed
--
PHP General Mailing Li
I'm trying to submit multiple values to a variable within an
tag by using a value such as value="this,that" There are multiple
statements on this form each counting up from 1 using $count and
$listings as such.
This and That
That and This
On the recieving side I'
Is there any way to avoid having this happen using php if someone sits
on a page too long and clicks the back button to go back to a form they
have filled out and not having the values in a session?
Thanks,
Ed
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www
How would I write this statement:
if $thisvar is not equal to this value or that value. { do stuff }
Thanks,
Ed
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> Didn't google hard enough :)
>
> .pm5 application/x-pagemaker
> I'd guess that can be extended to pm7 and 65 - I've seen x-pagemaker5 as
> well.
>
> pmd is also pagemaker according to filext.com, as well as some software I've
> never heard of.
>
> QXP is a good one, and you may need to
On Mon, 15 Sep 2003, Javier Tacon wrote:
>
> You could use the function exif_imagetype() to see what type of file
> has been uploaded.
>
The filetypes are not all images types.
Ed
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Mon, 15 Sep 2003, Raditha Dissanayake wrote:
> You don't need to look any further than mime.types files included in
> your apache distro.
Did that as well as googled for the list of extensions. Still can't seem
to find the mime type for .pm7, .p65, .qxp and .pmd.
--
PHP General Mailing List
I currently limit file types in an upload script by using an allowed
types array
$allowed_types = array("image/jpeg", "image/gif");
I also need to allow files of with the following extentions.
.tif, .pm7, .p65, .pdf, .qxp, .pmd, .eps
Is there a site out there anywhere that gives the mime ty
2003-09-11 at 15:39, Ed Curtis wrote:
> > Is there any type of criteria that would point a user to directoryA or
> > directoryB?
> >
> > I recently rebuilt a site that handled a couple thousand
> > different working directories for clients but used only one set of
Is there any type of criteria that would point a user to directoryA or
directoryB?
I recently rebuilt a site that handled a couple thousand
different working directories for clients but used only one set of
scripts for all. The user would have to login and variables were pulled
from a database
I just started using sessions and am having some trouble understanding how
to pull values out of sessions to use in another page.
I set the values as:
session_start();
session_register{'magazine');
session_register('company');
The data is saved as a session because I can read the file located
RL
such as:
It becomes a null value or doesn't get passed at all.
I thought this might have something to do with track-vars but track vars are
enabled by default in PHP since before my version. When I compiled
everything I compiled PHP as a DSO. Any ideas?
TIA,
Ed Curtis
--
PHP Gener
70 matches
Mail list logo