Hi.
I want to strip everything after a / in the HTTP_USER_AGENT for
example: Opera 9.10/blah/blah would become only Opera 9.10
Lets say
$user = $_SERVER["HTTP_USER_AGENT"];
$browser = ("/", $user);
Is this correct?
Isn't something needed in the browser variable?
Thanks
Wikus
--
PHP General Ma
We have a fairly complex product that is all PHP based GUI.
We're in need of some kind of "graphical tool" (web, stand alone, windows,
linux, osx whatever) that will take a directory tree, recursively traverse
all the files, look for 'includes' and 'requires' (and the _once versions
too) and then
because I like talking to myself :-P
Jochem Maas wrote:
> hi,
>
...
> I definitely give a hoot about the content returned ... all I want is for the
> request to
> go out on the wire and then have my script immediately continue with what it
> should be doing.
>
> I believe this would req
Al wrote:
> Good point about the ' evil haxor code here; '. That's
> bad for our users, not the site, per se.
what is bad for your users is bad for your site, on top of that
the script is running in the context of your domain - all sorts of
nasty possibilities that could affect your site.
>
> R
> Warning: ftp_put(): php_connect_nonb() failed: No route to host (65) in
> /home/beachgla/public_html/catalog/update/index.php on line 475
This tells me that you are unable to find/connect to the "ftpServer"
that you are giving ftp_connect()
I am wondering if your conditional was not working
[snip]
I really don¹t know why I¹m getting the Fatal error. Do I need to do
something else that I just don¹t know about?
[/snip]
Make sure your upload form and your php.ini reflect the new upper limit.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/un
hi,
I have a tradedoubler webbug to implement in site - not a problem as such - but
I have a slight issue when it comes to online payments.
I have an order processing page that is requested *directly* by an online
payment service
in order to tell the site/system that a given order has successful
Hi everyone,
Quick question I¹m trying to increase the memory limit so that I can
upload larger files to an application I¹m running. I¹m using Apache¹s
resource .htaccess file to change PHP on the fly. Below is my .htaccess
file.
php_value memory_limit 30M
php_value post_max_size 25M
php_valu
It's actually quite simple. You simply add another layer of grouping.
General case:
$result = mysql_query("SELECT a, b, c, d FROM foo ORDER BY a, b, c");
while ($record = mysql_fetch_object($result)) {
$roster[$record->a][$record->b][] = $record;
}
ksort($roster);
foreach ($roster as $a =>
Ive followed your example on grouping. Im still trying to understand all of
the code but ive made great progess on this with your example. Now I have
one last issue and this will be solved. Ill remind here what Im trying to
achieve
I have a table for leagues, lookup table and team roster. There
Could anyone help me on this one:
I can create sessions, see the cookies appear like flies in d:\tmp at a rate of
more than 2 per second, and anyhow the session never survives the next click.
To test I use the example-file "Uitboeksessies.php" as enclosed, it works in
the office, not here at
Chris wrote:
> Chuck Anderson wrote:
>> Chris wrote:
>>> Chuck Anderson wrote:
>>>
It thought it would be bundled with my Windows version pf Php 4.4.1,
but it is not.
I've searched for it and can't find it at php.net.
>>>
>>> You didn't search very hard.
>>>
>>
>>
> -Original Message-
> From: Dan Shirah [mailto:[EMAIL PROTECTED]
> Sent: Friday, January 19, 2007 3:10 PM
> To: php-general@lists.php.net
> Subject: [PHP] Conditional Select
>
> I have a page that shows all outstanding tickets, what I'm
> trying to have it do is let users search by sev
I have a page that shows all outstanding tickets, what I'm trying to have it
do is let users search by several categories. I want to be able to filter
the results based on the user input.
For instance, say I have an employee that wants to find ticket #2. He
enters "2" in the Request ID field a
True, there's rarely One True Answer. That's one reason why there is no
clear-cut definition of "Expert". However, there are frequently better or
worse solutions to a problem. It's easier to pinpoint when someone is not
going with the grain of the language than when they are.
For instance,
On Fri, 2007-01-19 at 19:21 +0100, Delta Storm wrote:
> Hi,
>
> I have learned as lot about PHP but I still dont know how do they build
> PHP based web sites.
Obviously you haven't learned enough ;)
> I need to build a complete PHP site with a lot of content and integrate
> CSS,javaScript and
Hi,
I have learned as lot about PHP but I still dont know how do they build
PHP based web sites.
I need to build a complete PHP site with a lot of content and integrate
CSS,javaScript and a lot of other stuff (for the school)
(Complete site for example. www.domain1.com/index.php or
www.dom
Ah, I see. In Brad's reply there was two $result = mssql_query($sql) or
die(mssql_error()); in the code. Removed the one from outside of the loop
and it works fine now.
Thanks to both of you for your help!
On 1/18/07, Chris <[EMAIL PROTECTED]> wrote:
Dan Shirah wrote:
> The code above d
Good point about the ' evil haxor code here; '. That's bad for
our users, not the site, per se.
Raw text to html is primarily done with a series of preg_replace() operations.
No include() or exec() allowed near the text.
Sounds like I'm in pretty good shape.
Thanks for the help..
Jochem
Description:
Warning: ftp_put(): php_connect_nonb() failed: No route to host (65)
I get this error with the reproduce code. it also says Warning: ftp_put():
Type set to I.
It is not uploading the file correctly.
i have php 4.4.1 on iPowerWeb's server, so no upgrade is possible.
Th
Where can I check out the plugin?
Maybe I shouldn't have mentioned plugin and firefox...
It's not a plugin for firefox like other firefox's plugins...
In fact, when I downloaded somewhere arround the web
the name of the thing (won't call it plugin again) was
"Site Programmer Plugin Assistant" (
Kiran Malla wrote:
> Hello,
>
> What are all the flags and variables to set to cross compile PHP for arm? I
> didn't get any info on the query I posted earlier. If anyone has tried php
> on arm linux, please let me know the steps.
if google didn't give any answers then I might suggest the php int
Al wrote:
> I've got a website on a virtual-host, Apache/Linux system running php
> scripts.
>
> I particular, I've designed a CMS where designated individuals compose
> and edit text in an html textarea, and then save the raw text in files.
> Custom [i.e., proxie] tags are used for emphasizing an
Hello,
What are all the flags and variables to set to cross compile PHP for arm? I
didn't get any info on the query I posted earlier. If anyone has tried php
on arm linux, please let me know the steps.
Thanks so much,
Regards,
Kiran
On 1/18/07, Kiran Malla <[EMAIL PROTECTED]> wrote:
Hello,
On Sat, Jan 20, 2007 at 12:37:08AM +0800, Denis L. Menezes wrote:
> Dear friends.
>
> Can anyone please show me calendar scripts to make a calendar with a monthly
> display as shown in http://www.easyphpcalendar.com/ ?
>
> Thanks
> Denis
>
> --
> PHP General Mailing List (http://www.php.net/
[snip]
Can anyone please show me calendar scripts to make a calendar with a
monthly
display as shown in http://www.easyphpcalendar.com/ ?
[/snip]
Have you STFW or RTFM? There is a truckload of PHP code on the web that
you can review, dissect, and learn from.
--
PHP General Mailing List (http:
# [EMAIL PROTECTED] / 2007-01-19 15:43:32 +:
> >
> >>>1. Why did you remove the backslash? (the original was correct)
> >>>
> >>I have a regular expression tester plugin in firefox and it validates
> >>Ok with the expression he provided.
> >>
> >JavaScript is *not* PHP.
>
> As far as I can rea
Dear friends.
Can anyone please show me calendar scripts to make a calendar with a monthly
display as shown in http://www.easyphpcalendar.com/ ?
Thanks
Denis
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I've got a website on a virtual-host, Apache/Linux system running php scripts.
I particular, I've designed a CMS where designated individuals compose and edit
text in an html textarea, and then save the raw text in files. Custom [i.e.,
proxie] tags are used for emphasizing and the formating tex
hi...
the real problem you have with email validation is that the vast majority of
the email validation scripts that you see in various apps only handle a part
of what the wc3/spec states to be valid email addresses.
if your app had the ability to handle the time constraint, a reasonable
approach
Top Ajax :
I meant that at the top of WeberDev.com there is an Ajax search box that you
can use
to search for "email validation" and see many related code examples to
choose from.
berber
-Original Message-
From: 'Roman Neuhauser' [mailto:[EMAIL PROTECTED]
Sent: Friday, January 19, 2007
larry...
sounds good... however, given that you often have a myriad of different ways to
solve a problem, how does on determine which of the solutions, is the 'PHP
way'
unless there are seriously obvious flaws with an approach, you can often have
different approaches of solving a problem t
1. Why did you remove the backslash? (the original was correct)
I have a regular expression tester plugin in firefox and it validates
Ok with the expression he provided.
JavaScript is *not* PHP.
As far as I can read, I never talked about JavaScript...
Maybe the fact that I talked about a
I'd say a "programming expert" is one that can grasp the nuances and
complexities of a problem and break it down coherently and correctly in a
relatively short amount of time (compared to "average").
A "php expert" is one that can break it down and implement a solution that
leverages the "PHP
I've heard that there might be a php library or framework that allows you to
expose your code as a webservice with little to no extra code. I heard the
code could potentially also allow access via several different protocols.
Has anyone come across anything similar, or do I need to pick a specif
# [EMAIL PROTECTED] / 2007-01-19 14:46:04 +:
> >
> >1. Why did you remove the backslash? (the original was correct)
> >
> I have a regular expression tester plugin in firefox and it validates Ok
> with the expression he provided.
JavaScript is *not* PHP.
--
How many Vietnam vets does it tak
Not a big regex expert, but first off i would recommend not using / as a
delimiter for your pattern if you are trying to catch forward slashes in
your text.
I would use a pattern like:
#[a-zA-Z0-9/]{6,}#
Regards,
Tim
> -Message d'origine-
> De : Németh Zoltán [mailto:[EMAIL PROTECTED]
On p, 2007-01-19 at 15:39 +, Roman Neuhauser wrote:
> # [EMAIL PROTECTED] / 2007-01-19 15:25:38 +0100:
> > Hi all,
> >
> > I have a simple checking like
> >
> > if (preg_match("/[\w\x2F]{6,}/",$a))
> >
> > as I would like to allow all "word characters" as mentioned at
> > http://hu2.php.net/
1. Why did you remove the backslash? (the original was correct)
I have a regular expression tester plugin in firefox and it validates Ok
with the expression he provided.
If I add the second (original) backslash it won't validate emails anymore.
Also, from my little knowledge of Red.Exp. the
# [EMAIL PROTECTED] / 2007-01-19 15:25:38 +0100:
> Hi all,
>
> I have a simple checking like
>
> if (preg_match("/[\w\x2F]{6,}/",$a))
>
> as I would like to allow all "word characters" as mentioned at
> http://hu2.php.net/manual/hu/reference.pcre.pattern.syntax.php
> plus the '/' character, and
Hi all,
I have a simple checking like
if (preg_match("/[\w\x2F]{6,}/",$a))
as I would like to allow all "word characters" as mentioned at
http://hu2.php.net/manual/hu/reference.pcre.pattern.syntax.php
plus the '/' character, and at least 6 characters.
But it throws
Warning: preg_match(): Unkno
The don't want to pass the session variable across domains. The problem is
in the main domain, i don't know what happens, the session variable lost the
value or is distroyed.
"Chris" <[EMAIL PROTECTED]> escribió en el mensaje
news:[EMAIL PROTECTED]
esteban wrote:
> I have a windows 2000 server wi
On cs, 2007-01-18 at 20:46 +0100, Jochem Maas wrote:
> Németh Zoltán wrote:
> > On cs, 2007-01-18 at 02:04 -0800, pub wrote:
> >> On Jan 18, 2007, at 2:00 AM, Németh Zoltán wrote:
> >>
>
>
> ...
>
> > maybe you should use a parameter for it, place it into the link in the
> > first query loop, ge
Don't top-post.
Trim quoted material.
Use a mail user agent that doesn't screw up quoting. There's a plugin
for Outlook to fix it.
Thanks.
# [EMAIL PROTECTED] / 2007-01-19 12:15:15 +0200:
> From: Roman Neuhauser [mailto:[EMAIL PROTECTED]
> > # [EMAIL PROTECTED] / 2007-01-19 10:55:21 +0200:
> > >
You can always go to http://www.weberdev.com/ and write "email validation"
in the Top Ajax search box. There are many other email validators that
should have less than 600 lines in one function :)
berber
-Original Message-
From: Roman Neuhauser [mailto:[EMAIL PROTECTED]
Sent: Friday, Ja
# [EMAIL PROTECTED] / 2007-01-19 10:55:21 +0200:
> From: Don [mailto:[EMAIL PROTECTED]
> > I'm trying to get this line to validate an email address from a form and it
> > isn't working.
> >
> > if (ereg("[EMAIL PROTECTED]",$submittedEmail))
> >
> > The book I'm referencing has this line
> >
> >
If you can get the image to your server, try using one of these examples :
http://www.weberdev.com/AdvancedSearch.php?searchtype=title&search=thumb
berber
-Original Message-
From: Pablo L. de Miranda [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 18, 2007 12:56 AM
To: php-general@li
Try this : http://www.weberdev.com/get_example-3274.html
berber
-Original Message-
From: Don [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 18, 2007 10:41 PM
To: php-general@lists.php.net
Subject: [PHP] email validation string.
I'm trying to get this line to validate an email addres
Check this out :
http://www.weberdev.com/get_example-4473.html
berber
-Original Message-
From: Don [mailto:[EMAIL PROTECTED]
Sent: Friday, January 19, 2007 7:38 AM
To: php-general@lists.php.net
Subject: [PHP] what do i need to disable
Ok,
You have been very helpful with my questi
49 matches
Mail list logo