[PHP] forms and php

2008-01-24 Thread Mark Pashia
sion 4.1.22-standard. Thanks, Mark Pashia

Re: [PHP] looping through a $_POST variable

2007-12-30 Thread Mark Kelly
. You might consider renaming it to run_query or something. Remember, other people may have to make sense of your code one day. Hope this helps, Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] variable array name

2007-11-29 Thread Mark Head
k. I have tried $$array_name[1] = "test"; but to no avail. Any Ideas? Cheers, Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: [PHP-DB] Re: MySQL Identifying worst-performing codes

2007-11-09 Thread Mark Summers
There may be something useful here... http://forge.mysql.com/ chris smith wrote: > On Nov 9, 2007 1:18 AM, Colin Guthrie <[EMAIL PROTECTED]> wrote: > >> Lasitha Alawatta wrote: >> >>> There is a tool call "idera" (SQL diagnostic manager). Basically it is >>> a performance monitoring and

Re: [PHP] Regular Expressions

2007-11-07 Thread Mark Summers
This is a much better solution. I didn't realise that str_replace() accepted arrays as arguments for the search and replace terms. Mental note: reading mailing lists backwards doesn't work. Robert Cummings wrote: > On Tue, 2007-11-06 at 23:24 -0300, Martin Alterisio wrote: > >> 2007/11/6, Al

Re: [PHP] Regular Expressions

2007-11-07 Thread Mark Summers
There was no escaping in the original either. Also, I did assume that the list of replacements would grow to become pretty large. I wouldn't suggest doing this for a small list such as that given in the example. Robert Cummings wrote: > On Wed, 2007-11-07 at 14:33 +0000, Mark Summe

[PHP] Annoying PHP - MySQL communication timeout

2007-11-07 Thread Mark Summers
Has anyone here experienced a problem where a MySQL server seemingly closes a connection opened by PHP whilst the PHP script is still running? The problem only seems to affect scripts that run for a long time but there are a few things that make it unusual: 1) There is no obvious correlation betw

Re: [PHP] Regular Expressions

2007-11-07 Thread Mark Summers
This is a first attempt but the general idea is that the regular expression matching is done in one operation and then str_replace() is called only as many times as required instead of once for every line in your list. Also, str_replace() is faster than ereg_replace(). "n", "รก" => "a",

Re: [PHP] From TXT to a mySQL db

2007-10-18 Thread Mark Kelly
once and as long as the data isn't too weird you should have no problems. > Should I try some manipulation first with the TXT file ? I wouldn't imagine there would be any need for that, no. Hope this helps, Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Something you can do with AJAX + PHP as well

2007-10-06 Thread Mark
Hey, I've made a nice video where you see ajax in combination with php. and it works really well although really is misspelled "realy". Here is the video: http://magedb.mageprojects.com/videos/MageDB%202nd%20WIP%20demonstration%20with%20AJAX.mpeg Cool huh? Mark. -- PHP Gener

[PHP] Karma Rating the new way of rating anything? Your opinion on this please.

2007-10-04 Thread Mark
might have alot potential. but that's where i want your opinion. So what do you guys think on of this idea? Posted in on this list because it's gonna be written in PHP. Thanx, Mark. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How can i only fetch a (rss/atom) feed when it's changed?

2007-10-02 Thread Mark
it should.. if it's not changed than just skip the download. Is this possible and how (with filemtime?)? i rather have a method that works in php 4 and 5 (i use php 5 but alot of hosts still don't). thanx, Mark. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] question about making modules

2007-09-01 Thread Mark
dule system so that others can extend the base class with more advanced features or improve existing features by overwriting them. i did found a place where this is being done: "ADOdb Lite" but i can't find out how that script is doing it.. Any help with this would be gr

[PHP] Is a small memory footprint better for a php script?

2007-08-31 Thread Mark
emory usage? or is that something i don't need to look at? And when is memory usage gonna be a issue? is that when you have ALOT of simultaneous users? (lets say 100 all the time.. not that i have that.. but just for the idea). Thanx, Mark. -- PHP General Mailing List (http://www.php.net/) T

Re: [PHP] Why do I always come up with the hard stuff?

2007-08-07 Thread Mark Summers
Hello, I suspect that you need to assign the new instance of mysqli to $mysqli by reference to prevent the on-demand instance that is created by new from being copied (cloned) at the point of assignment. Mark Jason Pruim wrote: > Yes I am hijacking a thread just to screw with all the people

Re: [PHP] Thoughts about music library

2007-08-06 Thread Mark Kelly
age (no seperate database). I used it running from an old 200Mhz SBC board in a Playstation 2 case. I thought it made for a nice flexible system as there are clients to control the daemon available for all manner of hardware. Cheers, Mark -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Session Issues with Certain ISPs

2007-08-02 Thread Mark Tuma
over now, but I think I'll look into database sessions for future systems. Cheers, Mark Richard Lynch wrote: On Wed, July 18, 2007 9:35 am, Mark Tuma wrote: I have a fairly simple set of php scripts which use session variables to pass information from one page to the next in an o

Re: [PHP] Loss of precision in intval()

2007-08-01 Thread Mark Summers
I like to think that I'm reasonably aware of the limitations of floating point (famous last words). To my mind, the ridiculousness (probably not a word) of the example is highlighted by the fact that 75.81 and 75.83 work perfectly. Roberto Mansfield wrote: Internally, 75.82 can't be stored e

[PHP] Loss of precision in intval()

2007-08-01 Thread Mark Summers
This sort of thing really isn't helpful... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Session Issues with Certain ISPs

2007-07-18 Thread Mark Tuma
seem to get lost along the way. The troublesome ISPs are AOL and BTOpenworld. Does anyone have any experiences that could shed light on this for me? Thanks, Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Pirate PHP books online?

2007-07-16 Thread Mark Kelly
Hi. On Monday 16 July 2007 12:42, Dotan Cohen wrote: > So, suckers, I'm with you now, and I'll start pirating again. This is a real shame (not to mention a foolish thing to post to a publicly archived mailing list). As a user of open source technology you are benefiting directly from the PHP

[PHP] PHP as a strategic BUSINESS language

2007-07-04 Thread Mark Allen
I had high hopes for it when I started down the path, and was glad to find this list thinking that it would be a great resource for using PHP to help solve BUSINESS issues but basically 80% of the questions have nothing to do with BUSINESS issues but "how do I do X" questions which IMO should NOT

Re: [PHP] Re: php security books

2007-07-04 Thread Mark Kelly
Hi. On Wednesday 04 July 2007 13:01, Andrew Hutchings wrote: > Avoid the O'Reilly one as it is flawed. In what way? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP not posting

2007-06-24 Thread Mark Kelly
On Sunday 24 June 2007 13:54, Pieter du Toit wrote: > Hi > > I installed PHP5 on iis and i can see "hello world" and phpinfo. > > When i right click the webpage and view source, i can see the php code, > and the form does not want to post the form details. > > Will appreciate any help. I'm not rea

[PHP] possible to "move_uploaded_file" to a variable instead a file?

2007-06-17 Thread Mark
that`s not safe. however i do want to store it inside a variable and than run the database query. any idea`s on this? Thanx alot in favor, Mark

[PHP] Cannot un-subscribe from list

2007-06-15 Thread Mark Smith
I am currently trying to unsubscribe from this mailing list, however I am nor very successful in doing this. The mailer program will refuse to accept my address for removal, it will simply continue to send mail to my address. Why is this happening and how can I stop it? Mark -- PHP General

[PHP] Getting the filesize of a file with the help of javascript

2007-06-02 Thread Mark
have the remote filesize stuff with the help of javascript and ajax working so it`s not a impossible idea.. it`s probably just a little harder when you need to get remoe (xml) files with net security update.. or even the remote creation of thumbnails. Thanx in favor, Mark.

[PHP] PHP on the AS400 (now i5)

2007-05-10 Thread Mark Allen
Just curious if anybody else is using Zend's PHP port on an AS400/iSeries/i5? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] passing GET via include

2007-05-04 Thread Mark Smith
Hello all, Is there a way to allow the passing of variables to included scripts using the GET method, for example include"file.php?name=person"; or is there another method of including files that allow you to do this. I have attempted to do this without success, I just get a message saying the

[PHP] Re: Why do some pages repeat a previous page's action(s) after redirect?

2007-04-03 Thread Mark
Do yo Chris W. Parker wrote: Quick question: Do you use frames and does the behavior of your code depend on data stored from page to page? If so, what kind of session system do you use? > Hello, > > I have a form page and a processing page. After submitting the form the > processing page does w

[PHP] Alternatives to PHPLib for authentication, session management, etc

2007-03-23 Thread Mark R. Cervarich
m looking for a system that works better than what I've got w/ PHPLib, that will be fairly easy to maintain -- as well as drop-in as a replacement in the 100s of websites that I've developed that use that authentication scheme. Thanks in advance, mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Add New Records Only!

2007-03-23 Thread Mark
>> row. If the subsequent primary key is the same as the previous one, it is >> a duplicate record and ignore it. >> >> like this: (pseudo code) >> >> $primary_key = ""; >> while(!eof()) >> { >>$record = get_next_record(); >>

Re: [PHP] Add New Records Only!

2007-03-23 Thread Mark
Rahul Sitaram Johari wrote: As far as I can see, there is probably only three ways to do this: One: Make sure your dbase system contains unique primary key capability, and use it to avoid duplicates. Two: query for the row, if it isn't there insert it. (You'll have to deal with concurrency with l

[PHP] Re: Random Unique ID

2007-03-22 Thread Mark
[EMAIL PROTECTED] wrote: > Hello, > > I want to add a random unique ID to a Mysql table. Collisions > are unlikely but possible so to handle those cases I'd like to > regenerate the random ID until there is no collision and only > then add my row. Any suggestions for a newbie as to the right >

Re: [PHP] Re: Random Unique ID

2007-03-22 Thread Mark
Tijnema ! wrote: > On 3/22/07, markw@mohawksoft.com wrote: >> > On 3/22/07, Roman Neuhauser <[EMAIL PROTECTED]> wrote: >> >> # markw@mohawksoft.com / 2007-03-22 08:49:59 -0400: >> >> > Tijnema ! wrote: >> >> > >> >> > > On 3/22/07, Roman Neuhauser <[EMAIL PROTECTED]> wrote: >> >> > >> >> >> > >>

Re: [PHP] Re: Random Unique ID

2007-03-22 Thread Mark
Tijnema ! wrote: > On 3/22/07, Roman Neuhauser <[EMAIL PROTECTED]> wrote: >> # [EMAIL PROTECTED] / 2007-03-21 21:03:35 -0500: >> > Mark wrote: >> > >[EMAIL PROTECTED] wrote: >> > > >> > >>Hello, >> > >> >> > &

[PHP] Re: Random Unique ID

2007-03-21 Thread Mark
[EMAIL PROTECTED] wrote: > Hello, > > I want to add a random unique ID to a Mysql table. Collisions > are unlikely but possible so to handle those cases I'd like to > regenerate the random ID until there is no collision and only > then add my row. Any suggestions for a newbie as to the right >

Re: [PHP] Re: Getting last record ID created from DB

2007-03-21 Thread Mark
Richard Lynch wrote: > On Mon, March 19, 2007 10:58 pm, markw@mohawksoft.com wrote: >>> markw@mohawksoft.com wrote: >>>>> markw@mohawksoft.com wrote: >>>>>>> On Sat, 2007-03-17 at 12:19 -0400, Mark wrote: >>> Check the documentation - curr

Re: [PHP] Re: Getting last record ID created from DB

2007-03-21 Thread Mark
Richard Lynch wrote: > On Tue, March 20, 2007 8:00 pm, Mark wrote: > > I'd agree with you, except now you've pulled the rug out and inserted > a 3rd party connection pool. That's not "pulling the rug out," that is a legitimate possibility. > > Well,

[PHP] What API does PHP need?

2007-03-20 Thread Mark
I want to write another PHP extension, for no real reason, I've written a few and just want to keep up to date. What sort of API would you like to see? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Getting last record ID created from DB

2007-03-20 Thread Mark
Chris wrote: > markw@mohawksoft.com wrote: >>> markw@mohawksoft.com wrote: > http://www.postgresql.org/docs/current/static/functions-sequence.html > > It is perfectly safe to use this. In theory that may be true, but can the application developer make any assumption about the

Re: [PHP] Re: Getting last record ID created from DB

2007-03-17 Thread Mark
Robert Cummings wrote: > On Sat, 2007-03-17 at 09:43 -0500, Myron Turner wrote: >> Colin Guthrie wrote: >> > Philip Thompson wrote: >> > >> >> For auto increment values, you don't have to specify the id. For >> >> example: >> >> >> >> INSERT INTO t_users (f_name, l_name, e_mail, b_date, pic) >>

[PHP] Re: Re: Getting last record ID created from DB

2007-03-17 Thread Mark
Colin Guthrie wrote: > Mark wrote: >>> select user_id from t_users where user_id = (select max(user_id) from >>> t_users) >>> >> >> It should be noted that that is the absolute 100% WRONG way to do it. If >> your site has any concurrency, you wil

Re: [PHP] Getting last record ID created from DB

2007-03-17 Thread Mark
Philip Thompson wrote: > On Mar 16, 2007, at 10:28 PM, Jeff wrote: > >> Is there a way to get the last Record # created by the DB. >> >> Example: >> >> User_ID = auto_increment >> f_name = varchar >> l_name = varchar >> e-mail = varchar >> b_date = varchar >> pic = varchar >> >> >> Since user_id

[PHP] Re: Getting last record ID created from DB

2007-03-17 Thread Mark
Jeff wrote: > Is there a way to get the last Record # created by the DB. > > Example: > > User_ID = auto_increment > f_name = varchar > l_name = varchar > e-mail = varchar > b_date = varchar > pic = varchar > > > Since user_id is an auto_inc field I submit it as a NULL, also I haven't > starte

Re: [PHP] Getting last record ID created from DB

2007-03-17 Thread Mark
Rod Person wrote: > On Fri, 16 Mar 2007 22:28:54 -0500 > "Jeff" <[EMAIL PROTECTED]> wrote: > >> Is there a way to get the last Record # created by the DB. >> > >> >> $query = "INSERT INTO `t_users` (`user_id`, `f_name`, `l_name`, >> `e_mail`, `b_date`, `pic`) VALUES ('', '$f_name', '$l_name',

[PHP] Help me specify/develop a feature! (cluster web sessions management)

2007-03-13 Thread Mark
I have a web session management server that makes PHP clustering easy and fast. I have been getting a number of requests for some level of redundancy. As it is, I can save to an NFS or GFS file system, and be redundant that way. Here is an explanation of how it works: http://www.mohawksoft.org/?q

[PHP] Re: session/login issue

2007-03-13 Thread Mark
Gunter Sammet wrote: > Hi all: > I inherited an application using PHP 5.1.4 with MySQL 4.1.20, > Apache/2.0.46 (Red Hat) on a VPS server with Plesk 7.5. The authentication > used to work just fine till yesterday. Now it doesn't authenticate > anymore. My debugging so far hasn't revelaed much. It s

[PHP] Re: Help with the php bug in the Squirrelmail plugin's script

2007-03-09 Thread Mark
Jevos, Peter wrote: > > Hi > I'd like to ask you for the help > I'm using Squirellmail with plugin Shared calendar. This is simple nice > plugin written by Paul Lesniewski > But I found the bug in this plugin. The bug seems to be related with > variable and memory. > The scripts are really slow a

[PHP] Re: Joke of the day problem

2007-03-09 Thread Mark
Delta Storm wrote: > Hi, > > again me with the silly questions... > > I need a script that will take data from MySQL database and display one > row each day. > > I have googled, but with no luck. > > The database retrieving mechanism is of course clear but I really dont > know how to do a 24h

[PHP] XMLDBX XML extension for PHP

2007-03-08 Thread Mark
A while back I tried to use wddx as an XML serializer for PHP, and for various reasons it didn't really work correctly. What I ended up having to do was almost completely rewrite it, and what came out of that is XMLDBX. Here is documentation http://www.mohawksoft.org/?q=node/17 You can download

[PHP] Re: Save and Continue

2007-03-07 Thread Mark
Dan Shirah wrote: > Hello All, > > I am trying to think through my new forms process. I want to allow a > customer to submit multiple orders using the same credit card. At the > bottom of my form I will have a "Save" link and a "Save and Submit > Additional" link/checkbox. > > Basically what

[PHP] Re: [PHP-DB] array field type

2007-03-06 Thread Mark
Sancar Saran wrote: > Thanks for all those replies. It seems there was no easy solution (and or > serializing was better solution) for us. > > Our arrays contains lots of things.. XML may not fit because content of > array may broke xml structure. > Before you give up, take a look at the XMLDBX

[PHP] Re: [PHP-DB] array field type

2007-03-06 Thread Mark
Myron Turner wrote: > Tony Marston wrote: >> "Sancar Saran" <[EMAIL PROTECTED]> wrote in message >> news:[EMAIL PROTECTED] >> >>> On Sunday 04 March 2007 23:04, Sancar Saran wrote: >>> Hi, I want to know is there any db server around there for store php arrays natively. >

[PHP] Re: Opinion on on-line payment and banking gateway

2007-03-06 Thread Mark
Seak, Teng-Fong wrote: > I'm not a PHP programmer. I ask this question for a friend of > mine. So I'm not sure if I'm using the correct terms. He's making an > e-commerce website and he doesn't know much about how to validate credit > card, or how to make transactions. What he needs is cal

[PHP] Re: advise on data encryption security.

2007-03-05 Thread Mark
Gregory Machin wrote: > Hi > Can anyone point me in the direction of some good docs / howto's on > building php apps that have fully encrypted databases etc .. > Many thanks I'm not sure you'll find any links to "fully encrypted" databases. That's almost useless. You may want to consider encrypte

[PHP] Re: PHP Clustering solution -- Beta Testers Needed

2007-03-05 Thread Mark
Manuel Lemos wrote: > Hello, > > on 03/05/2007 12:22 PM Mark said the following: >> I have a web clustering solution. >> It is better than putting session files on NFS and better than using a >> database. Take a look and give it a try. >> >> I need feedb

[PHP] PHP Clustering solution -- Beta Testers Needed

2007-03-05 Thread Mark
I have a web clustering solution. It is better than putting session files on NFS and better than using a database. Take a look and give it a try. I need feedback on platforms, installation problems, bugs, suggestions, and if you are up to it, patches. Here is a brief outline http://www.mohawkso

[PHP] Re: pictures stored in PostgreSQL DB

2007-03-05 Thread Mark
Alain Roger wrote: > Hi, > > It's amazing that my previous post has raised so much consideration about > the fact to store or not pictures into DB. And yet you ask again!? Did you not learn? No good can come from this question. > However, none of those posts answered to my question... How can i

Re: [PHP] Re: how to display images stored in DB

2007-02-28 Thread Mark
Kevin Waterson wrote: > This one time, at band camp, zerof <[EMAIL PROTECTED]> wrote: > >> It is not a good practice to store pictures in DataBases, use links, >> instead of. > > Rubbish, where are your benchmarks? It has almost nothing to do with benchmarks. Images are typically best supporte

[PHP] PHP Clustering System, beta testers

2007-02-27 Thread Mark
I have a PHP clustering back end server, MCache. It is available in source form at http://www.mohawksoft.org It allows multiple PHP web servers to share session information without any changes to PHP code and without NFS or a database. It is based on a backend server mcached and a PHP extension.

Re: [PHP] PHP equivalent to Perl $0

2007-01-31 Thread Mark Charette
Richard Luckhurst wrote: Hi Richard, RL> And, frankly, why would you want to do that? It only sows confusion RL> in ps output. :-) Unless you're talking about apps spawned by inetd and its cousins. ps shows the name as specified in arguments in the inetd.conf file, not the name of the exec

[PHP] Re: Forms and destroying values

2007-01-16 Thread Mark
Hello all, give this a try Beauford. Place that up in the head of the documement. It's not PHP but it used to work. I haven't used it in a few years. ""Beauford"" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > Hi, > > How do I stop contents of a form from being readded to the

[PHP] Pear on WinNT

2007-01-11 Thread Mark
ntime error: ActiveX component can't create object: 'Shell.Application' Has anyone encountered this? I made sure that WMI was installed and up to date. I've tried googling the error, but I get nothing useful. I tried microsoft.com and MSDN. No help. Any ideas? Thanks, Mar

[PHP] Re: PHP/Apache configuration failure

2007-01-11 Thread Mark
aking out the Addmodule and Action lines. Change the LoadModule line. I forget where I bumped into the documentation that explained it to me. I still haven't forgotten how much time it took me to find it though. ;-) Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php/ajax question

2006-12-30 Thread Mark Kelly
On Saturday 30 December 2006 18:56, tedd wrote: > Why can't the php script redirect the browser when called via ajax ? The browser will not be expecting a page back, and will ignore headers. The response must be handled by a function you define. For the sake of a quick demo, if your php accepts

Re: [PHP] php/ajax question

2006-12-30 Thread Mark Kelly
On Saturday 30 December 2006 18:56, tedd wrote: > Why can't the php script redirect the browser when called via ajax ? The browser will not be expecting a page back, and will ignore headers. Just some quick suggestion code, this isn't tested (except createRequest - I use that all the time)... f

[PHP] Re: Re: taking a one off payment

2006-12-07 Thread Mark R. Cervarich
On Thu, 7 Dec 2006, Lester Caine wrote: Mark R. Cervarich wrote: http://checkout.google.com -- Google's answer to PayPal. Best part is, they are taking NO FEES from now through 12/31/2007. So you can use them to receive credit card payments for just over a year for FREE. At 2% + $2

[PHP] Re: taking a one off payment

2006-12-06 Thread Mark R. Cervarich
st part is, you can, from inside the webpage, click "Send Invoice" and it will ask you for an email addy, and a description of what you are billing 'em for. You don't have to create a full shopping cart system!!! mark On Mon, 20 Nov 2006, Richard Lynch wrote: On Thu, Nov

Re: [PHP] Distinguishing between a mouse click and a refresh?

2006-12-05 Thread Mark London
Hi - Thanks! This is the solution I actually realized myself last night, after many hours of looking at the other solutions and finding problems with them. Thanks to everyone who responded! - Mark Richard Lynch wrote: On Mon, December 4, 2006 3:03 pm, Mark London wrote: Is there any way

[PHP] Distinguishing between a mouse click and a refresh?

2006-12-04 Thread Mark London
Is there any way for PHP to know whether it is being called due to a browser refresh versus a mouse click? I think the answer is no but I just want to be sure. Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Tidy HTML source?

2006-11-27 Thread Mark Kelly
On Monday 27 November 2006 17:10, Mark Kelly wrote: > Am I crazy to make an extra effort in my code to make the generated HTML > pretty? Thanks everyone for your thoughts on this - I'm quite relieved that I'm not the only one who sits and tweaks so that the HTML is nice and re

[PHP] Tidy HTML source?

2006-11-27 Thread Mark Kelly
Hi. In the stuff I do almost all the HTML is generated with PHP as basically none of it is static (lots of tabular data, state-sensitive links, stuff like that). Am I crazy to make an extra effort in my code to make the generated HTML pretty? By this I mean linebreaks, indentation etc. - stuff

Re: [PHP] newbie problem - extraneous newlines inserted in PHP-generated HTML form source

2006-11-22 Thread Mark White
d the problem in the first place. I'm emptying the temporary variables by setting them to "" (no space). Could it be a problem with the document encoding? All my text files are saved as Western(ISO Latin-1). Mark -- PHP General Mailing List (http://www.php.net/) To unsu

[PHP] PHP in Kenya

2006-11-05 Thread Mark Steudel
I'm currently serving in Peace Corps in Kenya and I was looking for other PHP web developers that are doing e-commerce that I could ping about what requirements/paperwork etc is involved in setting up e-commerce accounts in Kenya. Thanks, Mark

[PHP] pagination code not incrementing page numbers.

2006-10-23 Thread Mark
I am using the following code for pagination with php5 and mysql 4.1.x The pages advance by clicking on the "Next" or "Last" link However the url does not advance past this in the url field http://localhost/page.php?pagenum=2 Also the page count does not increase past "--Page 1 of 50--" at the b

[PHP] Screen Shots

2006-10-22 Thread Mark McWhirter
Is there any way that I can get a script to take a screen shot every minute of all the users using my php website? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Resource problem affecting Curl functions

2006-09-20 Thread Mark Krenz
at 12:12 , Mark Krenz wrote: > > I run a shared webserver with a few hundred vhost containers in > >Apache's config. > > Are these vhosts all contained in httpd.conf, or are they separate > files? > > Does it make a difference? > > -- > ...when you

[PHP] Resource problem affecting Curl functions

2006-09-19 Thread Mark Krenz
to 524288 lsof | wc -l returns 33497 Thanks, Mark ps. I am well aware that I need to upgrade my software so there is no need to tell me to do that. I'm working on it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] if statement with or comparison (newbie)

2006-09-09 Thread Mark Charette
Robert Cummings wrote: On Sat, 2006-09-09 at 11:30 -0400, Mark Charette wrote: Stut wrote: Mark Charette wrote: However, looking at it from a 'knowing early the data is tainted' perspective, not from a 'validating and cleaning perspective', if you have code

Re: [PHP] if statement with or comparison (newbie)

2006-09-09 Thread Mark Charette
Stut wrote: Mark Charette wrote: However, looking at it from a 'knowing early the data is tainted' perspective, not from a 'validating and cleaning perspective', if you have coded that (for instance) a variable is set via COOKIE, then only looking for that variable

Re: [PHP] if statement with or comparison (newbie)

2006-09-09 Thread Mark Charette
Robert Cummings wrote: On Fri, 2006-09-08 at 18:38 -0400, tedd wrote: At 5:03 PM -0400 9/8/06, JD wrote: In all of the answers given thus far, no one mentioned that the use of $_REQUEST has a security issue with regard to where the $_REQUEST originated. $_REQUEST is an array consisti

RE: [PHP] date(n/Y) strtotime

2006-08-02 Thread Mark Steudel
Thanks Adam, I had sent out my second email before I had read yours. I'll give yours a go, thanks again. Mark -Original Message- From: Adam Zey [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 02, 2006 11:15 AM To: Mark Steudel Cc: PHP Mailing Lists Subject: Re: [PHP] dat

RE: [PHP] date(n/Y) strtotime

2006-08-02 Thread Mark Steudel
} If( strtotime( '1/2009') == '-1' ) { Echo 'false'; } Else { Echo 'true'; } All of those echo true, how do I determine if strtotime has failed or not? Mark -Original Message- From: Mark Steudel Sent: Wednesday, August 02, 2006 9:55 AM To: Mark

RE: [PHP] date(n/Y) strtotime

2006-08-02 Thread Mark Steudel
up date In: 1/2009 Out: 2009-01-01 Invalid, blowing up date In: 8/2006 Out: 2006-08-01 PHP 4.4.1 Valid In: 1/2009 Out: 2011-07-02 Valid In: 8/2006 Out: 2012-01-27 PHP 4.4.0 Valid In: 1/2009 Out: 2011-07-02 Valid In: 8/2006 Out: 2012-01-27 Any work around with these types of dates on php4? Ma

[PHP] date(n/Y) strtotime

2006-08-02 Thread Mark Steudel
t;Y-m-d", mktime( 0, 0, 0, $eDate[0], 1, $eDate[1] ) ) ); } return $sDate; } Thanks, Mark -- Mark Steudel Web Applications Developer 555 Dayton St Suite A Edmonds, WA 98020 p: 42

[PHP] Re: Stumped! 4.x to 5.1 problem!!

2006-07-21 Thread Mark
Mark wrote: > I have an extension that seems to create PHP variables correctly, and > var_dump() doesn't seem to have a problem. but upon moving to 5.1.x it > fails. > > Anyone have a suggestion? Well, it is fixed. Evidently, PHP 5.1 sees a difference between $var["0&qu

[PHP] Re: Setting cookie on one domain for an other domain

2006-07-21 Thread Mark
Peter Lauri wrote: > Best group member, > > > > When a user does a specific action on domain1.com I want a cookie to be > set so that domain1.com and domain2.com can reach it. Ok, after reading > the manual for setcookie() I tried this: > > > > setcookie("thevariable", "thevalue", time()+6

[PHP] Stumped! 4.x to 5.1 problem!!

2006-07-21 Thread Mark
I have an extension that seems to create PHP variables correctly, and var_dump() doesn't seem to have a problem. but upon moving to 5.1.x it fails. Anyone have a suggestion? array(2) { [0]=> object(classfoo)#2 (1) { ["hostname"]=> string(3) "foo" } [1]=> object(classfoo)#3 (1)

RE: [PHP] Basic PHP knowledge test

2006-07-20 Thread Mark Steudel
Here's one companies quiz that they gave: With each question, please keep the code short and simple. Make notes on possible caveats and fixes rather than adding a lot of error-checking to your code. 1. Write a PHP script to remove duplicate lines from a file. Do not worry about efficiency.

RE: Fwd: [PHP] Recurs Directory Delete

2006-07-14 Thread Mark Steudel
Oooh, that's pretty neat. I was under the same impression as Andrew, that DEL didn't do the same thing as rm -rf ... Thanks, Mark -Original Message- From: Adam Zey [mailto:[EMAIL PROTECTED] Sent: Friday, July 14, 2006 4:35 PM To: Andrew Kreps Cc: PHP General Mail List Subjec

RE: [PHP] Recurs Directory Delete

2006-07-14 Thread Mark Steudel
Thanks all for the help, I figured it out: This line was giving me grief :) doh! while( false !== ( $file == readdir( $dir ) ) ) Mark -Original Message- From: Jochem Maas [mailto:[EMAIL PROTECTED] Sent: Friday, July 14, 2006 12:12 PM To: Mark Steudel Cc: php-general@lists.php.net

RE: [PHP] Recurs Directory Delete

2006-07-14 Thread Mark Steudel
I wish, I'm on an IIS box. Mark -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Friday, July 14, 2006 2:09 PM To: tedd Cc: Mark Steudel; php-general@lists.php.net Subject: Re: [PHP] Recurs Directory Delete On Fri, July 14, 2006 2:07 pm, tedd wrote: > At

[PHP] Recurs Directory Delete

2006-07-14 Thread Mark Steudel
{ if( is_file( $resource ) ) { unlink( $resource ); } else { $this->LOG .= __LINE__ . ": Unknown path: $resource\r\n";

Re: [PHP] Recursing sessions?

2006-07-01 Thread Mark
Richard Lynch wrote: > On Fri, June 30, 2006 11:11 am, Mark wrote: >> Here is a problem I am seeing, >> >> A browser hits a site the uses frames, for the sake of argument, lets >> call >> this site a squirrelmail web mail server. >> >> The browser se

RE: [PHP] Recursing sessions?

2006-06-30 Thread Mark
Jay Blanchard wrote: > [snip] > I am debugging a PHP session manager and this behavior is keeping the > system from working correctly. > [/snip] > > A more descriptive explanation along with some code will help us to help > you. AFAICS we do not have enough information to go on. Does each frame >

[PHP] Recursing sessions?

2006-06-30 Thread Mark
Here is a problem I am seeing, A browser hits a site the uses frames, for the sake of argument, lets call this site a squirrelmail web mail server. The browser seems to spawn a number of requests at the same time (I think one for each content frame), I get multiple PS_READ_FUNC calls, and then g

RE: [PHP] running system()

2006-06-29 Thread Mark Steudel
From: Chris [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 28, 2006 8:01 PM To: Mark Steudel Cc: php-general@lists.php.net Subject: Re: [PHP] running system() Mark Steudel wrote: > So I'm trying to run some system commands on the windows box I am working > on. And I am getting "U

[PHP] running system()

2006-06-28 Thread Mark Steudel
red environment? Anyways pointers to securely setting this up? Thanks Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Better way of doing this? (menu and submenus)

2006-06-21 Thread Mark Steudel
You could use a recursive function and keep it all in one table. My Table is similar to the one below: ID NAMEPID DISPLAY_ORDER Here's crude recursive function to display this in a list typical of what you used to style a menu. The great thing about this is that you could have unli

<    1   2   3   4   5   6   7   8   9   10   >