On 8/5/06, Mace Eliason <[EMAIL PROTECTED]> wrote:
Hi,
I am having problems with uploading files to a windows server using
php. I have used the same script on other server with no problems.
From what I can tell this new server is running windows with IIS. I
think the problem is with the path
On Fri, 2006-08-04 at 19:12 -0700, Brian Dunning wrote:
> Is there a command to strip all non-alphanumerics form the beginning
> and end of a string?
>
> Ex.: '&^%kj.h,kj..*(' becomes 'kj.h,kj'
Cheers,
Rob.
--
..
| InterJinn Applica
Is there a command to strip all non-alphanumerics form the beginning
and end of a string?
Ex.: '&^%kj.h,kj..*(' becomes 'kj.h,kj'
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
I am having problems with uploading files to a windows server using
php. I have used the same script on other server with no problems.
From what I can tell this new server is running windows with IIS. I
think the problem is with the path.
Does anyone have any suggestions? Here is a s
On Sat, 2006-08-05 at 10:50 +0900, Dave M G wrote:
> Jochem
>
> Thank you for your continued assistance.
>
> > ^--- remove the caret as you dont want to only match when the line
> > starts with (the can be anywhere on the line)
> >
> Ah, I get it now. I was confused about the meaning of the
Jochem
Thank you for your continued assistance.
^--- remove the caret as you dont want to only match when the line
starts with (the can be anywhere on the line)
Ah, I get it now. I was confused about the meaning of the caret.
I'll assume you also have the mb extension setup.
Yes, I
Hello,
on 08/03/2006 05:18 PM Martin Alterisio said the following:
>> Anyway, you may want to read this more in depth reflection of the state
>> of the PHP framework world and recommendations on how to pick what suits
>> best for you:
>>
>> http://www.phpclasses.org/blog/post/52-Recommended-PHP-fr
Chris G wrote:
> I have already tried using
>
> foreach($_GET['question'] as $key => $value)
>
> the in_array function does not work with it for some reason.
'does not work with it' ??
use var_dump(); to see what's actually in your variables.
>
>
> On 8/5/06, *Jochem Maas* <[EMAIL PROTECT
On Tue, July 25, 2006 8:33 am, David Tulloh wrote:
> Larry Garfield wrote:
>> Disable short tags.
>>
>> The correct answer is (b). (PHP 6 won't even have short tags, so
>> get used to
>> not having them.)
>
> Can you find anywhere where this was announced? I don't recall seeing
> any decision on
On Mon, July 24, 2006 1:33 pm, Ryan A wrote:
> Hey Rob,
> Thanks for replying.
>
>
>> It's usually a sign of poor programming and/or
>> purist OOP programming.
>>
>> When I say purist OOP programming...
>> I saw
>> one really retarded
>> implementation of this kind of system where an
>> excess of 2
Chris G wrote:
> Hi all
>
> I have been stuck on this problem for 4 hours. Please anyone that can help
> here I would appreciate it.
>
> If I print_r($_GET) I have
>
> Array ([question] => Array ( [10] => 1 [11] => 2 [12] => 1 [13] => 1)'
>
>
> So now I try
>
> foreach($_GET['question'] as $k
On Mon, July 24, 2006 10:46 am, Ryan A wrote:
> This is not really a problem, more like a slightly OT
> question.
>
> Recently I have been testing some "CMS/carts/BB
> boards" and other related software, sometimes at the
> end of the page the software outputs the time it took
> to generate the page
On Tue, July 25, 2006 11:41 pm, Paul Scott wrote:
> I have googled around a bit, but not really found anything useful...
>
> Which is more efficient? A case switch or a $$method style method?
>
> An example:
>
> switch($action) {
> case 'edit':
> //do some stuff
> ...
> re
Hi all
I have been stuck on this problem for 4 hours. Please anyone that can help
here I would appreciate it.
If I print_r($_GET) I have
Array ([question] => Array ( [10] => 1 [11] => 2 [12] => 1 [13] => 1)'
So now I try
foreach($_GET['question'] as $key) {
if(!in_array($key, $_SESSION[
On Mon, July 24, 2006 11:58 pm, Paul Scott wrote:
>
> On Mon, 2006-07-24 at 14:17 -0500, Franco Pawlisz wrote:
>
>> My Client is specifically looking for a developer with strong front
>> end PHP experience knowledge of Java and or Ruby is a major plus.
>>
>
> What the heck is "front end PHP", or am
On Tue, July 25, 2006 10:32 am, James Nunnerley wrote:
> We've created a file manager which allows users to access their web
> space on
> a server. It's working brilliantly, except that it would seem there
> are
> some caching issues, either by the system cache or the web server
> cache that
> are
Put this at the top of the script:
Also, it's possible that the browser is timing out if the script is
too slow.
Another issue is that if you are closing/reopening the 2 database
connections between steps 2 and 3, then it's probably not very
efficient. Keeping them both open is much more effici
On Tue, July 25, 2006 11:47 pm, Chris wrote:
> There's a default for reply-to in the php.ini? What's the variable
> called - I can't see one. I can see these:
> ; For Win32 only.
> sendmail_from = [EMAIL PROTECTED]
>
> ; For Unix only. You may supply arguments as well (default: 'sendmail
> -t -i'
On Fri, 2006-08-04 at 17:23 -0300, Manuel Lemos wrote:
> Hello,
>
> on 08/03/2006 02:53 PM Robert Cummings said the following:
> >>> The main thing in Manual's post that got me writing this in the first
> >>> place was :
> >>>
> >>> "Imagine if there would be only one PDBC (JDBC for PHP). Instead
On Wed, July 26, 2006 7:00 am, Jay Blanchard wrote:
> [snip]
> I have code below which save MYSQL to csv file. I am using ADODB
> library to do this.
>
> The saving MYSQL to csv file is ok .
> However i need to allow the the user to enter file name for csv
> file.
>
> Anybody have any ideas
Hello,
on 08/03/2006 02:52 PM Kilbride, James P. said the following:
>> I admit I have not expressed myself clearly. What I meant is
>> not that people should be disallowed to implement alternative
>> APIs, but rather that they should not feel the need to do it.
>>
>> In the Java world, JDBC is
On Wed, July 26, 2006 5:16 am, Yannick Warnier wrote:
> I'm trying to deal with big files (over 4GB) with PHP4.3.9 ans PHP4.4
> but obviously it's not really possible.
You can't use something like file_get_contents() or file() because it
would pull the whole 4GB into RAM, but
http://php.net/fopen
Hello,
on 08/03/2006 02:53 PM Robert Cummings said the following:
>>> The main thing in Manual's post that got me writing this in the first
>>> place was :
>>>
>>> "Imagine if there would be only one PDBC (JDBC for PHP). Instead of that
>>> we have a never ending choice of PHP database abstraction
On Wed, July 26, 2006 8:40 am, Jochem Maas wrote:
>> How did you know that he had an extra space in $u?
Actually...
Since he's getting them from a file, and since fread() and friends
INCLUDE the newline at the end, I would now suggest that the "extra"
character is a single newline, and not a spac
Adam Zey wrote:
Al wrote:
James Nunnerley wrote:
I want to have a regular expression that check the following criteria
are
met by $password:
- contains at least 6 characters (any)
- has at least 1 letter
- has at least 1 number
- other 6 characters can be anything...
I'm happy to work out th
On Fri, August 4, 2006 1:08 pm, Jim Moseby wrote:
>>
>> Jim Moseby wrote:
>> >
>> > I recently read an article about IP fingerprinting. The
>> concept is that
>> > every PC-NIC-CABLE-FIREWALL combination has subtle, but measurable
>> > differences in the way they communicate. It was very
>> in-de
On Fri, 2006-08-04 at 17:15 -0300, Manuel Lemos wrote:
> Hello,
>
> on 08/03/2006 02:49 PM Robert Cummings said the following:
> The point of the post is that there is no framework in particular to
> recommend. I use my own packages for my needs. They suit me well. It
> does not mea
On Thu, August 3, 2006 4:27 pm, tedd wrote:
> At 2:23 PM -0500 8/3/06, Richard Lynch wrote:
>>Note that the number of zip codes is around 60K in the TIGER data,
>> and
>>there have been a whole mess of zip codes added since then.
>
>
> Can you get the postal code by themselves? The last time I look
Did you try to use "-" as the file and pipe the output?...
That might work...
As far as the Tidy not validating the included PHP, I'm not sure what
you mean, but I don't see this making the PHP code any less secure
than it was before you wrapped Tidy around it...
On Fri, August 4, 2006 6:21 am,
On Fri, August 4, 2006 7:14 am, David Ellsworth wrote:
> I was wondering how simple it would be to set up a script to provide a
> subscribe/unsubscribe form for a list serve. The form would send an
> email to
> the subscribe address or unsubscribe address as selected.
It's pretty simple:
Subsc
Hello,
on 08/03/2006 02:49 PM Robert Cummings said the following:
The point of the post is that there is no framework in particular to
recommend. I use my own packages for my needs. They suit me well. It
does not mean they will suit everybody.
>>> How would you know that there is no
On Fri, August 4, 2006 10:25 am, Andrew Senyshyn wrote:
> I need to get local user IP, but server with apache and php is in
> another subnetwork.
> So from server environment I can get only router's IP.
> The only solution that I see - is getting with some magic algorithm
> local IP from brouser an
>
> Jim Moseby wrote:
> >
> > Found it:
> >
> > http://www.caida.org/publications/papers/2005/fingerprinting/
>
> Thanks! Interesting stuff...
>
> Regards,
> Austin.
No problem. My recollection of the technique was a bit off, but the concept
was still there. ;-)
JM
--
PHP General Mail
Jim Moseby wrote:
>
> Found it:
>
> http://www.caida.org/publications/papers/2005/fingerprinting/
Thanks! Interesting stuff...
Regards,
Austin.
signature.asc
Description: OpenPGP digital signature
Austin Denyer wrote:
> Jochem Maas wrote:
>> John Nichel wrote:
>>> Well, if you would stop using the Vic20, and upgrade!
>> how dare you call my altair a vic20. new-fangled rubbish. ;-)
>> you want real authentication? get some carrier pidgeons like us real
>> programmers.
>
> So, how many differ
tedd wrote:
At 1:26 PM -0400 8/4/06, John Nichel wrote:
tedd wrote:
At 12:55 PM -0400 8/4/06, John Nichel wrote:
Wait, are you telling me that I can't auth my customers based on IP
alone? Great, now how do I let them view their sensitive data? ;)
Okay, how do you?
Retina scan, and DNA sa
Jochem Maas wrote:
> John Nichel wrote:
>>
>>Well, if you would stop using the Vic20, and upgrade!
>
> how dare you call my altair a vic20. new-fangled rubbish. ;-)
> you want real authentication? get some carrier pidgeons like us real
> programmers.
So, how many different tunes did you get your
John Nichel wrote:
> Jochem Maas wrote:
>> Jim Moseby wrote:
Jim Moseby wrote:
> I recently read an article about IP fingerprinting. The
concept is that
> every PC-NIC-CABLE-FIREWALL combination has subtle, but measurable
> differences in the way they communicate. It was ve
Jochem Maas wrote:
Jim Moseby wrote:
Jim Moseby wrote:
I recently read an article about IP fingerprinting. The
concept is that
every PC-NIC-CABLE-FIREWALL combination has subtle, but measurable
differences in the way they communicate. It was very
in-depth, but it
worked amazingly well.
Jim Moseby wrote:
>> Jim Moseby wrote:
>>> I recently read an article about IP fingerprinting. The
>> concept is that
>>> every PC-NIC-CABLE-FIREWALL combination has subtle, but measurable
>>> differences in the way they communicate. It was very
>> in-depth, but it
>>> worked amazingly well. I
>
> Jim Moseby wrote:
> >
> > I recently read an article about IP fingerprinting. The
> concept is that
> > every PC-NIC-CABLE-FIREWALL combination has subtle, but measurable
> > differences in the way they communicate. It was very
> in-depth, but it
> > worked amazingly well. If I can find
Using the OB functions I got it done!!
Thanks y'all!!
Miguel
-Original Message-
From: Weber Sites [mailto:[EMAIL PROTECTED] Behalf Of WeberSites
LTD
Sent: Sabado, 29 de Julio de 2006 02:00 p.m.
To: 'MIGUEL ANTONIO GUIRAO AGUILERA'; php-general@lists.php.net
Subject: RE: [PHP] Saving a dyn
Jim Moseby wrote:
>
> I recently read an article about IP fingerprinting. The concept is that
> every PC-NIC-CABLE-FIREWALL combination has subtle, but measurable
> differences in the way they communicate. It was very in-depth, but it
> worked amazingly well. If I can find the article, I'll pos
>
> Thanks.
>
> Not that I have done this on the net, but has anyone thought about
> using a fuzzy logic approach to the problem? While it wouldn't be a
> perfect solution, you could set a threshold you're comfortable with.
>
> Also while your DNA comment was meant to be humorous, it's not a b
At 1:26 PM -0400 8/4/06, John Nichel wrote:
tedd wrote:
At 12:55 PM -0400 8/4/06, John Nichel wrote:
Wait, are you telling me that I can't auth my customers based on IP
alone? Great, now how do I let them view their sensitive data? ;)
Okay, how do you?
Retina scan, and DNA sample.
Seriou
Jochem Maas wrote:
Andrew Senyshyn wrote:
Hi all,
I need to get local user IP, but server with apache and php is in
another subnetwork.
So from server environment I can get only router's IP.
The only solution that I see - is getting with some magic algorithm
local IP from brouser and sending it
tedd wrote:
At 12:55 PM -0400 8/4/06, John Nichel wrote:
Wait, are you telling me that I can't auth my customers based on IP
alone? Great, now how do I let them view their sensitive data? ;)
Okay, how do you?
Retina scan, and DNA sample.
Seriously though, not by IP in any way, shape or f
At 12:55 PM -0400 8/4/06, John Nichel wrote:
Wait, are you telling me that I can't auth my customers based on IP
alone? Great, now how do I let them view their sensitive data? ;)
Okay, how do you?
tedd
--
---
http://sperling.com http://ancientstones.com http://earthstones.com
--
PHP G
On Fri, 2006-08-04 at 13:03 -0400, John Nichel wrote:
>
> Perl compatible regexs are faster* and more powerful. Course, writing a
> good Perl regex is an art form in itself (probably why O'Reilly released
> a book just on regexs), and takes some time (and headaches) to master
> (if one ever doe
Dave M G wrote:
PHP List,
Recently I wrote a piece of code to scrape data from an HTML page.
Part of that code deleted all the unwanted text from the very top of the
page, where it says "of a "" tag.
That code looks like this:
ereg_replace("", "", $htmlPage);
It works fine. But I noticed th
Andrew Senyshyn wrote:
> Hi all,
>
> I need to get local user IP, but server with apache and php is in
> another subnetwork.
> So from server environment I can get only router's IP.
> The only solution that I see - is getting with some magic algorithm
> local IP from brouser and sending it to serv
Hi all,
I need to get local user IP, but server with apache and php is in
another subnetwork.
So from server environment I can get only router's IP.
The only solution that I see - is getting with some magic algorithm
local IP from brouser and sending it to server.
My application is for intrane
Dave M G wrote:
PHP List,
Recently I wrote a piece of code to scrape data from an HTML page.
Part of that code deleted all the unwanted text from the very top of the
page, where it says "of a "" tag.
That code looks like this:
ereg_replace("", "", $htmlPage);
It works fine. But I noticed th
On Friday 04 August 2006 10:07, Robert Cummings wrote:
> You mean the http protocol won't let you write. At any rate, you can try
> using ftp instead of http (you'll need to make sure it's set up on the
> images server). Alternatively you can use a network file system or use
> CURL or low level soc
Al wrote:
James Nunnerley wrote:
I want to have a regular expression that check the following criteria are
met by $password:
- contains at least 6 characters (any)
- has at least 1 letter
- has at least 1 number
- other 6 characters can be anything...
I'm happy to work out the structure of a p
On Fri, 2006-08-04 at 10:50 -0400, blackwater dev wrote:
> I have a web server and an images server. My web server doesn't have
> enought space for the images, hence the images server. I have to download
> properties from a realty database hourly and the data goes in to a db on my
> webserver whi
On Fri, 2006-08-04 at 10:50 -0400, blackwater dev wrote:
> Fopen, however, won't let
> me write using the http protocol. How can I open and write files between
> servers?
This scenario would be one of the times that I would use LOB's for the
image data. That way you could simply drop in anothe
On Friday 04 August 2006 15:50, blackwater dev wrote:
> I have a web server and an images server. My web server doesn't have
> enought space for the images, hence the images server. I have to download
> properties from a realty database hourly and the data goes in to a db on my
> webserver while
blackwater dev wrote:
I have a web server and an images server. My web server doesn't have
enought space for the images, hence the images server. I have to
download
properties from a realty database hourly and the data goes in to a db
on my
webserver while the image needs to be taken from a
I have a web server and an images server. My web server doesn't have
enought space for the images, hence the images server. I have to download
properties from a realty database hourly and the data goes in to a db on my
webserver while the image needs to be taken from a MSSQL db and written to
th
Dave M G wrote:
> Jochem,
>
> Thank you for responding, and for explaining more about regular
> expressions.
>
>> yes but you wouldn't use preg_replace() but rather preg_match() or
>> preg_match_all()
>> which gives you back an array (via 3rd/4th[?] reference argument)
>> which contains
>> the te
what I need is what I would use after the form is submitted - responding to
whether the form sent the value (post likely from a dropdown field) of
"subscribe" or unsubscribe" to the posted page for processing.
On 8/4/06 8:52 AM, "Duncan Hill" <[EMAIL PROTECTED]> wrote:
> On Friday 04 August 2006
Jochem,
Thank you for responding, and for explaining more about regular expressions.
yes but you wouldn't use preg_replace() but rather preg_match() or
preg_match_all()
which gives you back an array (via 3rd/4th[?] reference argument) which contains
the texts that matched (and therefore want t
James Nunnerley wrote:
I want to have a regular expression that check the following criteria are
met by $password:
- contains at least 6 characters (any)
- has at least 1 letter
- has at least 1 number
- other 6 characters can be anything...
I'm happy to work out the structure of a postcode etc
Yes, the list serve software has the opt-in/confirmation stuff covered. I'm
just trying to get the sub/unsub form on the website going.
Thanks
David
On 8/4/06 8:40 AM, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> are you doing your own mailing list management, or using a package that
> inc
In most cases, your PHP build is set up with mail() attached to whatever
SMTP you have on the server.
you would just use the following...
mail($recipientemail,$subject,$message);
On 8/4/06, Duncan Hill <[EMAIL PROTECTED]> wrote:
On Friday 04 August 2006 13:27, Jay Blanchard wrote:
> [snip]
>
On Friday 04 August 2006 13:27, Jay Blanchard wrote:
> [snip]
> I was wondering how simple it would be to set up a script to provide a
> subscribe/unsubscribe form for a list serve. The form would send an
> email to
> the subscribe address or unsubscribe address as selected.
> [/snip]
>
> I wondere
[snip]
I was wondering how simple it would be to set up a script to provide a
subscribe/unsubscribe form for a list serve. The form would send an
email to
the subscribe address or unsubscribe address as selected.
[/snip]
I wondered about that the other day myself and came to the conclusion
that it
On 7/31/06, Chris <[EMAIL PROTECTED]> wrote:
BBC wrote:
> Hi list..
>
> Please any one point me to the web which talk about making transaction
with paypal step by step. Some body offered me the source
> code and tutorial but until know he or she didn't send me.
http://www.paypal.com
I'm sure s
Jay Blanchard wrote:
> Good news/kinda' bad news (but not really); I am proud to say that I
> have been promoted to Director of IT in my little corner of the world.
did they give you some pointy hair to go with that title? ;-)
congrats btw :-)
> This creates an immediate opening for a creative a
I was wondering how simple it would be to set up a script to provide a
subscribe/unsubscribe form for a list serve. The form would send an email to
the subscribe address or unsubscribe address as selected.
Thanks
David
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: htt
Ford, Mike wrote:
> On 04 August 2006 11:30, Dave M G wrote:
>
>> Jochem,
>>
...
>
> That's where capturing expressions and backreferences come in handy:
>
> preg_replace ("/.*(.*).*/", "$1", $htmlPage);
>
> (add qualifiers and other options to taste, as before!)
ah yes, good point - you
I want to have a regular expression that check the following criteria are
met by $password:
- contains at least 6 characters (any)
- has at least 1 letter
- has at least 1 number
- other 6 characters can be anything...
I'm happy to work out the structure of a postcode etc, but to be honest I'm
st
Dave M G wrote:
> Jochem,
>
> Thank you for responding.
>
>>
>> does this one work?:
>> preg_replace('#^<\!DOCTYPE(.*)]*>#is', '', $htmlPage);
>
> Yes, that works. I don't think I would have every figured that out on my
> own - it's certainly much more complicated than the ereg equivalent.
1. t
Good news/kinda' bad news (but not really); I am proud to say that I
have been promoted to Director of IT in my little corner of the world.
This creates an immediate opening for a creative applications developer
with PHP, MySQL, Oracle, the usual web skills/experience in the San
Antonio, Texas area
On 04 August 2006 11:30, Dave M G wrote:
> Jochem,
>
> Thank you for responding.
>
> >
> > does this one work?:
> > preg_replace('#^<\!DOCTYPE(.*)]*>#is', '', $htmlPage);
>
> Yes, that works. I don't think I would have every figured
> that out on my
> own - it's certainly much more complicated
Hello.
Since my ISP does not provide the tidy module for Apache, I tested
writing a wrapper script for a locally installed tidy binary. In
general, the script is triggered by a modification to the .htaccess
file like so:
AddHandler server-parsed .php
Action server-parsed /tidy_wrapper.php
Dave M G wrote:
> Chris, Ligaya, Dave,
>
> Thank you for responding. I understand the difference in principle
> between ereg and preg much better now.
>
> Chris wrote:
>> ! in perl regular expressions means "not" so you need to escape it:
>> \!
> Still, when including that escape character, the f
On 04/08/06, Dave M G <[EMAIL PROTECTED]> wrote:
It seemed that the main difference was that preg_replace required
forward slashes around the regular expression, like so:
preg_replace("//", "", $htmlPage);
It requires delimiters - slashes are conventional, but other
characters can be used.
Jochem,
Thank you for responding.
does this one work?:
preg_replace('#^<\!DOCTYPE(.*)]*>#is', '', $htmlPage);
Yes, that works. I don't think I would have every figured that out on my
own - it's certainly much more complicated than the ereg equivalent.
If I may push for just one more examp
On 04 August 2006 10:52, Dave M G wrote:
> Chris, Ligaya, Dave,
>
> Thank you for responding. I understand the difference in principle
> between ereg and preg much better now.
>
> Chris wrote:
> > ! in perl regular expressions means "not" so you need to escape it:
> > \!
AFAIR, that's only true
Chris, Ligaya, Dave,
Thank you for responding. I understand the difference in principle
between ereg and preg much better now.
Chris wrote:
! in perl regular expressions means "not" so you need to escape it:
\!
Still, when including that escape character, the following preg
expression does n
On 04/08/06, Chris <[EMAIL PROTECTED]> wrote:
Dave M G wrote:
> PHP List,
>
> Recently I wrote a piece of code to scrape data from an HTML page.
>
> Part of that code deleted all the unwanted text from the very top of the
> page, where it says " of a "" tag.
> Is there any reason why either ere
83 matches
Mail list logo