'GLOBALS'){
if(sizeof($value) > 0){
breakarray($value);
echo '';
}else{
echo 'EMPTY ';
};
}else{
echo '"' , $value , '"';
};
};
echo '';
?>
- Original Message -
From: Ashley Sheridan
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
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
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
*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 &&
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
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
=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
--
=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
"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
""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
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
"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
"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
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
"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
"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
"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
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
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
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
outdated.
//frank
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
"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
"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
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
>> >>>
>> >>>
&
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
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
"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,
"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
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
"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
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
"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
>>
>> --
>> 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
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
""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
""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
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
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
>"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
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
"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
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
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
""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
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
- 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
"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
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
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
>> 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
"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
""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
"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
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
"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
e quotes are required by gammu to send an
>>> > > sms
>>> > with
>>> > > spaces in it.
>>> > >
>>> > > Any ideas? :-(
>>> > >
>>> > > Luke
>>> > >
>>> >
>>>
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.
>> > >>
>> >
SPANK YOUR ASS SO HAR YOU'D NEVER
>> TALK BACK
>>> ANY WOMAN EVER AGAIN !!!
>>>
>>>
>>
>>> Oh, gee.
>>
>>Thanks for filters, Gmail.
>>
>>--
>>Thiago Henrique P
$character ) . "\n";
}
Then you can look up the values in a ASCI table.
/frank
29 dec 2006 kl. 11.01 skrev Peter Lauri:
Try:
$string_as_array = explode("\n", $string);
echo "";
print_r($string_as_array);
echo "";
The array that you get will contain se
other way round by using e.g. curl or
anything else. If anybody else is able to open the URL you provided,
it must be either you code or your server / PHP config that is
messing things up.
//frank
11 jan 2007 kl. 17.01 skrev Németh Zoltán:
2007. 01. 11, csütörtök keltezéssel 16.55-kor J
welcome back again.
//frank
11 jan 2007 kl. 17.54 skrev André Medeiros:
Hi list.
I know this may be a bit out of topic, but I've decided to try.
This website I'm maintaining opens just fine in firefox, and loads
everything. However, the same doesn't happen in IE, since the stat
string
matches against the pattern, everything is ok
return $input;
} else {
return false;
}
}
if ( invalidchar ( $my_string ) == false ) {
// do some stuff
} else {
echo "You passed the test";
}
// untested
// frank
1
from? A simple select list would do the trick.
//frank
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lcalhost), or - as you
already mentioned - it is youTube that blocks your calls in some way
(therefore, error message might give you a clue why).
Another thing that poped up in my mind - curl. Tried that?
//frank
Robert Porter
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, vis
ncoding in your html?
Maybe you could give us a link to a test page?
//frank
26 jan 2007 kl. 10.33 skrev Dave Goodchild:
Hi all, I posted a question a couple of days ago regarding a web
app I have
wherein users are able to indicated prices and concessions via a
text field,
and the resulting
Hello,
actually i am workinh with the ldap functions of php5.
Reading the docs i found the constants
GSLC_SSL_NO_AUTH
GSLC_SSL_ONEWAY_AUTH
GSLC_SSL_TWOWAY_AUTH
They are simply documented, but i can't find any docs about them. Neither at
php.net not via google.
So - what they are for and
Hello Roman,
On Monday 05 February 2007 17:12, Roman Neuhauser wrote:
> > actually i am workinh with the ldap functions of php5.
> > Reading the docs i found the constants
> >
> > GSLC_SSL_NO_AUTH
> > GSLC_SSL_ONEWAY_AUTH
> > GSLC_SSL_TWOWAY_AUTH
> >
> > They are simply documented, but i can
5 feb 2007 kl. 22.12 skrev H.T:
Do you know good regular expression editor or something simialar?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Regex online: www.regextester.com
//frank
--
PHP General Mailing List (http://www.php.net
html code is little bit messed up.
http://validator.w3.org/check?uri=http%3A%2F%2Fwww.fcviikingit.com%
2Fnew%2Ftestimenu.php
//frank
"Roman Neuhauser" <[EMAIL PROTECTED]> kirjoitti
viestissä:[EMAIL PROTECTED]
# [EMAIL PROTECTED] / 2007-02-07 08:32:47 +0200:
Hello,
I just
far.
What is your opinion?
regards,
//frank
27 jan 2007 kl. 01.12 skrev Jochem Maas:
Otto Wyss wrote:
Paul Novitski wrote:
I formulated my question in general since I couldn't find an other
message here about supporting multiple languages.
http://www.w3.org/International/articles/
Anyone?
//frank
8 feb 2007 kl. 11.24 skrev Frank Arensmeier:
Hello.
I would like to hook up on this issue a little bit more. I am
wondering if anybody is willing to share some good advices
regarding how to implement a good (normative) url structure so to
say when it comes to multi
Thank you Paul for your comments - very valuable!
//frank
9 feb 2007 kl. 10.08 skrev Paul Novitski:
8 feb 2007 kl. 11.24 skrev Frank Arensmeier:
I would like to hook up on this issue a little bit more. I am
wondering if anybody is willing to share some good advices
regarding how to
What would happen
if a page is available in English and e.g. american English or when a
certain domain is not available?
Right now I am playing with mod_rewrite. Looks promising.
//frank
9 feb 2007 kl. 13.23 skrev Robert Cummings:
On Fri, 2007-02-09 at 09:03 +0100, Frank Arensmeier wrote:
An
9 feb 2007 kl. 15.38 skrev Tim:
-Message d'origine-
De : Frank Arensmeier [mailto:[EMAIL PROTECTED]
Envoyé : vendredi 9 février 2007 14:51
À : Robert Cummings
Cc : PHP List; Jochem Maas; Otto Wyss
Objet : Re: [PHP] Multi lingual pages
Thank you Robert.
Actually, I am not so
Spontaneously, my suggestion would to pipe the STDERR output from
your command to a file. I have to admit that this doesn't feel like
the most efficient solution since you would involve some reading /
writing to your filesystem.
Regards.
//frank
17 feb 2007 kl. 21.49 skrev Peter
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
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
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
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] =>
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
(.+).
> 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
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
(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
>. 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
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
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
";
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 € *
>
>
&
> "")
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
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
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
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
;
> $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
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
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
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
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
eaks ('\n' or
something like this). The code above is resulting in the following
error massage: "Parse error: parse error, expecting `')'' in
/xxx/xxx/xxx/TMPz06yoces6o.php on line 2."
Is there a simple solution for this problem?
Regards,
Frank
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thank you Stian!
In Swedish they say "Sometimes you can't see the forest by all the
trees."
/frank
2005-02-24 kl. 09.45 skrev Stian Berger:
On Thu, 24 Feb 2005 09:14:32 +0100, Frank Arensmeier
<[EMAIL PROTECTED]> wrote:
Hello everybody!
I was wondering if you could
Dave!
I would start by reading the PHP manual. Look for a function called
'imagecopyresized()'. This might help.
/frank
2005-02-28 kl. 16.34 skrev Bosky, Dave:
Does anyone have a nice function that will resize an uploaded image to
specific width/height dimensions?
I wanted to find some
201 - 300 of 547 matches
Mail list logo