[PHP] Billing client for studying documentation

2007-02-03 Thread Mike Mannakee
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,

[PHP] Pushing a file to the browser

2007-01-02 Thread Mike Mannakee
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

Re: [PHP] Stop neurotic posting

2003-08-06 Thread Mike Mannakee
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

[PHP] MySQL limitations

2003-07-28 Thread Mike Mannakee
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

[PHP] AAAAGGGHHHH!!! Help!!

2003-07-11 Thread Mike Mannakee
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 =

[PHP] Re: HTMLENTITES(); the pound sign

2003-07-01 Thread Mike Mannakee
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 sign in

[PHP] Piping print_r output to a variable

2003-06-30 Thread Mike Mannakee
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

[PHP] Subtracting dates in php

2003-06-30 Thread Mike Mannakee
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

[PHP] Re: Validating a money input

2003-06-19 Thread Mike Mannakee
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 --

[PHP] My non-windows friends please help

2003-06-18 Thread Mike Mannakee
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 --

[PHP] Re: This is NOT the right place to ask this but I am desperate

2003-06-09 Thread Mike Mannakee
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 floundering a

[PHP] Little help

2003-06-09 Thread Mike Mannakee
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

[PHP] Bitwise flagging in mysql database

2003-06-09 Thread Mike Mannakee
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

[PHP] Re: HELP ME NEW FRIENDS....

2003-03-26 Thread Mike Mannakee
Simple example here. You have a page that submits to your php script. The form on the page is coded like this: form action=script.php method=get input type=text name=variable1 input type=Submit /form This, when used, submits to your script, which will have code something like this: ?

[PHP] Persistent values between executions

2003-03-10 Thread Mike Mannakee
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

Re: [PHP] MySQL and PHP arrays

2003-03-10 Thread Mike Mannakee
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 recommended way

Re: [PHP] Persistent values between executions

2003-03-10 Thread Mike Mannakee
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 have

[PHP] Re: Persistent values between executions

2003-03-10 Thread Mike Mannakee
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 I have stored in several tables in a mySQL database. These don't

[PHP] Locality from URL

2003-02-23 Thread Mike Mannakee
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:

[PHP] Re: PHP 4.3 on win 2k

2003-02-12 Thread Mike Mannakee
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 getting

Re: [PHP] Database problem - works in Windows - not Linux

2003-02-12 Thread Mike Mannakee
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 database. I

Re: [PHP] Sessions 'funny' and Zone Alarm Pro 3

2003-01-13 Thread Mike Mannakee
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

Re: [PHP] Still executing afte die()?

2003-01-03 Thread Mike Mannakee
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

[PHP] Re: Using mail() for mailist list app

2003-01-01 Thread Mike Mannakee
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 [EMAIL

[PHP] Re: MySQL

2002-12-25 Thread Mike Mannakee
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

[PHP] Re: mail()

2002-12-19 Thread Mike Mannakee
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-mail

Re: [PHP] Unable to execute c++ .exe file from php

2002-11-08 Thread Mike Mannakee
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 PROTECTED]

Re: [PHP] Unable to execute c++ .exe file from php

2002-11-08 Thread Mike Mannakee
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: [EMAIL

[PHP] Re: publishing php mysql website on cd-rom

2002-11-07 Thread Mike Mannakee
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

Re: [PHP] Weird behaviour with references to objects...

2002-11-07 Thread Mike Mannakee
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 my

[PHP] Re: tricky gd question

2002-10-01 Thread Mike Mannakee
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 the

[PHP] image wrapper - graphs

2002-09-30 Thread Mike Mannakee
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

Re: [PHP] Static constants? Server persistent?

2002-09-29 Thread Mike Mannakee
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.

[PHP] Getting at the variable name itself

2002-09-24 Thread Mike Mannakee
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

[PHP] Escape characters won't go away

2002-09-01 Thread Mike Mannakee
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); - Doesn't

Re: [PHP] Escape characters won't go away

2002-09-01 Thread Mike Mannakee
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]... on 02/09/02 1:14 PM, Mike Mannakee ([EMAIL P

[PHP] Re: credit card auth using curl function

2002-08-29 Thread Mike Mannakee
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

Re: [PHP] Re: credit card auth using curl function

2002-08-29 Thread Mike Mannakee
: [EMAIL PROTECTED] Subject: FW: [PHP] Re: credit card auth using curl function -Original Message- From: Mike Mannakee [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 29, 2002 5:45 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: credit card auth using curl function Absolutely. Your

[PHP] faxing

2002-08-28 Thread Mike Mannakee
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

[PHP] Forcing browsers to use cached pages

2002-08-26 Thread Mike Mannakee
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

[PHP] Resetting the timeout

2002-08-18 Thread Mike Mannakee
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

[PHP] CURLing to authorize.net

2002-08-14 Thread Mike Mannakee
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

[PHP] Re: radio value

2002-08-13 Thread Mike Mannakee
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]

[PHP] Re: Passing array to function

2002-08-13 Thread Mike Mannakee
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 function

[PHP] Credit Card suggestions

2002-08-12 Thread Mike Mannakee
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:

[PHP] Re: HTML issue... spaces in between images

2002-08-12 Thread Mike Mannakee
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

[PHP] Re: show_source question

2002-08-12 Thread Mike Mannakee
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 font

[PHP] POST fields through CURL

2002-08-11 Thread Mike Mannakee
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

[PHP] Re: What is REGEX ?

2002-07-30 Thread Mike Mannakee
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 Regex ?

[PHP] REGEX for credit card number

2002-07-28 Thread Mike Mannakee
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

[PHP] REGEX for phone #

2002-07-28 Thread Mike Mannakee
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

[PHP] sessions and https

2002-07-28 Thread Mike Mannakee
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

Re: [PHP] sessions and https

2002-07-28 Thread Mike Mannakee
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 seems

[PHP] Object oriented??

2002-07-26 Thread Mike Mannakee
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,

[PHP] Re: Sessions don't work?

2002-07-24 Thread Mike Mannakee
: 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 CC me when replying, thanks. New test code: ?php sessi

[PHP] Re: best way to log bad email address'

2002-07-24 Thread Mike Mannakee
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

[PHP] Re: How do I validate input using php?

2002-07-24 Thread Mike Mannakee
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

Re: [PHP] secure sockets

2002-07-23 Thread Mike Mannakee
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

[PHP] Sessions vs passing variables

2002-07-21 Thread Mike Mannakee
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

Re: [PHP] Sessions vs passing variables

2002-07-21 Thread Mike Mannakee
No, The strange thing is there isn't. I have a test page that links to the order form, having this html: form action=order_form.php method=post input type=hidden name=prod_ids[] value=9 input type=hidden name=prod_ids[] value=8 input type=hidden name=prod_qtys[] value=1 input type=hidden

Re: [PHP] Sessions vs passing variables

2002-07-21 Thread Mike Mannakee
---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 vs passing variables No, The strange thing is there isn't. I have a test page that links to the or

Re: [PHP] Sessions vs passing variables

2002-07-21 Thread Mike Mannakee
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