Re: [PHP] strip_tags

2013-07-20 Thread Frank Arensmeier
>. It means that strip_tags("", "") returns an empty string. It's all there… ;-) Cheers, /frank > Cheers, > > tedd > > _ > t...@sperling.com > http://sperling.com > > > -- > PHP General Mailing List (http://www.php.net

Re: [PHP] Detecting massive web hits

2013-04-12 Thread Frank Arensmeier
(http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > Maybe Fail2ban is what you are looking for? http://www.fail2ban.org/wiki/index.php/Main_Page /frank -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Expected behaviour or bug?

2012-09-17 Thread Frank Arensmeier
bal "If a globalized variable is unset() inside of a function, only the local variable is destroyed. The variable in the calling environment will retain the same value as before unset() was called." [...] "To unset() a global variable inside of a function, then use the$GLOBALS array to do so:" Took about 1 minute to find out. /frank -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] array_push

2012-09-02 Thread Frank Arensmeier
(.+). > This is ugly. How can I clean this up like this? > > $mynewarray= array { > [0]=> "Residential Fire Determined to be Accidental in Nature ..." > [1]=> "Arrest Made in Residential Fire ..." > } Why not add two lines of code within the first loo

Re: [PHP] extract Occurrences AFTER ... and before "-30-"

2012-09-02 Thread Frank Arensmeier
u some ideas: $chunks = explode("-30-", $mystring); foreach($chunks as $chunk) { preg_match_all("/News Releases\n(.+)/s", $chunk, $matches); var_dump($matches[1]); } The regex matches all text between "News Releases" and the end of the chunk. /frank -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] no traffic

2012-03-06 Thread Frank Arensmeier
ost, $port, $errno, $errstr, $timeout); >> if ( ! $fsock ) >> { >> return FALSE; >> } >> else >> { >> return TRUE; >> } >> } Have you noticed that you have a typo in your function? '$post' should be '$port'... /frank -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php://input

2012-01-15 Thread Frank Arensmeier
equests, here are my thoughts. 1) According to the manual, file_get_contents only allows URL's as filenames if "fopen wrappers" are enabled. Make sure that this is the case (have a look at the settings in your php ini file). Do you get any data when changing 'file_get_contents' to e.g. (as found here: http://php.net/manual/en/features.file-upload.put-method.php)? 2) Have a look in your Appache log files and make sure the client is actually making a valid PUT request. /frank -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question about date calculations

2011-12-29 Thread Frank Arensmeier
On the same page you are referring, there are plenty of examples on how to calculate the difference between two dates. Choose one and see if it fits your bill. Or is there any particular reason why you're writing your "own" function? http://www.php.net/manual/en/ref.datetime

Re: [PHP] PDF Page Size

2011-12-20 Thread Frank Arensmeier
my first choice. Look out for "pdfinfo". http://foolabs.com/xpdf/download.html /frank -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Opening Multiple Files

2011-09-07 Thread Frank Arensmeier
; > $myFile = "B01C001.htm"; > $lines = file($myFile); > foreach ($lines as $line_num => $theData) { > > Is there a way PHP will open each file in the directory ending in “.htm”, one > file at a time, without me specifying the file name? > http://se.php.net/ma

[PHP] Using function prototypes in code

2011-08-09 Thread Frank Thynne
In the interest of clarity and maintainability I would like to be able to write code that makes it clear what kind of arguments a function expects and what it returns. This is what I tried: function integer int_func(string $s) { // does something like, say, converting "five" to 5 } There are t

Re: [PHP] ftell Issue or Feature

2011-06-08 Thread Frank Arensmeier
http://php.net/manual/en/function.filesize.php Right after the flock call, try to clear the cache with clearstatcache(). Maybe that helps. /frank -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] RelaxNG parser in PHP?

2011-04-29 Thread Frank Arensmeier
find anything suitable. Any hints are more than welcome! Regards, /frank -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: echo?

2011-03-23 Thread Frank Arensmeier
> "") echo ' ('.$row['user_priv'].') '; else echo ' '; } The output you've posted, that's rendered output, right? What's the raw output? By the way, the code snippet you gave us is not complete. Is there anything else? As Dan noticed earlier, judging from that code snippet only, there must be something else funky going on. /frank -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] extract price by preg_match_all

2011-02-14 Thread Frank Arensmeier
"; print_r($matches); echo ""; } else { echo "Didn't find anything..."; } ?> Untested. /frank 14 feb 2011 kl. 15.05 skrev Tontonq Tontonq: > example data: > > > old price 829,00 > €your price 58,90 € * > > &

Re: [PHP] file upload utility ?

2011-02-07 Thread Frank Bonnet
On 02/07/2011 05:01 PM, Daniel Brown wrote: On Mon, Feb 7, 2011 at 10:56, Frank Bonnet wrote: Hello I'm searching for a utility that let our users upload a file on a server , then generate a temporary link that point to the real file. As this is for internal use we don't need sec

[PHP] file upload utility ?

2011-02-07 Thread Frank Bonnet
Hello I'm searching for a utility that let our users upload a file on a server , then generate a temporary link that point to the real file. As this is for internal use we don't need security, the file can be read by anyone. The goal is to distribute the file to our users by sending them an ema

Re: [PHP] a quick question about array keys

2010-08-31 Thread Frank Arensmeier
Have a look at the manual, especially the function "array_values()". /frank Skickat från min iPhone. 31 aug 2010 kl. 17:43 skrev Tontonq Tontonq : > a quick question > lets say i have an array like that > > > Array > ( > [300] => 300 > [301] =>

Re: [PHP] Server-side postscript-to-PDF on-the-fly conversion

2010-03-27 Thread Frank Arensmeier
s derived from the name of the input file or may be explicitly named using the -o option. [...] Another option might be xpdf (http://www.foolabs.com/xpdf/). There are several different tools bundled with that app and there might be some ps -> pdf converter too. Otherwise, there i

Re: [PHP] Anyone good with multiple SSL on Apache?

2010-03-08 Thread Frank M. Kromann
Not that I know of. - Frank On 3/8/10 2:21 PM, Skip Evans wrote: D'oh! ...and I suppose there is just no way around that, eh? Skip Frank M. Kromann wrote: You can only have one SSL per IP address. The SSL connection between the client and server is done before the host header name is

Re: [PHP] Anyone good with multiple SSL on Apache?

2010-03-08 Thread Frank M. Kromann
You can only have one SSL per IP address. The SSL connection between the client and server is done before the host header name is made available to Apache. - Frank On 3/8/10 2:13 PM, Skip Evans wrote: Hey all, I have an Apache virtual config running a bunch of sites, one with SSL. I

Re: [PHP] Merry Christmas!

2009-12-25 Thread Frank Arensmeier
Merry Christmas from Sweden! /frank Skickat från min iPhone. 25 dec 2009 kl. 15.16 skrev Shawn McKenzie : Merry Christmas from Texas, USA! -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] remove namespace from xml

2009-12-03 Thread Frank Arensmeier
ns1:', 'xmlns:ns1="urn:Microsoft.Search "'); $r = array('', '', ''); return (str_replace($s, $r, $buffer)); } ob_start('callback'); $server->handle(); ob_end_flush(); // (...) ?> There are a complete example at this URL : http://touv.ouvaton.org/article.php3?id_article=104 [...] I am sure there are other examples too. /frank -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] [News] Affordable Independent Web Developer - Search Engine Optimization Services - March 19th, 2009

2009-03-20 Thread Frank Stanovcak
SPANK YOUR ASS SO HAR YOU'D NEVER >> TALK BACK >>> ANY WOMAN EVER AGAIN !!! >>> >>> >> >>> Oh, gee. >> >>Thanks for filters, Gmail. >> >>-- >>Thiago Henrique P

Re: [PHP] Stopping bad entries in PHP form

2009-03-19 Thread Frank Stanovcak
ields and stop a request from going through if it finds one of >> > >> those >> > >> "banned" words? I've searched for a solution but haven't been able >> > >> to >> >> > >> find it. >> > >> >> >

Re: [PHP] Re: Problems with exec() on windows

2009-03-19 Thread Frank Stanovcak
e quotes are required by gammu to send an >>> > > sms >>> > with >>> > > spaces in it. >>> > > >>> > > Any ideas? :-( >>> > > >>> > > Luke >>> > > >>> > >>>

Re: [PHP] How should I ....--its a date/timestamp issue

2009-03-02 Thread Frank Stanovcak
"Paul M Foster" wrote in message news:20090219022913.gl18...@quillandmouse.com... > On Wed, Feb 18, 2009 at 05:25:16PM -0600, Terion Miller wrote: > > > >> What about just accepting any date in to the system, and defaulting >> to >> the current date if any numptys/users try to set on

[PHP] Re: Stupid is as Stupid does

2009-02-28 Thread Frank Stanovcak
hing in > the logs, it dawned on me. > > If variable is an integer, die($var) returns nothing and is suppose to > return nothing, it takes a string as an argument to echo on death - > die("$var") is what I wanted. > > I need sleep. > > I did finally find the

Re: [PHP] Clarity needed OT

2009-02-06 Thread Frank Stanovcak
"Daniel Brown" wrote in message news:ab5568160902061416u10e761dal224ec7177d83e...@mail.gmail.com... > On Fri, Feb 6, 2009 at 13:46, Frank Stanovcak > wrote: >> >> Ok...I'm sure that somewhere in here has to be reference to the original >> topic, and ph

Re: [PHP] How can I use a function's default arguments but change one of the end ones in the list?

2009-02-06 Thread Frank Stanovcak
""Boyd, Todd M."" wrote in message news:33bde0b2c17eef46acbe00537cf2a19003d07...@exchcluster.ccis.edu... > -Original Message- > From: Daevid Vincent [mailto:dae...@daevid.com] > Sent: Friday, February 06, 2009 2:26 PM > To: php-general@lists.php.net > Subject: Re: [PHP] How can I use a f

Re: [PHP] long echo statement performance question

2009-02-06 Thread Frank Stanovcak
"Stuart" wrote in message news:a5f019de0902060932k1ccf2948ua42f3cfa33694...@mail.gmail.com... > 2009/2/6 Frank Stanovcak : >> >> "Richard Heyes" wrote in message >> news:af8726440902060918v6d2f1ee1ia3f839189874...@mail.gmail.com... >>>> W

Re: [PHP] Clarity needed OT

2009-02-06 Thread Frank Stanovcak
>> http://sperling.com http://ancientstones.com http://earthstones.com >> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, visit: http://www.php.net/unsub.php >> >> > > I think people should just be wise enough to understand the world they > live in, how things work, and when people are puppets. There are lots > of ways to find information out there... > > -- > http://www.voom.me | EFnet: #voom Ok...I'm sure that somewhere in here has to be reference to the original topic, and php...right? Frank...there is isn't there? *sigh* -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: going blind for looking...need eyes

2009-02-06 Thread Frank Stanovcak
rt', ViewPendingWorkOrders='$ViewPendingWorkOrders', ViewPendingArtwork='$ViewPendingArtwork', ViewCompletedArt='$ViewCompletedArt', ViewCompletedWorkOrders='$ViewCompletedWorkOrders', SearchWorkOrder='$SearchWorkOrder', EditWorkOrder='$EditWorkOrder', DelWorkOrder='$DelWorkOrder', ChangeStatus='$ChangeStatus', AddEditAdmin='$AddEditAdmin'"; plus there is an extra value with no matching field in the original query. $ViewMyOrders has no field assigned to it. Hope that helps some! Frank -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] long echo statement performance question

2009-02-06 Thread Frank Stanovcak
a elegant way. 2009/2/6 Frank Stanovcak : > I'm in the process of seperating logic from display in a section of code, > and wanted to make sure I wasn't treading on a performance landmine here, > so > I ask you wizened masters of the dark arts this... > > is there a ser

Re: [PHP] long echo statement performance question

2009-02-06 Thread Frank Stanovcak
"Richard Heyes" wrote in message news:af8726440902060918v6d2f1ee1ia3f839189874...@mail.gmail.com... >> Wouldn't have thought so. But for readability, you may find this a >> little easier instead: > > Slight correction: > > ?> > blah > > -- > Richard Heyes > > HTML5 Canvas graphing for Fir

[PHP] long echo statement performance question

2009-02-06 Thread Frank Stanovcak
- 40 lines, comma conjoined echo statments... echo 'blah', $var, 'blah', $var2,...ad nauseum ... to output mixed html and php var values? If so could you refer me to a work around, or better way? Frank -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: preg_match question...

2009-02-06 Thread Frank Stanovcak
t the 2nd array item should have had "total"... >> > > Probably want this: '#(\d+)(.+)#' > > -- > Thanks! > -Shawn > http://www.spidean.com yep. Relized it after I saw his post. the space doesn't hurt either '#(\d+) (.+)#' Frank...doh! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: preg_match question...

2009-02-06 Thread Frank Stanovcak
""bruce"" wrote in message news:234801c98863$88f27260$0301a...@tmesa.com... > hi... > > trying to figure out the best approach to using preg_match to extract the > number from the follwing type of line... > > " 131646 sometext follows.." > > basically, i want to extract the number, without the t

Re: [PHP] Garbage Collection

2009-02-06 Thread Frank Stanovcak
dd. Set up the relationship so that when a record in one of the two master tables is deleted the delete cascades to the linked table. One to many forced update/delete I think it's called if you want to do a search on it. Frank -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Blank page of hell..what to look for

2009-02-02 Thread Frank Stanovcak
a ; or } somewhere, and it just won't report it till I refresh like this. Hope that helps. Frank. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Switch statement Question

2009-02-02 Thread Frank Stanovcak
"tedd" wrote in message news:p06240801c5aa0ed7d...@[192.168.1.101]... > At 4:16 PM +0100 1/30/09, Jochem Maas wrote: >>tedd schreef: >>> At 4:43 PM -0500 1/29/09, Frank Stanovcak wrote: >>>> >" >>>> >>>> yes...tha

[PHP] frameworks

2009-01-30 Thread Frank Stanovcak
Ok. I've done some reading on frameworks for PHP now, and have this question. What are some good resources for learning about the various frameworks available, and do you recomend one over another? If so why? I started using PHP before frameworks came into the picture, and then had to take m

[PHP] Re: Switch statement Question

2009-01-29 Thread Frank Stanovcak
>"Alice Wei" wrote in message >news:snt101-w587cd616331fc59b84834af0...@phx.gbl... > >Hi, > > I have a code snippet here as in the following: > >//Switch statements between the four options >switch($string) { >case "": >$string= "NOT book.author='All'"; >break; >default: >$string= $string . "AN

Re: [PHP] New to PHP question

2009-01-28 Thread Frank Stanovcak
ke 'switch php' brings up loads of examples and refs. I still don't know anything about this pear, or other frameworks they speak of on here, but I'm sure I will learn it in time. :) Personally I think French art from the 1500's was better any way. Frank -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: New to PHP question

2009-01-28 Thread Frank Stanovcak
ng is that newlines are ignored, and the only way to get a line to break in a browser window is with the use of . As for the padding this is the same issue. In Browswer rendering all white space except the first one is ignored, and you have to use   for aditionall spaces. ie: 3 space would be '   ' or '   ' Hope that helps! Frank. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: validating directory and file name with preg_match

2009-01-28 Thread Frank Stanovcak
""Boyd, Todd M."" wrote in message news:33bde0b2c17eef46acbe00537cf2a19003bb9...@exchcluster.ccis.edu... > -Original Message- > From: Frank Stanovcak [mailto:blindspot...@comcast.net] > Sent: Wednesday, January 28, 2009 1:04 PM > To: php-general@l

[PHP] Re: validating directory and file name with preg_match

2009-01-28 Thread Frank Stanovcak
""Frank Stanovcak"" wrote in message news:a8.d6.08436.5cf80...@pb1.pair.com... > I'm limiting access to certain proceedures based on the file trying to use > them, and the directory they are located in on my server. Right now I am > using two preg_match

[PHP] validating directory and file name with preg_match

2009-01-28 Thread Frank Stanovcak
I'm limiting access to certain proceedures based on the file trying to use them, and the directory they are located in on my server. Right now I am using two preg_match statments as you will see. What I want to know is this. Is there a way to write a single regex for this that will supply the

Re: [PHP] Get Money Fast with the Government Grants

2009-01-27 Thread Frank Stanovcak
>> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, visit: http://www.php.net/unsub.php >> >> > > > -- > > Best Wishes > Andrew Williams > --- > 31 Davies Street > W1K 4LP, London, UK > www.NetPosten.dk > OK peeps...who's machine has a cold? Frank -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: New PHP User with a simple question

2009-01-27 Thread Frank Stanovcak
"Paul M Foster" wrote in message news:20090126222404.gc18...@quillandmouse.com... > On Mon, Jan 19, 2009 at 04:45:08PM -0500, Christopher W wrote: > >> Dear responders, >> >> I was not sure which post was the best to respond to all of you so I >> chose >> the original. >> >> I wanted to thank y

Re: [PHP] Make New-Age Money Online with Google

2009-01-27 Thread Frank Stanovcak
T...that should cover everyone...THIS IS A JOKE. I DO NOT OWN... 1. A YARD 2. A HOUSE FOR THE YARD I DON'T OWN 3. ANY RADIOLOGICAL MATERIALS 4. A SINGLE FRICKING THING REALLY SINCE YOU TAX MOST OF IT OUT OF ME ALREADY! NOW GO FIND SOMETHING MORE USEFULL TO DO WITH ALL MY TAX DOLLARS! frank. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Dirty Button

2009-01-26 Thread Frank Stanovcak
"tedd" wrote in message news:p06240802c5a28dd01...@[192.168.1.101]... > At 3:41 PM -0600 1/25/09, Micah Gersten wrote: >>tedd wrote: >>> At 7:02 PM + 1/25/09, Ashley Sheridan wrote: Tedd, what about having it reset if you then go back and select the original option without submi

Re: [PHP] can I do this without eval?[RESOLVED]

2009-01-22 Thread Frank Stanovcak
offered solution...highlighted below...I would still appreciate anyone letting me know if my understanding of call_user_func_array() is incorrect though. :) Thanks everyone! Frank //put the string fields directly in as we will be preparing the sql statment //and that will pro

Re: [PHP] can I do this without eval?

2009-01-22 Thread Frank Stanovcak
"Nathan Nobbe" wrote in message news:7dd2dc0b0901221048g2f089cf9s36ecb9a5b35ab...@mail.gmail.com... > On Thu, Jan 22, 2009 at 8:35 AM, Frank Stanovcak > wrote: > >> I'm trying to build a prepared statment and dynamically bind the >> variables >> to

Re: [PHP] Military <-> Standard times

2009-01-22 Thread Frank Stanovcak
"Richard Heyes" wrote in message news:af8726440901220050i71d99bf7m5425620f67350...@mail.gmail.com... >> PS - I think the best ever name for a Exception class is 'Tantrum': >> >>throw new Tantrum('Ra Ra Ra Aaaargh'); > > Lol. > > -- > Richard Heyes > > HTML5 Graphing for Firefox, Chrome,

[PHP] can I do this without eval?

2009-01-22 Thread Frank Stanovcak
ected me to know oop, and that is on my plate to learn after I finnish this project. Frank //initialize a variable to let us know this is the first time through on //the SET construction $i = true; //step through all the FILTERED values to build the SET statment foreach($FILT

[PHP] Re: Client/Server Printing

2009-01-20 Thread Frank Stanovcak
rint preveiw. If you can set the webserver to process .pdf files through php it will display in the adobe reader plug in and all the client has to do is hit print. www. fpdf .com Frank -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] developers life

2009-01-20 Thread Frank Stanovcak
than the app (even though its not) >> >>>> - lots more but lost interest / focus >> >>>> >> >>> Are you an INTP? >> >>> >> >>> http://www.personalitytest.net/cgi-bin/q.pl >> >>> >> >>> &

[PHP] Re: developers life

2009-01-20 Thread Frank Stanovcak
"Nathan Rixham" wrote in message news:32.be.60519.170f4...@pb1.pair.com... > well just for the hell of it; and because I'm feeling worn.. > > anybody else find the following true when you're a developer? > > - frequent bursts of side-tracking onto more interesting subjects > - vast amount of inh

Re: [PHP] Security question

2009-01-15 Thread Frank Stanovcak
"VamVan" wrote in message news:12eb8b030901141421u6741b943q396bc784136b7...@mail.gmail.com... > On Wed, Jan 14, 2009 at 2:22 PM, Frank Stanovcak > wrote: > >> This is mostly to make sure I understand how sessions are handled >> correctly. >> As far as sessio

Re: [PHP] installing php 5 with pdflib

2009-01-14 Thread Frank Arensmeier
outdated. //frank -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Security question

2009-01-14 Thread Frank Stanovcak
This is mostly to make sure I understand how sessions are handled correctly. As far as sessions are concerned the variable data is stored on the server (be it in memory or temp files), and never transmitted accross the net unless output to the page? So this means I should be able to store the

Re: [PHP] Quotes in querys

2009-01-14 Thread Frank Stanovcak
xt in each square > bracket block or PHP my give you a warning about an unintended string > literal. > > > Ash > www.ashleysheridan.co.uk > even though it might have it's drawbacks I've never had a problem with concat for sql statements. $sqlstmt = "Select Netid from Users where Netid = '" . $_SESSION['phpCAS']['user']} . "'"; Frank -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: php session GC error

2009-01-13 Thread Frank Stanovcak
So from everything I've read there is no real way to assure a session timeout with out timestamping it myself and dealing with it in code by doing a time compare. bummer. ""Frank Stanovcak"" wrote in message news:57.31.25553.de80d...@pb1.pair.com... > > &qu

[PHP] Re: php session GC error

2009-01-13 Thread Frank Stanovcak
"Shawn McKenzie" wrote in message news:e3.00.25553.8560d...@pb1.pair.com... > Frank Stanovcak wrote: >> "Nathan Rixham" wrote in message >> news:496d03d3.2060...@gmail.com... >>> Frank Stanovcak wrote: >>>> "Shawn McKenzie&q

[PHP] Re: php session GC error

2009-01-13 Thread Frank Stanovcak
"Nathan Rixham" wrote in message news:496d03d3.2060...@gmail.com... > Frank Stanovcak wrote: >> "Shawn McKenzie" wrote in message >> news:f8.ef.24097.e510d...@pb1.pair.com... >>> Frank Stanovcak wrote: >>>> I'm trying to make sure

[PHP] Re: php session GC error

2009-01-13 Thread Frank Stanovcak
"Shawn McKenzie" wrote in message news:f8.ef.24097.e510d...@pb1.pair.com... > Frank Stanovcak wrote: >> I'm trying to make sure that my sessions are timed out by my server. >> I'm running it on winxp, and my php.ini contains the following >> >> s

[PHP] php session GC error

2009-01-13 Thread Frank Stanovcak
t do I have to do to make this work right? Frank -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] variable probe revision

2009-01-12 Thread Frank Stanovcak
"Chris" wrote in message news:496bbd52.2080...@gmail.com... > Frank Stanovcak wrote: >> I posted this once before, and then tried to use it multiple times in a >> script. As you can guess I got a bunch of func already defined errors. >> >> Here is a revision

Re: [PHP] variable probe revision

2009-01-12 Thread Frank Stanovcak
"Ashley Sheridan" wrote in message news:1231796437.3558.62.ca...@localhost.localdomain... > On Mon, 2009-01-12 at 16:11 -0500, Frank Stanovcak wrote: >> I posted this once before, and then tried to use it multiple times in a >> script. As you can guess I got a bunc

[PHP] variable probe revision

2009-01-12 Thread Frank Stanovcak
I posted this once before, and then tried to use it multiple times in a script. As you can guess I got a bunch of func already defined errors. Here is a revision incase anyone decided to use it that will work multiple times in the same script for variable watching. ---Code follows--- k

Re: [PHP] switch vs elseif

2009-01-12 Thread Frank Stanovcak
""Eric Butera"" wrote in message news:6a8639eb0901121231r253eed48xe1974d8ef44ab...@mail.gmail.com... > On Mon, Jan 12, 2009 at 3:15 PM, Frank Stanovcak > wrote: >> I've googled, and found some confusing answers. >> I've tried searching the histo

Re: [PHP] switch vs elseif

2009-01-12 Thread Frank Stanovcak
"Ashley Sheridan" wrote in message news:1231793310.3558.55.ca...@localhost.localdomain... > On Mon, 2009-01-12 at 15:15 -0500, Frank Stanovcak wrote: >> I've googled, and found some confusing answers. >> I've tried searching the history of the news group, and

[PHP] switch vs elseif

2009-01-12 Thread Frank Stanovcak
=0;$i<3;$i++){ switch($i){ case 0: header pg1 code break; case 1: header pg2 code break; case 3: header pg3 code break; }; }; or would that be better served using an if...elseif structure? Frank -- PHP Ge

[PHP] switch vs elseif

2009-01-12 Thread Frank Stanovcak
=0;$i<3;$i++){ switch($i){ case 0: header pg1 code break; case 1: header pg2 code break; case 3: header pg3 code break; }; }; or would that be better served using an if...elseif structure? Frank --

Re: [PHP] Couple of beginner questions

2009-01-12 Thread Frank Stanovcak
nest. >> >> Cheers, >> >> tedd >> >> >> -- >> --- >> http://sperling.com http://ancientstones.com http://earthstones.com >> > Unless it's something like this: > > echo "$whatever"; > ?> > > Which is unlikely for a header tag, but I know this sort of format gets > used a lot by me and others, especially for setting alternate row styles > on tables (damn browsers and not supporting alternate rows!) > > > Ash > www.ashleysheridan.co.uk > Hey Ash...Why don't you just use CSS subclassing? h1.odd {class stuff here} h1.even {class stuff here} then no escaping, and no need to php your css styles. :) Frank -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Couple of beginner questions

2009-01-09 Thread Frank Stanovcak
the errant code and refresh I can suddenly see an error? Frank -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] First steps towards unix and php

2009-01-09 Thread Frank Stanovcak
*bangs head on wall* Great...just what I need. More acronyms. :P Frank "Paul Scott" wrote in message news:1231506224.7389.7.ca...@paul-laptop... > > On Fri, 2009-01-09 at 14:53 +0200, Paul Scott wrote: >> First choice is ./configure && make &&

Re: [PHP] [SOLVED] Re: can a session be used in a query?

2009-01-08 Thread Frank Stanovcak
e in the code. Hope that helps! I know I learned from it. Frank "tedd" wrote in message news:p06240806c58be7e24...@[192.168.1.101]... > Terion Miller wrote: > >>SOLVED: Thanks everyone I got it working it was the loop...took it out and >>now it works like a charm

[PHP] First steps towards unix and php

2009-01-08 Thread Frank Stanovcak
web based programming languages. Thanks in advance! Frank -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Because you guys/gals/girls/women/insert pc term hereare a smart lot

2009-01-08 Thread Frank Stanovcak
And people tell me that I'm just wrong. "Nathan Rixham" wrote in message news:4965dffc.6020...@gmail.com... > Robert Cummings wrote: >> On Thu, 2009-01-08 at 10:51 +, Richard Heyes wrote: until you have to dump it, zip it, ssh it over to another box and then import it back in >>> T

Re: [PHP] Re: can a session be used in a query?

2009-01-07 Thread Frank Stanovcak
'GLOBALS'){ if(sizeof($value) > 0){ breakarray($value); echo ''; }else{ echo 'EMPTY '; }; }else{ echo '"' , $value , '"'; }; }; echo ''; ?> - Original Message - From: Ashley Sheridan

Re: [PHP] Re: can a session be used in a query?

2009-01-07 Thread Frank Stanovcak
here is a handy little snippet of code I use. Just include it where you want to get a snap shot of all the variables in an app. ta ta for today boys! - Original Message - From: "Chris" To: "Terion Miller" Cc: "Frank Stanovcak" ; Sent: Wednesday, Ja

Re: [PHP] Re: can a session be used in a query?

2009-01-07 Thread Frank Stanovcak
I can echo fields in > the $row and get the results but when I try and use this: > >if ($row['AddEditAdmin'] == 'YES') { >?> > to sort out what menu items to load it just doesn't do its job. > I would say do this to see if what is in the return is what you are expecting foreach($row as $key=>$value){ echo $key , ': ' , $value , ''; }; just to make sure that the value is "yes", and not 1 or true or something like that. Frank -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: can a session be used in a query?

2009-01-07 Thread Frank Stanovcak
rking on, load it up, and then upload the page with all the code and refresh. I never really looked into why this was, but it's not that big of a hassle for me. *shrug* Frank ""Terion Miller"" wrote in message news:37405f850901071146i11d33987ga747ef2e4932f...

[PHP] Re: can a session be used in a query?

2009-01-07 Thread Frank Stanovcak
double quote, single quote I wrote that out because I always have a hard time seeing the two types of quotes so close together in code. Frank...let us know if it works! ""Terion Miller"" wrote in message news:37405f850901071146i11d33987ga747ef2e4932f...@mail.gmail.com... >I

[PHP] Logic puzzle. Not a question. Just for fun

2009-01-06 Thread Frank Stanovcak
training in logic structure or DB design, and yes I know the answer. E-mail me if you want it. Frank. the value of a status field is given in the sdk text as such... ...This number is determined by adding the following values together: State a = 0 State b = 1 State c = 2 State d = 3

[PHP] Re: Import files from directory

2009-01-06 Thread Frank Stanovcak
I may be mistaken, but it seems to me you would be better served letting it be file uploaded via php and process it as it arrives. This would save the chron run every 5 min, and dir search headaches. Or is there an issue that requires you to use an ftp transport? "Merlin Morgenstern" wrote

Re: [PHP] Because you guys/gals/girls/women/insert pc term here are a smart lot

2009-01-06 Thread Frank Stanovcak
So what I'm taking away from this is that I can index a text column, but that is relatively new. Based on experience with technology I'm going to guess it's not a very efficient index or search function yet. CHAR seems to be well entrenched, and the favorite for any column I may need to search

Re: [PHP] Because you guys/gals/girls/women/insert pc term hereare a smart lot

2009-01-05 Thread Frank Stanovcak
This would be the winning answer. I've been using text up till now. I'll have to change that. Thank you! "Robert Cummings" wrote in message news:1231185251.4.2.ca...@localhost... > On Mon, 2009-01-05 at 19:15 +, Stuart wrote: >> 2009/1/5 Frank Stano

Re: [PHP] Because you guys/gals/girls/women/insert pc term here are a smart lot

2009-01-05 Thread Frank Stanovcak
;m old not addled damnit!" :) "Stuart" wrote in message news:a5f019de0901051115ree20159tbbcf5b3cb2633...@mail.gmail.com... > 2009/1/5 Frank Stanovcak : >> It's been a while since I've programed (VB was on version 4) I was >> wondering >> if any one c

[PHP] Because you guys/gals/girls/women/insert pc term here are a smart lot

2009-01-05 Thread Frank Stanovcak
anks in advance, and have a great day! Frank -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Question on if() priorities

2008-12-12 Thread Frank Stanovcak
Thanks. Don't know how I could have missed that. "Maciek Sokolewicz" wrote in message news:49428d51.3090...@php.net... > Frank Stanovcak wrote: >> I can't seem to find a reference to this in the manual, but is there an >> order of precedence for and or xo

Re: [PHP] Need a brain to bounce some Mysql/DB thoughts off of!!

2008-12-12 Thread Frank Stanovcak
"Robert Cummings" wrote in message news:1229096146.22284.27.ca...@localhost... > On Fri, 2008-12-12 at 06:34 -0600, Jay Blanchard wrote: >> [snip] >> It's Christmas... the season of giving and tolerance :| >> [/snip] >> >> We will return you to your regularly scheduled Robert Cummings Jan 2nd, >

[PHP] Question on if() priorities

2008-12-12 Thread Frank Stanovcak
end code) which is if either of the first set, and either of the second set, and either of the third set is true return true. Thanks in advance! Frank -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Waste of storage space? [follow-up]

2008-11-07 Thread Frank Arensmeier
1 nov 2008 kl. 16.27 skrev Michelle Konzack: Hello Frank, Do you use Linux or Windows? Initially, the system I am working on will be installed under Mac OS X Server. If Windows you have already lost since the cluster size of e.g. Windows 2003 is 32 kByte or 64 kByte... If

Re: [PHP] Printing Web Page

2008-11-06 Thread Frank Arensmeier
a php file. This might be a good starting point. http://www.alistapart.com/articles/printyourway //frank -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Waste of storage space?

2008-10-29 Thread Frank Arensmeier
29 okt 2008 kl. 01.08 skrev Bastien Koert: On Tue, Oct 28, 2008 at 4:24 PM, Frank Arensmeier <[EMAIL PROTECTED]> wrote: Hi all. In short, I am working on a system that allows me to keep track of changes to a large amount of short texts (a couple of thousand text snippets, two or

[PHP] Re: Waste of storage space?

2008-10-29 Thread Frank Arensmeier
29 okt 2008 kl. 00.00 skrev Maciek Sokolewicz: Frank Arensmeier wrote: Hi all. In short, I am working on a system that allows me to keep track of changes to a large amount of short texts (a couple of thousand text snippets, two or three sentences per text). All text is stored in a

Re: [PHP] Waste of storage space?

2008-10-29 Thread Frank Arensmeier
e efficient when it comes to large texts. All compression techniques (in or out of php) will work better on more text. I noticed that too. //frank -- Postgresql & php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   3   4   5   6   >