I have a php project I have been working on for several months. The
client's requirements have expanded to include interfacing to an online
service using xml, which I was familiar with but have never worked with
prior to this project. I have spent a good number of hours reading up on
xml, and
Hello,
I have a script I've created which takes a file upload, monkeys with the
data in it, and needs to push the new file out to the browser. Everything
is coded and working up to that last point, but I've never pushed out a file
to the browser before. Does anyone have the code for this layi
Hey - it doesn't actually seem to matter whether one does research or not.
Almost every single post I make, someone just HAS to tell me to search
google, which is maddening. The whole idea behind a forum like this is to
be able to communicate with others who may be able to help, and who you may
be
Does anyone know what the maximun number of columns I could put in a table
is?? I can't find it in manual. Like, could I have a table with 200,000
columns?
Mike
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I am running a query in mysql :
SELECT DISTINCT (id) AS visitor_id,
MAX(date_time) AS last,
MIN(date_time) AS first,
UNIX_TIMESTAMP( MAX(date_time)) -
UNIX_TIMESTAMP( MIN(date_time)) AS diff
FROM visitors, pixeldata_
WHERE
visitors.created > DATE_SUB( CURRENT_DATE, INTERVAL 1 HOUR )
AND
id = pixel
What does the html look like?
Mike
"Bob pilly" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I am using PHP Version 4.3.2-RC1
>
> Can someone please clarify the htmlentities() function
> for me? I have a variable called $notes2 that is
> pulled from a database that has a pound si
Anyone know of an easy way to add or subtract dates in php the way you can
in mysql? Easier, that is, than coding the logic by hand? This seems like
a total pain.
Mike
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi all,
Is there a way I can pipe the output of print_r() into a variable for
further processing?
Mike
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
is_float()
Mike
"Todd Cary" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
What is the best way to validate a "money" input? For example, 3452.67 versus
3452..67.
Todd
--
Hi,
I'm testing an implementation of a browser / platform detection on my site.
I need a few page views from my non-windows friends, to see some of the
varieties of the user_agent_string I get. Please take a moment and surf a
page or two on
www.basementideas.com/index.php
Thanks.
Mike
--
P
I have a script that is collecting a bunch of information, and storing this
in a database. However, the rows are kinda big and I'm thinking of packing
the information into flag bits, and storing this information in one string
in the database. I'm wondering if I should use mysql's bitwise operator
Hi, I have a script that records the languange and time zone of every user
that comes to the site. Currently I am testing this and need some people to
just surf a couple pages in the site, from around the world. If you don't
mind, please just see a page or two on this site. It doesn't matter
any
http://127.0.0.1:8080
"Simon Thurtle" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi all,
>
> I know this is not the right group to this but I am desperate. I have just
> got Apache and I am a total newbie to Apache and to playing with servers,
so
> as u can imagine I am flounde
Simple example here.
You have a page that submits to your php script. The form on the page is
coded like this:
This, when used, submits to your script, which will have code something like
this:
wrote in message
news:[EMAIL PROTECTED]
> HI
>
> my English is no too god ...but
>
> i need inf
of
a pain, but once it's running it should be alright.
Mike
"Chris" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Mon, 10 Mar 2003 11:30:25 -0500, Mike Mannakee <[EMAIL PROTECTED]>
> wrote:
>
> > I have some sets of values that
Thanks, but what I need are static values accessible in the script, without
having to fetch them from the database every single page view. They do
occassionally change, but in the main they're fairly static.
Mike
"Rich Gray" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> >
> > I
You get at the data through $array = mysql_result($result,0,0);
Mike
"{R}Ichard Ashton" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Mon, 10 Mar 2003 22:34:44 +0800, Jason Wong wrote:
>
> >On Monday 10 March 2003 22:30, {R}ichard Ashton wrote:
> >> Is there a generally recomm
I have some sets of values that I have stored in several tables in a mySQL
database. These don't often change, but are referenced on every single page
view. While each call is quick, as a gross the load on the server is too
high. I would like to know if there is a way to have these sets of value
Does anyone know of an intelligent way to establish a user's location
(roughly) from either IP address or some other variable available to the
server from the browser? (Other than polling the user)
Mike
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.ne
Your MySQL servers may be set to refuse anonymous connections.
Mike
"Chris Hewitt" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Lee P. Reilly wrote:
>
> >Hi there,
> >
> >I'm moving an application from Windows -> Linux, and am having a problem
> >with the d
What server are you using?
Mike
"Joe Njeru" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi All,
>
> I get a "Invalid access to memory location." error when I install php 4.3
on
> win2k as a isapi module. I've tried to install it as a cgi but I keep on
> ge
It does sound like you're right. Like ZA is perhaps allowing the user's
request to go twice. This is akin to people who double click on links
because that's what they're used to doing on windows icons. However, it
seems a bit odd how it selects to do it. It seems that if it did it twice
on ever
My question would be what's the point? Why have it redirect to itself at
all? You could more easily just convert it to lowercase and insert that
value. I can't figure what possible advantage there is to doing the
redirect to a custom error page. Only difference is what the user would see
in the
I've got a newsletter that's now reached 5000 and continues to grow. I use
PHP's mail() function, personalized with unsubscribe info and first names
and it works just fine. I just set the timeout to 5 minutes, but it's never
yet even taken 1 minute to complete.
Works fine.
Mike
"Monty" <[EMAI
Perhaps setting the ini file socket info is bypassing php using the tcp port
directly. It should be going 'through' tcp/ip to get at the port mysql is
listening to and they talk through there. I'm on a windows box and have
limited experience with unix implementations, but on the one linux box I d
You need to set the correct header type:
Content-type: text/html
otherwise it defaults to:
Content-type: text/plain
Mike
"Edward Peloke" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello all,
>
> I am using the following code but when I view the sent e-
I see. Well, it isn't executing, then. It doesn't surprise me that the
output doesn't go to the browser, but not showing up in the file seals the
deal. Sorry I can't be of more help.
Mike
- Original Message -
From: "Ladan Pickering" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EM
My question is how do you know it's not running? If it really is a "hello
world" application, where do you want the output to go? To the browser?
That's pretty involved. Try making it write to a file and see if it
contains any output after execution.
Mike
"Ernest E Vogelsinger" <[EMAIL PROTEC
This sounds like a matter that ought to make it to the programmers who code
PHP itself. In the meantime can you code around it now that you know the
bug is there?
Mike
"Marco Tabini" <[EMAIL PROTECTED]> wrote in message
news:1036725595.21741.868.camel@;localhost.localdomain...
> I'm not sure if
Jeez, this is simple. The browser is caching the image. There's no real
way to fix that. There are some headers that may encourage the browser to
not cache, but there is no sure way to control whether the users will have
this setting overridden.
imagedestroy($pic); is only freeing the memory us
I have a suggestion that doesn't involve PHP or MySQL. You could make it
look like dynamic pages (and, actually, it would be) by using Javascript.
Copy all the html your site generates from a browser, save the pages, and
then code those pages as html with Javascript to replace dates with current
d
Have a look at ImageCopy in the manual.
HTH
Mike
"Electroteque" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> here is a tricky question, i have created a photo gallery script where i
can
> edit the photo and gammacorrect the photos, at the moment i post th
Hi,
Does anyone know of image creation libraries that will generate graphs?
Mike
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Just out of curiosity, what problem are you trying to solve? Including a
file is so easy and takes so little time I wonder how this could be a
problem. I've worked for a web site that was getting millions of page views
per day (Billions per month) running php/mysql and the issue never came up.
A
Hi. I'm putting together a form that needs to have multiple pairs of both
text inputs and checkboxes. On the submit page I need to be able to
associate one with the other, and the variable names themselves have other
identifying values embedded in their names. What I need to know is how do I
ac
Thanks. I just figured it out myself. I had to change the expression:
$string= ereg_replace("[\\]+", "", $string);
The above is what worked.
Mike
"Justin French" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I'm getting multiple backslashes in data I get out of a mysql database.
Example :
...Here\\\'s the d...
No problem. Except I CANT GET RID OF THEM. I've tried several things:
1. $string = stripslashes($string); - Doesn't do anything
2. $string = ereg_replace("\\", "", $string); - Does
--
>
>
> -Original Message-
> From: phplist [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 29, 2002 7:32 PM
> To: [EMAIL PROTECTED]
> Subject: FW: [PHP] Re: credit card auth using curl function
>
>
>
&g
Absolutely. Your best bet, leaving the most visible way of tracing the
steps on any authorization, would be to save the returned string to a file.
Open the file and pass the handle to CURL_SETOPT like
curl_setopt($ch, CURLOPT_FILE, $return_data_fp);
Then have your script parse the data and outp
Does anyone know of a solution to get a script to actually connect with the
POTS system (even through a 3rd party provider) and send a fax?
Mike
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi all,
Is there any way to force a browser to use a cached version of a page if the
user hits the back button?
Mike
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Is there any way to set the timeout (max length of time the script has to
execute) from within a script, just for its own execution?
Mike
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
The server I'm on has php compiled with curl and with ssl, so that's not an
issue. I cannot seem to connect to authorize.net, however, using https://.
If I use http://, it works fine. Below is the code I'm using. I know
someone out there has tackled this problem before and I'm hoping you can
te
You'll find the values accessible in $_POST as $_POST['cgroup_1']['0'],
$_POST['cgroup_1']['1'], etc.
$_POST itself is an array, and so is your variable.
HTH
Mike
"Bill Hudspeth" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I am trying to write a functio
Your problem is a JavaScript one, not php. Your variable - 'selvalue' is
only defined within the function. Define it globally outside the function.
Trouble is it currently looks like the variable doesn't exist by the time
the function exits. See if that works.
Mike
"Adi" <[EMAIL PROTECTED]> w
You could just append the files into a string, then show the string instead.
Like
if(strlen($php)>0){
$php = $DOCUMENT_ROOT . $php;
if (ereg("(\.php)$",$php) && !ereg("\/\.\.", $php)){
$show=file("head.php");
$show.=file("$php");
$show.=file("foot.php");
echo "\n\n";
Yeah, I ran into this too, quite some time ago. The first whitespace
character will be displayed by html, though all subsequent ones will be
ignored. The thing to do is just get used to it. Or use a table, which is
usually more sensible anyways, as it gives you more control.
Mike
"Michael Zo
Does anyone have any suggested method of scrambling a user's credit card
number before I stick it in a mysql database? I want to make sure it's
useless to anyone that might manage to lift the database.
Mike
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.p
Hi all,
I'm setting up a curl operation with post fields, and I'm hoping someone can
tell me how the post fields are formatted. I'm looking to pass a string to
curl_setopt( $ch, CURLOPT_POSTFIELDS, $string), but the specifications don't
tell one HOW to format the string. Is it just like a GET s
Look for "regular expressions" in the manual. Regex is just a shortening of
that.
Mike
"Lord Loh." <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello! I am new to REGEX.
> I tried to read several posts on REGEX. However none were descriptive.
>
> What is
Thank you. This has been driving me up the wall like you wouldn't believe.
Mike
"Tom Rogers" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> Monday, July 29, 2002, 11:21:34 AM, you wrote:
> MM> Do sessions not work when using an https connection? It
Do sessions not work when using an https connection? It seems I'm losing my
data between pages.
Mike
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm using a regular expression (below) to check phone numbers. I'm getting
an error that I can't make sense of.
$regex = "^((\(\d{3}(\) -))?*\d{3}(- )\d{4},?*)+$";
Output I'm getting =
Warning: REG_BADRPT in /home/basemen/public_html/verify_order.php on line 28
Anyone know what this means? I
Does anyone have a regular expression that works to validate credit card
numbers?
Mike
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm curious how the OOP features are viewed in PHP. I'm originally a C++
guy, and took to PHP because of the similarity. In C++ one wouldn't think
of not using OOP principles, but frankly I cannot really figure out why one
would go to OOP methods in PHP. It's not a true OOP implementation, thou
Here's the code I use to validate emails:
function check_email($email)
{
global $email;
$regex="^([a-z0-9_]|\\-|\\.)+@(([a-z0-9_]|\\-)+\\.)+[a-z]{2,4}$";
return eregi($regex, $email, $trash);
}
Hope this helps,
Mike
"ØYstein HåLand" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTE
You'll have to make sure that your headers include a reply-to email address.
Also set up with your server administrator that the outgoing emails from
your site have a correct sender. The mail function's return value only
tells you that it made it to the outgoing mail server. That the server
actu
like:
if(!(session_id()))
session_start();
Mike Mannakee
"Alexander Deruwe" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I'd like to post a follow-up to my previous message on this subject.
> Please still C
I have not done this but have studied enough tcp/ip to know that ssl is not
a protocol. The opening portion would refer to your protocol, like http or
ftp. One would access via ssl using https://, not ssl:// Try that.
Curl would be your other option, and that should work just fine for most
use
Right, I understand I should be able to access them. That's the whole
problem. They're not there.
I can do one of two things and they magically become available:
1. Don't start the session.
2. Use single variables, not arrays.
#2, however, would create a problem in that I intend to set it up
rsion of PHP are you using and is register_globals ON or OFF?
>
> ---John Holmes...
>
> > -Original Message-
> > From: Mike Mannakee [mailto:[EMAIL PROTECTED]]
> > Sent: Sunday, July 21, 2002 10:57 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [PHP] Sessions
No,
The strange thing is there isn't. I have a test page that links to the
order form, having this html:
Order
I've tried it here as both a link and as hidden forms. Neither on works if
I begin the script with:
if(!(session_id()))
session_start();
I've actually figured a bit of a
When I try to pass a variable from one page to another the variable is
completely inaccessible IF I have a session going. The data has to be
passed from one page to the next through the link, as the link tells which
product the user hit. Any thoughts?
Mike Mannakee
--
PHP General Mailing
63 matches
Mail list logo