[EMAIL PROTECTED] wrote:
is there in PHP a function that create a new directory on server
This is a serious case of needing to RTFM. www.php.net/mkdir
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Louie Miranda wrote:
is there anyway of detecting flash? in php
Detecting whether the user has Flash enabled, you mean? No. PHP is
server-side.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Dino Costantini wrote:
i have a file name with the path ex food/italy/pizza/margherita.php. how can i obtain the name of the file in this case "margherita.php" i know there is a function, but i don't remember it.
$_SERVER['PHP_SELF']
--
PHP General Mailing List (http://www.php.net/)
To unsubscri
Tim Burgan wrote:
In their forms they use the name attribute (ie. name="example") instead of
XHTML's id attribute (ie. id="example").
How can I fix this?
(X)HTML still requires name to be used for forms. It's usually best to
use both name and ID for forms.
--
PHP General Mailing List (http://ww
Manuel Lemos wrote:
The latest spamming strategies consist on using valid sender addresses
of inocent companies. Therefore, when you make up invalid addresses,
all the bounces will go to the innocent companies mail servers. The
more invalid addresses you make up the more harm you cause to innoc
I need to parse UIEE files for a project. Has anyone done that before?
Any pointers?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Roel Derckx wrote:
I want to remove line breaks from the front of a string, but i can't get it
to work. Who can help me?
Note that i only want to remove line breaks in the start of the string, all line
breaks in
the rest of the string should remain.
ltrim()
--
PHP General Mailing List (http://ww
Luke wrote:
Yeah, i had a similar problem, i dont know if its the same, but i found that
adding
in the head of the html output fixed it
Even better, use header('Content-Type: text/html; charset=UTF-8') at the
beginning of your PHP page.
--
PHP General Mailing List (http://www.php.net/)
To un
Manisha Sathe wrote:
I have magic_quotes_gpc ON
'Here's is' - this comes out after HTTP post as
'Here\'s is'
But i want to get back the original string as it is - how to change ?
www.php.net/stripslashes
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php
David T-G wrote:
I need a true nl2br function to get rid of newlines; I am accepting a
changed ini file parameter but the newline kills me.
Try:
$text = preg_replace("/\r\n|\n|\r", '', $text);
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
One common way to work around many search engines ignoring pages with
query strings is to use scripts with odd URIs
(http://server.com/foo.php/foo/bar for instance) and get them with
$_SERVER['PATH_INFO']. How compatible is doing that? Will servers
besides Apache support it?
--
PHP General Mai
I'm writing a photo album in PHP. The idea is to convert user-uploaded
images to PNGs with unique IDs (1.png, 5.png, etc.), and cache them at
certain sizes as needed. Now I'm running into an out-of-memory
converting user images to PNGs, and I'm not sure what to do: copy them
in whatever format
Keith Greene wrote:
Ok, you're getting into semantics now.
http://www.php.net/manual/en/language.basic-syntax.php doesn't say
whether it is acceptable or not, but as Robert pointed out, if your
script is purely php, omitting it is a good way of eliminating the
headache of trailing white spaces
Keith Greene wrote:
That's not a bug either. Leaving out the ?> is simply telling the php
parser that it has to parse the rest of the script.
Where's the manual page saying that's allowed?
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will
Keith Greene wrote:
It's not a bug. Anything (including spaces, newlines etc) that is not
inside is output directly to the browser.
No, I'm talking about not using ?>.
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will be prosecuted to th
Robert Cummings wrote:
FYI, if you're woprried about the "header cannot be sent due to
output..." error, then if your file only has code and no HTML, then you
can omit the ?> tag at the end of your script. This solves countless
issues with there being a space, a tab, a newline, or any whitespace
a
Prashant Akerkar wrote:
I have a Query. Is it Possible to extract the source code from .exe,(VB,'C',C++),.dll(VB,'C',C++) or .class(java) files.
To some extent. All that's left intact by the compiler is the logic, not
the exact source code. In theory, a utility to transform machine code
logic
D. Jame wrote:
How to find the Drive letters and Drive Types of remote system WNT, i have system administrator password too..
this all work done with PHP pages, when my client give IP, user /password then my PHP scirpt show him that system drive/ folders...
Can't be done unless the remote
Dave G wrote:
In the example they give in this book, they use a "while" loop
(page 670, for anyone who has it). But it's confusing because it looks
like this:
while ( $subscriber = mysql_fetch_row($result))
{
[write and send the email]
}
$subscriber
- Edwin - wrote:
Just by reading this -> http://www.apple.com/macosx/ esp.
these last two sections:
* Solid as a rock
* Developer's dream
would give people reason to consider and even "switch"...
Mac OS X is fairly stable, I'll give you that. As for "developer's
dream", that's a matter of op
- Edwin - wrote:
Interesting. Where?
www.w3.org
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will be prosecuted to the full extent of the law.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/u
- Edwin - wrote:
Why not?
Because that's what the standard says.
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will be prosecuted to the full extent of the law.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: htt
Vijay Killu wrote:
Where can I find the Calendar script that has been used on the PHP.net site.
I believe I can use it on my website since it is open source :-)
I don't seeany calendar, but you should be able to use the "show source"
link whereever it is.
--
The above message is encrypted with d
Curt Zirzow wrote:
Try reversing the quotes:
error_prepend_string = "";
Not valid XHTML (not sure if it's even valid HTML).
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will be prosecuted to the full extent of the law.
--
PHP General Ma
Vijay Killu wrote:
That will resize the image and display it as a thumbnail.
No, they will give you a GD image resource to do what you want with.
What I want is a new image to be created. I mean a .gif file.
You can't create a GIF, but you can use imagepng() or imagejpeg() to
output it t
Vijaya_Manda wrote:
Is there any pre-written code available on the net to generate thumbnail
images for a picture.
I mean I send the path of the image and my PHP Script should be able to
generate a gif file of size 100x71 or something like that.
Images will look stretched if you do that, but he
Curt Zirzow wrote:
+1 and + on getting rid of the tags
What he said.
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will be prosecuted to the full extent of the law.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
- Edwin - wrote:
That should do it. (Unless, of course, you encounter some "configure"
or "make" problems.)
And of course, I did:
configure: error: Cannot find rfc822.h. Please check your IMAP installation.
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
Robert Cummings wrote:
PHP docs are SGML as far as I can remember.
How so? PHP isn't XML, SGML, HTML, or anything else besides PHP.
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will be prosecuted to the full extent of the law.
--
PHP Gene
Ryan Thompson wrote:
Just a thought. Try using phpinfo() to find out the compile options. Use that
and just add the GD compile options after upgrading GD. That's usually how I
go about adding a new module. I can never remember what I've compiled into
it.
Thing is, I don't know how to get GD,
René Fournier wrote:
What I want to do is echo the value of $img_photo_name. But how can I
refer to it?
echo 'file name: ' . ${$fld . '_name'};
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will be prosecuted to the full extent of the law.
Curt Zirzow wrote:
The odds aren't that good, unless the current gd is loaded from a
shared object instead of linked directly to php.
Check your configure command from phpinfo() if it has the option
--with-gd then it was linked directly. Otherwise it is loaded from
an shared object file located in
I need to use imagecreatetruecolor(), but my server is still using GD
1.6. Is it possible to upgrade GD without having to recompile PHP, etc.?
I'm still fairly new to Linux administration.
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will
Larry E. Ullman wrote:
I was feeling generous so I went back in time and added this
functionality to PHP as of version 3. I call it the "strcasecmp"
function. I placed the description and usage of the function in the
PHP manual: http://www.php.net/strcasecmp
That was nice of you, but he wanted
Tim Thorburn wrote:
Is there an IF LIKE statement in PHP? I've got a MySQL database setup
with headings and text (think a news article site) - headings in one
field, text in another. In some cases, I don't want the contents of
the heading field to appear on the site - in these cases, the head
Deependra b. Tandukar wrote:
Is there anyway that I can put .exe file on the web, and allow
visitors only to run it, not download it.
No.
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will be prosecuted to the full extent of the law.
--
PH
Becoming Digital wrote:
You just have to leave it at 255. That's what Illustrator does.
Hmm, seems to work, thanks. Note to self: try before you ask.
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will be prosecuted to the full extent of
Chris Shiflett wrote:
--- Leif K-Brooks <[EMAIL PROTECTED]> wrote:
I'm looking for a nice alithogram to darken and lighten a color by a
certain ammount.
Maybe you mean algorithm? :-)
Yep. My ability to spell decreases 5% every 15 minutes after 12AM.
To lighten, increase RG
I'm looking for a nice alithogram to darken and lighten a color by a
certain ammount. I know this isn't strictly a PHP question, but I'm
doing it in PHP and there isn't anywhere better to ask.
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it
J J wrote:
Is there a good way in PHP to determine page breaks
for long reports and printing? I'd like to be able to
best determine where pages should begin and end and
reprint things like table/page headers and footers on
each page so the reports print nicely.
Just use HTML thead/tfoot elemen
Scott Fletcher wrote:
I am wondering if there is an better alternative to the die() because it
prevent the HTML codes from being send to the browser, including some php
echo codes with HTML in it.
If you don't want the page to end, don't use die at all. Simple as that.
--
The above message is
Luke Ehresman wrote:
Hi Everyone,
It doesn't seem to be very standards-compliant. Good PHP is important to
me, but good HTML is too.
Also, I can't find any examples, but it doesn't really seem to seperate
logic from presentation - it just provides another means of presentation.
--
The above
LiteSpeed Information wrote:
No doubt, Apache is a good web server, everyone use it. ;-)
What the heck?
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will be prosecuted to the full extent of the law.
--
PHP General Mailing List (http://www.
LiteSpeed Information wrote:
What we are waiting for are extra security features: "chroot"(almost
done) and "auto-ban". They are not available on Apache either we believe.
If they aren't available with Apache either, why are you still using it?
--
The above message is encrypted with double rot13
LiteSpeed Information wrote:
Thank you for your interest.
Our recommendation is, to setup your server environment with Apache
first, make sure every thing works, then run LiteSpeed in parallel on
different port, sharing the document root, then stop Apache and switch
LiteSpeed to port 80. If any
LiteSpeed Information wrote:
We glad to introduce you LiteSpeed Web Server 1.1.
Mind explaining this?
$ telnet litespeedtech.com 80
HEAD / HTTP/1.1
Host: litespeedtech.com
HTTP/1.1 200 OK
Date: Wed, 08 Oct 2003 16:36:18 GMT
Server: Apache
<--
php coder wrote:
HTML files are to large to print from the browser. We are creating
reports that are ++5 mg in size. This is a real problem for the
browser. We are on a network and can print directly from the server
but this means we must convert the html to some printer friendly
format. We ar
Robert Cummings wrote:
Generally it doesn't look like a function since you can do:
return 'foo'
which has no parenthesis. The parenthesis are optional and only used to
return the result of an expression.
The same is true of exit/die.
--
The above message is encrypted with double rot13 encodi
Robert Cummings wrote:
How can you possibly test, in a conditional, the return value of the
return statement itself when it has no value to return and even causes
the current scope to exit IMMEDIATELY??
Ok, that explains it. Thanks.
--
The above message is encrypted with double rot13 encoding
Robert Cummings wrote:
Directly from the docs:
http://ca3.php.net/manual/en/function.return.php
First line:
"If called from within a function, the return() statement
immediately ends execution of the current function"
Important concept:
IMMEDIATELY returns.
Learn to read.
What
Chris Sherwood wrote:
Well Unfortunately pat
You are going to have to be an unlazy man and use an if statement
Why won't any of you give a good reason why it won't work? How come this
works:
function foo() {
2+2==4 or die("The world is ending, or at least your processor!");
}
But this does
Marek Kilimajer wrote:
Has you mention what php version are you running? Superglobals are
available only since 4.1.0
If $_GET works, then his PHP version must support superglobals.
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will be pros
Chris Shiflett wrote:
You have register_globals disabled, and if you are asking this question, you
need to leave register_globals disabled. Use $_GET['_section'] to access your
variable.
But he says $REQUEST_URI works.
--
The above message is encrypted with double rot13 encoding. Any unauthorize
RDias wrote:
How can I get a function name?
If you're using PHP 4.3.0+, try the __FUNCTION__ magic constant.
http://us2.php.net/manual/en/language.constants.predefined.php
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will be prosecuted
Jason Godesky wrote:
I've been playing with variable variables and variable functions
lately, and I was wondering if there was anyway to use that with
object variables? I'm trying to make classes that can store instances
in a database, and I'd like to have an abstract parent class with a
load
Steven Jarvis wrote:
I'm just starting to experiment with mod_rewrite on Apache 1.3.x and
php 4.3.3. Register_globals is off.
I have the following rules in my .htaccess file (which sits in the
site's root dir along with paper.php):
RewriteEngine On
RewriteRule ^/([a-z]+)/([a-z]+)/$ paper.php?p
Shaun wrote:
How can I compare two dates with PHP, to see if one date occurred before the
other?
Convert them to a timestamps (strtotime()), then just compare them:
$date1 = 'september 10th 2003';
$date2 = 'september 20th 2003';
$date1_ts = strtotime($date1);
$date2_ts = strtotime($date2);
if(
Becoming Digital wrote:
I just took a thorough look at the Session Handling section in the manual. I couldn't even find any mention of non-cookie session lifetimes. I get the impression they either die on broswer close or have a fixed lifetime that cannot be changed. Hopefully someone can prove
zavaboy wrote:
Is there a way to have a PHP script run on the server? For example, I want
to run a script to erase old database fields at 12:00 AM server time without
any user interaction, how would I do that?
All PHP scripts are run on the server, I'm guessing you mean run
/automatically/ on the
Dan Anderson wrote:
Try running newer browsers. I'd be curious how everything handles with
Netscape 7 or the newest incarnation of IE.
NS7 would be the same as Mozilla.
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will be prosecuted to th
ORLANDO POZO wrote:
Hello, mailing list, I have problem with this oop code:
[snip bad code]
--
the output of it is:
[snip output]
---
[EMAIL PROTECTED] wrote:
Hi there i was wondering if there was an open source port of a php script
compiler for the server. Will this make alot of difference in performance
at all. I know this may have been asked many times, is the encoders also a
compile i dont particularly need to encode/decode
Seth Willits wrote:
Aaa ok. I was confused with the semi colon and colon used in the
last example. This clears it all up. Thanks.
http://us3.php.net/manual/en/control-structures.alternative-syntax.php
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
t
Dennis Gearon wrote:
h, php outputs to the browser,
hmmm, browser reads HTML
hm,maybe somepeople who program in PHP have to dabble in HTML
Never said they don't, but the HTML PHP outputs has nothing to do with
PHP. Take this to an HTML list/newsgroup.
--
The above message is encrypted wi
Dennis Gearon wrote:
It seems that HTML is LAME, LAME,LAME when it comes to determining
local directories.
This is a PHP list, not an HTML list. What does this have to do with PHP?
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will be pros
DvDmanDT wrote:
When using register_globals=off, this might be off intrest: (notice $$var)
while(list($var,$val)=each($_REQUEST))$$var=$val;
Why not just turn register_globals on, then?
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will be
[EMAIL PROTECTED] wrote:
2) this question is more directed to Justin French, but in any case, the
reason i wanted to use the PDF forms is so that i don't have to create them
again in CSS or any other format, the forms are already created and all i
need to do is figure out how to make the data that
Steve Todd wrote:
Is this a bug or can we legally use it.
Please RTFM before posting! http://php.net/variables.variable
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will be prosecuted to the full extent of the law.
--
PHP General Mailing
Merlin wrote:
I am wondering how to prevent that users can post html through a form. I
process the form with php and save the date to a db.
There are a couple of sites I have already seen such thing. No matter what
you do, it is not possible to submit html commands.
Thats exacly what I want to do
Dennis Lee wrote:
Why it is wrong when I run php as module under apache 2.0.46 ?
PHP and Apache 2 are currently unstable together.
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will be prosecuted to the full extent of the law.
--
PHP Gen
Dennis Lee wrote:
what was wrong ? thanks for any useful words .
Are those extensions in c:\php\extensions?
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will be prosecuted to the full extent of the law.
--
PHP General Mailing List (http
pehepe php wrote:
what is %s and %d I see these in php tutorials. These are used in
printing data from database but I don't know why we use %s and %d.
And is there any expressions like this? Thank you for your answers.
www.php.net/sprintf
--
The above message is encrypted with double rot13
[EMAIL PROTECTED] wrote:
i didnt understand a word of that , please rephrase ??
ASP doesn't do an upload meter by magic. PHP can do anything ASP can do,
it simply doesn't have built-in features for anything unessential.
--
The above message is encrypted with double rot13 encoding. Any unauthor
[EMAIL PROTECTED] wrote:
how is it possible to send a jscript variable to php thats impossible
It would look something like this (unfinished, using comments instead of
real code in a few places:
if(!isset($_GET['height'])){
?>