Hello, im a newbie in writing functions but right now im trying to.
I have made the following function
// FUNCTION TO DECIDE WHETHER A PROJECT IS IN BETWEEN PROJECTBEGIN AND
PROJECTEND , YES OR NO
function Activeyesno($month,$day,$year,$Project_id){
$dayactief = mktime(0, 0, 0, $month, $day,
When I use header(Location: ...) to redirect the user back to the record
Send a Header(pragma no-cache) before Header(Location) and it will work.
Roko
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
Ok, this is very important to me, but
I'm not sure how to explain it well. I
am working on a project using PHP that
supports about 6 different browsers and
browser versions. All the code is in one
single file for now, but I will
eventually split the code up and call
them using several include
Hello Gaylen,
try this:
$string = preg_replace(/\n{3,}/, \n\n\n, $string);
James
Gaylen Fraley [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I need a routine that will allow me to trap multiple br and/or line feed
characters and convert them to a constant
I was under the impression you could only edit flash within proprietary
products like flash itself, livemotion
especially if the file has already been exported to swf
-Original Message-
From: Martin Towell [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 22, 2001 02:32
To: [EMAIL
Hi,
Can anyone point me to a good explanation of how the parent::
constructor works? I've tried searching the php site for it with no
success.
I've been given a set of code to work on, but am getting the error:
Fatal error: Undefined class name 'parent'
for one section of it.
cheers.
$parent::constructor()?
Just guessing, I wasn't even aware of this functionality till now :)
Roko
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail:
Hi there
I try to setup GD and PNG and Zlib to work with my PHP 4.06
but still no sucess
can anyone point me out how to do that, or a website that contain step by
step instruction
in the configure line i used this options --with-gd=/usr/local
--with-png-dir=/usr/local/png
I found this site http://www.Banners4i.com while surfing the net, may be it could be
useful to you.
It has Free Banner / Link Exchange Server, Counter Server and a WAP Counter Server
developed using PHP (may be PHP4, MySQL, WML)
If you know of any cool sites developed using PHP pl. let me
Ming comes with a utility called swf2php or something like that, which MAY
be able to convert a SWF file to PHP script that you can then work with. I
say MAY, because the results are sometimes a bit unpredictable, and certain
Flash constructs can cause it to fail miserably.
But you might be
I found this site http://www.Banners4i.com while surfing the net, may be it could be
useful to you.
It has Free Banner / Link Exchange Server, Counter Server and a WAP Counter Server
developed using PHP (may be PHP4, MySQL, WML)
If you know of any cool sites developed using PHP pl. let me
Thinking about it, this would probably be even better:
$string = preg_replace(/(\n|br){3,}/i, \\1\\1\\1, $string);
This:
$string = This is a
\n\n\n\n\n\n\n\n\n\n\ntest\nTesting\nTesting\n\n123brbrbrbrbrbr
brbrbrbrbrSome more testingbrbrbrbrbrbrbrbrbrAnd
a little
Need some help here, Im getting this error:
Warning: Cannot add header information - headers already sent by (output
started at /home/p/pe/perphp/public_html/login.php:4) in
/home/p/pe/perphp/public_html/login.php on line 44
...while trying to run the following .PHP code on my server. Any ideas
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Roko Roic) wrote:
$parent::constructor()?
Just guessing, I wasn't even aware of this functionality till now :)
Is this what you're looking for?
http://www.php.net/manual/en/keyword.parent.php
--
CC
--
PHP General Mailing List
Per,
Its a hard rule but you cannot sent any HTML content before the header. Try
reversing the order and see if that works.
George (a newbie, trying to find time to learn more)
- Original Message -
From: Per Waagen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, November 22,
Try to break up html into different files for each browser type.
Switch ($browser)
{
case ns4 :
include ns4.html; break;
case ie5 :
include ie5.html; break;
.
.
.
default :
include ie6.html;
}
You've already sent something to the browser... the line that starts with
HTMLHEAD...
Move that below the authentication code and all should be well.
HTH
Jon
-Original Message-
From: Per Waagen [mailto:[EMAIL PROTECTED]]
Sent: 22 November 2001 10:20
To: [EMAIL PROTECTED]
Subject:
output started at /home/p/pe/perphp/public_html/login.php:4
try to look into this line 'cause is where the output started.
The HTTP Header comes before every HTML code because it's where the browser
will know what kind of file it is (for example... it is a image, open it! it
is HTML, show it!
php-general Digest 22 Nov 2001 11:16:44 - Issue 1009
Topics (messages 75456 through 75496):
Re: Deleting from MySQL with more than one 'where' variable?
75456 by: Mike Eheler
Re: Different syntax = different performance (concatenating assignment)
75457 by: Martin Towell
hi,
can anyone help me this ?
1)
I made a simple forum, and it will allow the users to send their messages in
HTML format.
But I worried about the security of my website, so I removed all of the
SCRIPT tags in their messages by placing /SCRIPT instead.
(Because the users maybe use SCRIPT
Well, my site about Talking Heads is kinda cool, and I'm using PHP in it,
more and more everyday. Soon it'll let visitors add their own comments to
the pages, just like the anotated PHP manual:
http://thismustbetheplace.net
Jaime
From: Carry Ian [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Hiya,
well, you could replace all script tags with this regex:
$string = preg_replace(/\/?SCRIPT.*?/is, , $string);
But, if you're converting all and to their html equivelants (which you
should be) using something like htmlspecialchars or your own regex, you
shouldn't even need to do that.
Hello,
I want to send an e-mail to one address(To) and many carbon copies to many
e-mailadresses(BCC).
Is there a class to do this??
Henk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To
Hello,
I want to send an e-mail to one address(To) and many carbon copies to many
e-mailadresses(BCC).
Is there a class to do this??
Henk
Hi Henk,
You don't need a special class, just use:
$to = [EMAIL PROTECTED];
$subject = Your Subject;
$messages = some text you want to send...;
$headers
Thanks. According to the manual, the br / is for XHTML compliance. This
changed in 4.0.5.
--
Gaylen
[EMAIL PROTECTED]
Home http://www.gaylenandmargie.com
PHP KISGB v2.3 Guestbook http://www.gaylenandmargie.com/phpwebsite
Liljim [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL
That doesn't work. He is gives the error:
Failed to Connect
Henk
Sebastian Wenleder [EMAIL PROTECTED] wrote in message
news:p0510030ab822a385d74e@[192.168.100.2]...
Hello,
I want to send an e-mail to one address(To) and many carbon copies to
many
e-mailadresses(BCC).
Is there a
-Original Message-
From: Henk [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 22, 2001 3:21 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Send an e-mail witdh php
That doesn't work. He is gives the error:
Failed to Connect
Henk
check your /etc/php.ini conf
Thank you Jon folks, now its OK! ;)
Per
You've already sent something to the browser... the line that starts with
HTMLHEAD...
Move that below the authentication code and all should be well.
HTH
Jon
-Original Message-
From: Per Waagen [mailto:[EMAIL PROTECTED]]
Sent: 22
do you have a tip to upload big files without the hassle of having
php crunch so much memory? If I upload, say, 20 MB of data, my script
process will end up using 20 MB of memory. I think it stores all received
data
in memory and then flushes it in the temp file at the end.
Regards,
--
PHP
Also, If you have an array of addresses, use the implode() function.
$sAddressList = implode(',', $aAddressArray);
and then use that with the Bcc: header in the mail function.
-Jason Garber
IonZoft.com
Hi Henk,
You don't need a special class, just use:
$to = [EMAIL PROTECTED];
$subject =
hi
I 'm newbie with php and i have a small problem.
I have a script that uploads 4 pictures
But when that is done there has to be a redirect to an other page.
My script is as follows:
?php
header(Location: http://www.x.com/x.html;);
$num=$nummer;
if(count($FILE) == 0 || $FILE[1] ==
Make sure that you have no blank spaces before the ?php tag. It really must
be the first line in the script.
/Fredrik
Etienne Colla [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
hi
I 'm newbie with php and i have a small problem.
I have a script that uploads 4
well, if you're using default session handling provided with php, users
sessions are stored in /tmp directory (also used by default for temporary
caching of uploaded files). assume to have the php.ini file with default
settings:
session.gc_probability = 1
session.gc_maxlifetime = 1440
this
Hi,
I wonder if there's a way to find the line number of the calling script
from a function, like the error messages PHP generates. An example:
In an included file I have a function and want to do something similar to:
function foo($obj) {
if (!is_object($obj)) {
echo Error:
Hi,
does anybogy know pop3 box management commands? I'm making pop client on php. I know
some of the commands like USER PASS RETR DELE TOP but don't know how to use them.
I have fputs( $socket_open, USER . $username . \r\n ); but how do I use RETR or
TOP or
DELE in these circumstanses?
Why don't u use a socket view ? u config ur outlook to connect 127.0.0.1
(localhost) and watch the communication .. if someone wants it send mail to
[EMAIL PROTECTED] then i cansend one that i designed on delphi 5 (it's ugly
and has FEW options and not tested with binary comm., but works with
Hi
I've been looking at some classes an have come across this notation for
example :
function remove($productid) {
/* this function will remove a given product from the cart */
if (isset($productid)) {
unset($this-items[$productid]);
}
}
What does the (ampersand) before the
Hi
I wrote a kind of web mail client. But I've got a problem.
When the function imap_header fetches all of the headers from a mailbox in a
loop, it lasts very long time, if a user has big files attached to his
mails. I operate at pop3 server. What's the problem? Do you know, how to
list all of
Thanks, you guys rock! :)
Girish
- Original Message -
From: Roberto Ramírez [EMAIL PROTECTED]
To: Girish Nath [EMAIL PROTECTED]
Sent: Thursday, November 22, 2001 4:10 PM
Subject: RE: [PHP] What does var mean ?
The use of the means that its passed by reference.
That its equal to the
- Original Message -
From: Nayco_IUT Laroche [EMAIL PROTECTED]
To: Girish Nath [EMAIL PROTECTED]
Sent: Thursday, November 22, 2001 4:59 PM
Subject: Re: [PHP] What does var mean ?
This is a reference to the variable, that means that it extends the scope
of
this variable into the
Hi again,
I've run into a nice bug using phpmyadmin to import data into a mysql database, and
was hoping someone had some experience with doing this. I was wondering if there is
any common errors which could be occurring due to characters with in the data? I'm
fairly certain that this is the
Well telling us what the errors are would be a start :-)
Regards
Jon
--
Jon Farmer
Systems Programmer, Entanet www.enta.net
Tel 01952 428969 Mob 07763 620378
PGP Key available, send email with subject: Send PGP Key
- Original Message -
From: Stephen Phillips [EMAIL PROTECTED]
To:
lol, ok (sorry I've been staring at a text file looking for bugs for 3 hours)
this is the type of error msg phpmyadmin is giving me;
Warning: Only 0 bytes were written, expected to write 32516 in - on line 82
sometimes it says line 74, or 130 as well
I was kinda hoping someone might know of
Read the RFC for POP3.
http://www.hio.hen.nl/cgi-bin/show-gz/rfc/pop/rfc1725.txt.gz
Fred
Yura [EMAIL PROTECTED] wrote in message
3BFD3620.32115.1873696@localhost">news:3BFD3620.32115.1873696@localhost...
Hi,
does anybogy know pop3 box management commands? I'm making pop client on
php. I know
It indicates that the variable was passed by reference rather than by value.
Fred
Girish Nath [EMAIL PROTECTED] wrote in message
000f01c1736c$714abc30$015b10ac@AERIS">news:000f01c1736c$714abc30$015b10ac@AERIS...
Hi
I've been looking at some classes an have come across this notation for
I've been using phpmyadmin 2.2.1 and found that importing data from a
script requires you to be at the main page for the database, rather than
the table page. Submitting it via the table page says it was executed
successfully, but it wasn't.
Haven't had time to look at whats causing it.
I
Please post a verbatim copy of the error. We have no way of knowing what is
happening with such a generic description of the problem.
Fred
Stephen Phillips [EMAIL PROTECTED] wrote in message
000e01c17379$643f6d80$21937ad5@stevephillips">news:000e01c17379$643f6d80$21937ad5@stevephillips...
Hi
Hi all, I'm using PHP version 4 (module) with no problems in a Debian box, but today I
download PHPlib; I installed as the README file told me, but all the files have the
extension php3, and when I try to open with my browser I it tell me to save the file
to disc.
I uncomment the next line
Comment that line again, and add .php3 to:
AddType application/x-httpd-php .php .php3
This will tell apache to use PHP4 for both .php and .php3 files.
Justin England [EMAIL PROTECTED]
Network Administrator
E-Net Information Services
Dir Justin England,
Could you tell me what the version of apache and php do you prefer for
Solaris 8 .
thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators,
Bas Jobsen wrote:
What does the (ampersand) before the variable name mean ?
a pointer to the address (mem) of the variable
PHP doesn't have pointers and memory can't be directly accessed this way
like you can in C, or C++ or whatever. The ampersand is for passing values
via reference
Ok,
Let's concentrate on acceptable syntaxes for your html programmers to specify the
required fields
first. Here are some options grouped by technique and roughly put into order of
increasing
difficulty for an html author:
HTML
1. INPUT TYPE=HIDDEN NAME=required VALUE=name address
Ouupppss!!
You're right !!!
- Original Message -
From: J Smith [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, November 22, 2001 6:43 PM
Subject: Re: [PHP] What does var mean ?
Bas Jobsen wrote:
What does the (ampersand) before the variable name mean ?
a pointer to the
What version of admin are you using? I run version 2.2.0 and have never had
such a problem. Without looking at the code I can say that it appears that
myadmin estimates the size of the file before uploading it and then
something happens to prevent the upload from occuring. It may well be that
Sorry if I'm off-topic, but I've always wondered what people use sessions for.
I seem to be either dealing with logged-in users who I pick up via
http-authentication and
maintain any details I need in a user data structure, or casual users, for whom the
odd hidden input
field or occasional
Hi,
I have enabled the safe mode in a virtual host that
uses php in order to try to prevent the user from
uploading (via ftp) a php that could sniff around
other's people files.
Unfortunately I got stucked in a problem. this site
uses php to upload and manage some files remotely.
The webserver
What does the (ampersand) before the variable name mean ?
It's called a reference, check out:
http://www.php.net/manual/en/language.references.php
regards,
Philip Olson
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
Hi all,
Is there a way of generating a list of files that have been included, in
php3, similar to php4's get_included_files() ??
If so, can you supply code plz?
Thnx
Martin
If you add ob_start(); at the start of your code, then you will be able to
set Headers anywhere in your page.
Peter
Per Waagen wrote:
Warning: Cannot add header information - headers already sent by (output
started at /home/p/pe/perphp/public_html/login.php:4) in
G'day all,
I am putting together a small piece on php and was wondering if anyone knew
how to dynamically generate the php usage stats from:
http://www.netcraft.com/Survey/
Sort of want something like:
http://www.php.net/usage.php
Have looked at the source looks like this is manually updated?
php-general Digest 23 Nov 2001 01:58:12 - Issue 1010
Topics (messages 75497 through 75545):
about the replacing HTML code by another codes in a Forum ?
75497 by: trongduc
75499 by: liljim
Cool?
75498 by: Jaime Iniesta Aleman
Send an e-mail witdh php
75500
Hello everyone!
I upgraded my system from win98 to win2k, a few weeks ago.
Now, I can't seem to locate my php.ini file.
I've looked in
C:\
C:\windows
C:\windows\system (and system32)
to no success.
Is anyone aware of what may have happened?
I was under the impression that PHP
John,
Look in the original distribution files for php.ini-dist (or
php.ini-optimized) and copy it to c:\windows\php.ini
As far as I know php can run without a php.ini I beleive it has builtin
defaults.
Regards,
Joseph
-Original Message-
From: John Monfort [mailto:[EMAIL PROTECTED]]
doesn't win2k files go under C:\winnt ?
what about looking under the php directory???
-Original Message-
From: John Monfort [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 23, 2001 1:06 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Missing PHP.ini
Hello everyone!
I upgraded my system
Thanks Joseph!
btw,
Happy Thanksgiving to all!
__John Monfort_
_+---+_
P E P I E D E S I G N S
www.pepiedesigns.com
The world is waiting, are you ready?
-+___+-
On Fri, 23 Nov 2001,
On Fri, 23 Nov 2001 12:36, John Monfort wrote:
Hello everyone!
I upgraded my system from win98 to win2k, a few weeks ago.
Now, I can't seem to locate my php.ini file.
I've looked in
C:\
C:\windows
C:\windows\system (and system32)
to no success.
Is anyone aware of what
On Thu, 22 Nov 2001 18:30, Oosten, Sjoerd van wrote:
Hello, im a newbie in writing functions but right now im trying to.
I have made the following function
// FUNCTION TO DECIDE WHETHER A PROJECT IS IN BETWEEN PROJECTBEGIN AND
PROJECTEND , YES OR NO
function
Hello,
Is there a way to strip only php code out of an html file? I know about
strip_tags but its going to be alot of work to make the allowable list, as
all I want to strip out is:
?php ... ?
I tried like so:
eregi_replace (?php include(\whatever.php\); ?, , $string);
but it didn't find it
David,
Basically I have found a way of making printable versions of every page in a
website I am currently working on (without a database etc), because I am
using a dreamweaver template the main content is always surrounded by:
!-- #BeginEditable content --
...
!-- #EndEditable --
Just a link
Sorry people it is actually evaluating the code I was looking at it from
inside Maguma PHP4EE studios internal preview which was not evaluating it,
after uploading it to the webserver it now is ok doh! :)
Anyway i do need to strip out the original link that points to the printable
script so that
I have the following query
$query = INSERT INTO acl ( username, password )
VALUES ( 'henri', ENCRYPT('diesel','henri') );
This is the error i get :
Column 'password' cannot be null
What is wrong with my query?
--
PHP General Mailing List (http://www.php.net/)
To
I try to compile againts PNG and JPEG and for web inteface
i had install zlib
and png and jpeg
then gd
but still have no sucess on it
On Thursday 22 November 2001 09:03, you wrote:
The operating system you are using would be nice to know- and wether its
for apache, cgi-bin, or whatever.
On Fri, 23 Nov 2001 16:17, De Necker Henri wrote:
I have the following query
$query = INSERT INTO acl ( username, password )
VALUES ( 'henri', ENCRYPT('diesel','henri') );
This is the error i get :
Column 'password' cannot be null
What is wrong with my query?
On waht systems does encrypt() work on.In my Mysql client my query results
are null,so i dont have encrypt on my system!
-Original Message-
From: David Robley [mailto:[EMAIL PROTECTED]]
Sent: 23 November 2001 08:24
To: De Necker Henri; PHP-General (E-mail)
Subject: Re: [PHP] MySQL query
Two things come to mind when compiling under redhat 6.x
1) Delete all headers and libs relating to gd in /usr/lib and /usr/include
these are old and will cause conflicts.
2) Use --with-..-dir=..
Here is my successful configure command assuming you have successfully
installed freetype2 and gd
On Fri, 23 Nov 2001 17:05, De Necker Henri wrote:
-Original Message-
From: David Robley [mailto:[EMAIL PROTECTED]]
Sent: 23 November 2001 08:24
To: De Necker Henri; PHP-General (E-mail)
Subject: Re: [PHP] MySQL query problem!
On Fri, 23 Nov 2001 16:17, De Necker Henri wrote:
I
try, assert() instead of echo()ing error messages.
assert('is_object($obj)');
and write your error handler code or use mine :)
or am i missing something?
Papp Gyozo
- [EMAIL PROTECTED]
- Original Message -
From: SafeV [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent:
77 matches
Mail list logo