Jason Wong wrote:
On Tuesday 10 December 2002 02:39, [EMAIL PROTECTED] wrote:
Hello All,
How to test php.info from command line:
#echo "" | php
to the standard output (screen) - or if you want to a file like this way:
#echo "" | php > /tmp/test_php.txt
Oliver Etzel
.eu - domain are comin
DL Neil wrote:
Hi Jon,
[SNIP]
May I suggest, rather than picking your way through this minefield, you
provide a "report abusive comment" link instead?
Most sensible! The employment of a technological solution to a social
problem is somewhat shooting the messenger. However some countries are n
Shaun wrote:
Hi,
i am using a form to upload an image to the server, is it possible to get
the image size during this process so i can store it for later use (i.e.
determining the size of the popup window to view the image)?
thanks for your help
you want
getimagesize()
http://www.php.net
[EMAIL PROTECTED] wrote:
Hello list,
simple question:
I´ve heard that it is possible to compile php with dg-support on two ways
1) first way: Distribution dependant with the gd-files and libraries, eg. gd.c, gd.lo, gd.o
coming with the distribution of the compiled php-4.x-tarball
compiled the f
mark wrote:
preg_match_all("|(.*)|U",$content, $body, PREG_PATTERN_ORDER);
the example text im trying to grab is below - Anyone got any ideas, Ive
tried pattern modifying with /m but I cant implement it.
Please help
Thanks
Mark
you need pattern modifier s (PCRE_DOTALL)
this makes . match all
Antti wrote:
How can I add lines to a text file? I didn't find any function for this.
Thanks, antti.
just open it in the right mode
if you just need to add to the end of the file without doing anything
else with it first
$fp = fopen ("/home/rasmus/file.txt", "a");
'a' - Open for writing
Troy May wrote:
How would take a regular non-formatted text link (http://www.link.com) and
turn it into ready to post HTML? (http://www.link.com>http://www.link.com)
Darn, Outlook formats it, but you get the idea. It would just be typed out
normally.
Any ideas?
function MakeUrl ($text) {
Andrea wrote:
I urgently need to store a cookie that expires with session. This cookie has
to be read by a section written in jsp, therefore I don't think I can use
$_SESSION variables.
Can anyone help me?
Andrea
to set a cookie that expires with the session do
setcookie (name, value)
thi
Hasan / Impex Holidays Maldives wrote:
Hi all,
I finally found a solution.
When i session_register("cookie_agtuser"); instead of $cookie_agtuser =
$_SESSION['cookie_agtuser']; the variable is seen.
I don't know why but if anyone know why this could happen it would help a
lot.
thanks,
Hasan
wh
Uros Gruber wrote:
Hi!
For example i have some words:
Today is very beautiful day and sun is shining
What i want to get from this is array
words
[Today] => 0
[Is] => 6,30
[Very] => 8
[beautiful] => 12
..
Can somebody please help me with this. Those nubers are
position of special word
Gerard Samuel wrote:
What Im trying to do is, reject all email address strings ending in
yahoo.com, except [EMAIL PROTECTED]
Im trying ->
if (preg_match('/[^[EMAIL PROTECTED]|yahoo.com]$/', '[EMAIL PROTECTED]'))
{
echo 'match found';
}
else
{
echo 'match not found';
}
?>
The search patt
how about ...
Nope. The question was the position of the words, not how many times
they appear.
oops :(
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
1LT John W. Holmes wrote:
Are PHP script supposed to run as the user or as the web server?
Currently I'm running Red Hat 7.3 with apache 1.3.x and all my PHP
scripts run as apache, not as the user. I'm wonder if I can run the
scripts as the user and how do I fix this?
As a module, that's the wa
1LT John W. Holmes wrote:
Assuming $url is what you have above:
$tilde = strpos($url,"~");
$slash = strpos($url,"/",$tilde);
$length = $slash - $tilde;
$username = substr($url,$tilde,$length);
Or you can use a regular expression, but the above is probably faster.
preg_match("!(~[^/]*)/!",$url
1LT John W. Holmes wrote:
I wonder if you could pass on some pointers for speed testing.
thanks
Nothing fancy. Just using the getmicrotime() function defined on the
microtime() manual page to get the time before the bit I'm testing and after
and subtract to get the difference.
www.php.net/mi
Uros Gruber wrote:
Hi!
I wan't to know if there is any goor text parser around here
written in php. I'm asking before i create my own.
I would like extract some text msgs to words and i would also
like take care of stop words, special characters etc... So to
know if some word is regular word, or
Youy are unlikely to egt balanced asvice on this in the MySQL or
Postgress lists -after all those people have already made thier decision.
I haven't used Postgress much - but basically...
Mysql - available on loads of hosting packages, very large user base.
PostgreSQL - better adherance to ANS
John W. Holmes wrote:
I don't know. I just got that from reading the manual. The very first
user comment on the preg_match page.
to put a literal dollar sign in a regex it has to be escaped \$
to put a backslash in a double quoted string you have to escape it \\$
in order to put a literal doll
Stephen of Blank Canvas wrote:
Hi Everyone,
I'm trying to display the content of two mysql tables on a single page,
I have successfully joined them with the following statement.
$query = "SELECT serv.*, cat.* FROM site_services AS serv,
site_servicescat AS cat WHERE serv.servicescat_id = cat.s
John W. Holmes wrote:
What are the different ways to open an HTTPS connection from within a
script and receive back the response into a variable? I know CURL can do
it, and PHP 4.3 with OpenSSL can use fopen() to do it. Can sockets be
used at all with PHP 4.2 to get the page or maybe a system call
Hatem Ben wrote:
Hello all,
I got a strange problem, a wrong php script was upladed in my hosting server and make my website
>
return a dns error ! i've discoverd after one day that my
index.php was a wrong one ! normally it should return another error
related to script not to dns !
I don't g
Hatem Ben wrote:
This is what i get exactly :
The page cannot be displayed
The page you are looking for is currently unavailable; The Web site might be
experiencing technical difficulties, or you may need to adjust your browser
settings.
The same message i got when a website experience dns pr
Hatem Ben wrote:
From: "Sean Burlington" <[EMAIL PROTECTED]>
it's exactly what it says it is...
the website is experiencing technical difficulties...
Yep, this make a confusion for me, and a stupid error that could be solved
in one minute, was done in one day.
[S
-<[ Rene Brehmer ]>- wrote:
Q 1:
Well, building the form and making the page preview the message is the
easy part. But how do I make the page retain the message so that I can 1.
actually send the thing after the second submit, and 2. make it fill out
the form when user wish to alter message (or
Adam Wilson wrote:
I am beginning a tidy-up of a very messy site i am now managing. I have
started splitting repeated sections into single header and footer files, for
inclusion via php. Unfortunately the javascript no longer works, i.e.
rollovers etc.
Can someone please help me on this? Is this
James Brennan wrote:
I'm looking to extract the text from user-uploaded .doc files. Has
anyone come across a class or function for this? If not, any advice on
where I would go to figure out how to write one of my own?
thanks,
loop
search freshmeat.net for antiword
its a beuatiful little
DC wrote:
Hi all,
I have a newsletter ready to email to my database of customers.
The entire newsletter incl graphics , layout etc is enclosed within a form
which posts to a second page which s supposed to email the desired
page..but it does not work! The code is listed below
Ezequiel Sapoznik wrote:
I am having a parse error in the following sentence:
print "";
it would help if you posted the actual error message !
but try this ...
print '';
or
print "";
--
Sean
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/u
ELLIOTT,KATHERINE A (HP-FtCollins,ex1) wrote:
OK, so I've gotten NO responses to my query below so I
thought I'd ask for something slightly different and see what
I get.
if you want to get a reply
1) look in the manual/ archives first
2) use a helpful subject line
eg making links clickable
Svein O. Bennæs wrote:
I'm trying to write a script that extracts some search-queries from a
logfile, but I'm having problems finding the right function to solve this
problem.
Below you'll find 4 lines from the log - the words I'm trying to extract are
(for now) written in capital letters, and th
Sean Malloy wrote:
I see a lot of these type of answers on the list at the moment.
I'm sick of receiving smart ass answers from people. It wastes my time, and
my bandwidth.
Either answer the fucking question, even if it hasn't been asked correctly,
or don't reply at all.
Given you are a 'PHP Pr
Tim Thorburn wrote:
Hi,
I've created a password protected area on the site I'm working on using
PHP Sessions - I've done this several times before without any
difficulty. This time, I've copied my old code - made the necessary
changes for login/passwd/database names, yet the sessions don't ap
Ford, Mike [LSS] wrote:
-Original Message-
From: Cal Evans [mailto:[EMAIL PROTECTED]]
Sent: 18 January 2003 14:41
use [] in your select box name. When it comes back in the
$_POST array you
will have an array of options. It breaks HTML standard
No, it does not break HTML standards --
John W. Holmes wrote:
use [] in your select box name. When it comes back in the
$_POST array you
will have an array of options. It breaks HTML standard
No, it does not break HTML standards -- that is a PHP urban myth
(which,
to
my chagrin, I helped to propagate before a wiser head sent m
Chris Shiflett wrote:
--- Mark McCulligh <[EMAIL PROTECTED]> wrote:
I wish people won't miss use features for people start
blocking them. I am using the window.open the way it
was meant for. I have a online help feature. I am not
using it a force people to look at banner after banner.
I kn
Bill Arbuckle, Jr. wrote:
Hi all. I am having some problems with a script which reads information
from a database and creates a table. It works in IE but not Netscape.
it can be usefull to test the resulting html
http://validator.w3.org/
valid html is much more likely to appear consistent ac
Chris Shiflett wrote:
--- Chad Day <[EMAIL PROTECTED]> wrote:
I want to give my users the ability to submit a URL
to a database, then when they pull up their page,
their photo is included .. what I'm worried about
is them pointing the link to some malicious code or
something..
Your instincts
[EMAIL PROTECTED] wrote:
Also, speaking of detection, I made a small script that can protect against
people downloading your site's forms, modifying their new local copy (and
putting an absolute URL in the form's ACTION attribute), and then posting
data using the botched form. If it's bulletproof,
Gibbs, Liam - SXIA wrote:
I agree that there are risks - but I do think this can be done safely
Couldn't you just check the submitted URL and find out if it's a gif or
jpeg? I don't think even PHP-enabled servers will run a gif or jpeg.
please send replies to the list ...
and you cant tel
Chris Shiflett wrote:
--- Sean Burlington <[EMAIL PROTECTED]> wrote:
I'm not sure what harm could be done by this though.
if a broswer attempts to load an image reference by
an
I sent a response about this earlier, but you should
research CSRF and XSS.
It does not matter that
Scott Saraniero wrote:
Hi,
I'm using this line to send an e-mail with info:
mail("[EMAIL PROTECTED]", "$Event Ticket Form", $msg, $mailheaders);
If I want to add mail recipients, or cc, or bcc, how would I do this?
Thanks,
Scott
http://www.php.net/manual/en/function.mail.php
Example 4. Se
Chris Hayes wrote:
At 17:17 22-1-03, you wrote:
I was wondering what the licensing issues for app frameworks (or any
included PHP classes/libs) are. I'm creating a rather large PHP
application for a company, and they'd like to potentially resell it to
some of their customers.
Can I safely use
R'twick Niceorgaw wrote:
Hi all,
I'm pretty much a stranger to perl and now got to convert a perl script to
php. however, at once place I can not understand what the lines are doing
and what could be the equivalent of them in php. Could some one help me with
this ?
Here's my perl code :
$choi
Greg wrote:
Here's the basic layout of my html page, this isn't the real html, just the
basic idea.
Now inside iframetest.php I have a few check boxes that I want test.php to
be able to access. Is there any way to do this?
Thanks!!
not directly ..
the form does not 'contain' the
pass the
info between frames - or see if there is some style sheet wizadry (fixed
size divs, visible area, clipping ...???) that will produce the same
effect on an acceptable proportion of browsers
"Sean Burlington" <[EMAIL PROTECTED]
.uk> wrote in message
[EMAIL PROTECT
45 matches
Mail list logo