Whenever I have had similar errors, it usually was a syntax error in or
before the function code. Just a thought.
Jeff
"Beauford.2002" <[EMAIL PROTECTED]> wrote in message
003601c2a840$41278ec0$6401a8c0@p1">news:003601c2a840$41278ec0$6401a8c0@p1...
> Hi,
>
> I keep getting errors in my script that
On Saturday 21 December 2002 15:02, Justin French wrote:
> If you're adding stuff to a database, and getting an error, use
> addslashes(), then on the way out of the database, you need to
> stripslashes(). Easy.
This seems to be a common misconception (yes, I did it too when I first
started out)
"Art Chevalier" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I want to start a native process and capture the output while it is being
> generated and display it to the screen. I dont want to output to be
> displayed on the screen all at once after the process
I'm guessing then that it's possible to use only server side sessions
and use trans_id then if you need to store values throughout a site?
Ed
On Fri, 20 Dec 2002, John W. Holmes wrote:
> > Is there any way to disable using cookies in sessions? I haven't found
> a
> > good
> > reason to do th
Hi
I'm setting a session with
session_set_cookie_params (time()+648);
so the cookie should last 70 days+ but the data wasn't
returned.
from looking in the manual i see that session_cache_expire is used to set or print the
current value of the expire. Its set in php.ini by default to 180 minu
php-general Digest 21 Dec 2002 14:19:20 - Issue 1776
Topics (messages 129044 through 129056):
Re: the numeric key of an array???
129044 by: Alexander Guevara
129045 by: John W. Holmes
129046 by: Alexander Guevara
Re: Is there any method to filter the single quote fro
WEll for example i got this:
In a field called name i write a name with single quotes for example 'Alex'
and click submit... in the verify.php i store the data i filled in the
form.php that contains name, surnmane,etcetc...
so when i save my data to the db i use the addslashes($name) in this case
> I'm setting a session with
> session_set_cookie_params (time()+648);
> so the cookie should last 70 days+ but the data wasn't
> returned.
>
> from looking in the manual i see that session_cache_expire is used to
set
> or print the current value of the expire. Its set in php.ini by
default to
> WEll for example i got this:
> In a field called name i write a name with single quotes for example
> 'Alex'
> and click submit... in the verify.php i store the data i filled in the
> form.php that contains name, surnmane,etcetc...
>
> so when i save my data to the db i use the addslashes($name
> I'm guessing then that it's possible to use only server side sessions
> and use trans_id then if you need to store values throughout a site?
Well, session are always server side, but, yes, basically. PHP must be
compiled correctly so you can enable trans_sid.
---John W. Holmes...
PHP Architec
Hi folks,
I would like to add a few fields to a custom Apache access log format
and populate the values from mod_php.
As a mechanism, I was thinking of using the PHP function putenv( ) to
set environmental variables. I am assuming that these would be in the
same request namespace used by Apache?
Hello,
I am looking for a way to tell pspell_check() to ignore html tags, I tried
adding a few html tags using pspell_add_to_session() but it said it won't
accept words starting with "<"...
Any idea?
Thanks.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.p
Thanks.. i solved it but not with that solution.. ill give a try with it..
the way i solved was using ereg_replace before storing in the db and chnging
the ' and " with the html characters as you mention with htmlentities()
Thank you all for the responsees!.
"John W. Holmes" <[EMAIL PROTECTED]
Hello,
I am looking for a way to tell pspell_check() to ignore html tags, I tried
adding a few html tags using pspell_add_to_session() but it said it won't
accept words starting with "<"...
Any ideas?
Thanks.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.
I am getting a lot of information about running the web server as root and
the associated problems and so on as I've been looking for a quick solution.
I have a perl script that is run by cron that executes sequence of events
via sftp. The sftp client has no option that I know of to denote a
diffe
Hey there,
Sorry for sending my question twice, I got a strange error saying:
Sorry. Your message could not be delivered to:
php-list,emc (The name was not found at the remote site. Check that the
name has been entered correctly.)
--
So I assumed it didn't
Dont know if this concerns to php genral.. but i want to know how can i do
for preventing showing the url in the title bar of the browser.. for example
i click a link that goes to a php page called verify.php and in the windows
browser title bar is show this.. http://www.server.com/verify.php
It i
Before the tag you have the tags. Place Title
of the page and it will show up on the title bar instead of the url.
If you want to get rid of the address bar of the browser window, let me know
and I can post the javascript for creating that window.
Larry S. Brown
Dimension Networks, Inc.
(727)
Are my posts getting through? They appear to come back on the list but I
also get this response...
Sorry. Your message could not be delivered to:
php-list,emc (The name was not found at the remote site. Check that the
name has been entered correctly.)
Larry S. Brown
Dimension Networks, Inc.
(7
On Sat, 2002-12-21 at 08:03, John W. Holmes wrote:
> > I'm setting a session with
> > session_set_cookie_params (time()+648);
> > so the cookie should last 70 days+ but the data wasn't
> > returned.
> >
> > from looking in the manual i see that session_cache_expire is used to
> set
> > or prin
ill try it.. about the address bar icoulc be very cool for doing it!
"Larry Brown" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Before the tag you have the tags. Place
Title
> of the page and it will show up on the title bar instead of the
url.
> If you wa
I've got a bunch of fields in a mysql database that have a \Z character
in them. I want to search a field for \Z and if it contains that
character, make the field blank.
In running php 4.x on RH 8.0
Here is the code:
$connection = db_connect("Could not connect DB");
$SQL="SEL
$connection = db_connect("Could not connect DB");
$SQL="SELECT id,PVLN from lhpl_side WHERE PVLN =\"\\Z\" ";
$result= mysql_query($SQL,$connection) or die (mysql_error());
$num = mysql_numrows($result);
Not too sure on this, but it might solve the problem. Use sin
Are my posts getting through? They appear to come back on the list but I
also get this response...
I see them, so I suppose the list has received them.
I got that same error yesterday. Hmmm. :\
--
Kyle Gibson
admin(at)frozenonline.com
http://www.frozenonline.com/
--
PHP General Mailing List
Hi,
I've finally got a host and I want to transfer my existing website - I
have managed to copy and upload my database (wow that was easy.. had
been dreading it) but now I'm worried that my sessions aren't going
to work correctly, as I'm sure there are probably other users with
"userID" va
An upcoming project I'm working and spec'ing out is a mass mailing
application. Initially, I was looking at Mailman which was written in Python
since it looks like it handles delivering emails efficiently without killing
the server. We have 1 client able to send 110,000 emails at 6.5K avg per
week
Hello gang,
I have a site hosted at JTL Networks, and I'm looking into setting up
a spell checker for my message boards. The problem is, JTL doesn't have
pspell compiled in with their php build, and it may be some time before
they do (if they ever do). Does anyone know of a way to include
I have written a few useful php functions that put the email addresses on
one file and the message on another file.
I have a crontabbed script that runs every min looking for these files and
then using qmail-inject to send them (sendmail is bad, replace it ;))
It's very good for sending a few tho
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
Yea, I'd like to see that. How many people are on your lists if you
don't mind me asking?
I also came across this evening, http://phpmailer.sourceforge.net and
http://www.octeth.com/index.php uses this class on it's backend,
claiming that it is able to send 500,00 on a AMD Duron 900 with 512MB
RAM
dear list,
I've noticed that the longer i work on a project, the more i use my
'organic' way of adding features and filter, and the less i understand what
my own code is doing. Now I do have some projects of, say, 5000 lines and i
started very organized with flow diagrams and function descripti
Why not just use simple alias files?
1) You have a file with all your addresses
file.asc:
[EMAIL PROTECTED]
[EMAIL PROTECTED]
etc
2) You have the alias entry
my-mass-list::include:/path/to/file.asc
3) PHP sends one email to [EMAIL PROTECTED]
4) The mail server (if it's any good), expand
In almost all cases the number of mail messages/time unit sent is a function
of bandwidth, not CPU; my Pentium II 250Mhz machine saturates a 768K SDSL
line no problem at all.
Mark C.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
>I have a site hosted at JTL Networks, and I'm looking into setting up
> a spell checker for my message boards. The problem is, JTL doesn't have
> pspell compiled in with their php build, and it may be some time before
> they do (if they ever do). Does anyone know of a way to include
> someth
Hi,
Sunday, December 22, 2002, 7:24:41 AM, you wrote:
BG> Hi,
BG> I've finally got a host and I want to transfer my existing website - I
BG> have managed to copy and upload my database (wow that was easy.. had
BG> been dreading it) but now I'm worried that my sessions aren't going
BG> to
Well, the problem I'm facing is that the application I'm building will have
several users that may have a few subscribers to very large subscriber list.
Using the include function in sendmail aliases will still be using Sendmail
to deliver the email, but folks have been saying that SMTP is much fas
Hi,
Wednesday, December 4, 2002, 12:13:22 AM, you wrote:
GC> Hi folks,
GC> I would like to add a few fields to a custom Apache access log format
GC> and populate the values from mod_php.
GC> As a mechanism, I was thinking of using the PHP function putenv( ) to
GC> set environmental variables. I
Hi,
First off, thanks to all those that helped out with my other questions. Not
all my problems were solved, but I'm certainly closer. Still working on the
same project I need to do the following.
I have a form where users input numbers only, is there a way I can have php
check to make sure a let
php-general Digest 22 Dec 2002 02:30:00 - Issue 1777
Topics (messages 129057 through 129088):
Re: Is there any method to filter the single quote fromastring?
129057 by: Alexander Guevara
129059 by: John W. Holmes
129063 by: Alexander Guevara
Re: session life
Use is_numeric()
http://www.php.net/is_numeric
See also the ctype functions which can
be read about here:
http://www.php.net/ctype
And yes, regular expressions are another
option but aren't needed here.
Regards,
Philip Olson
On Sat, 21 Dec 2002, Beauford.2002 wrote:
> Hi,
>
> First of
hi,
I just found this behavior when trying to implement a linked list with php.
In linked list it's common to say:
$a =& $a->next;
when traversing the list. but this doesn't work (it gives segmentation fault when
trying to access the $head->next object (after the above assignment).
but this w
Aspell is deprecated in favor of Pspell in PHP so
using it is a bad idea. But you can do this to
get Pspell going:
a) On either the JTL box or on some other one
with the same operating system, get the php
source and get ready to compile.
http://www.php.net/downloads
b) Be sure the a
Hi all,
I came across the following weird situation. I don't get it, I hope some of
you can explain the logic of it all.
[begin code]---
child = &new Child($this);
}
}
/* Define class Child. Its constructor assigns a reference of the Parent
object that contains th
change your createParent function to return by reference:
function &createParent()
{
return new Parent;
}
it returns 'two' and 'two' for me
Regards,
- reynard
>Hi all,
>
>I came across the following weird situation. I don't get it, I hope some of
>you can explain the logic of it all.
>
>[b
Wow!! You're my king! Thanks, that syntax is completely new to me!
Great, another thing learned today! :)
Cheers mate!
<[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> change your createParent function to return by reference:
>
> function &createParent()
> {
just a little update after playing arround with this stuffs,
I think this behavior happens when there is nothing else pointing to variable $a.
so for example, this works also:
$tmp =& $a;
$a =& $a->next;
I'm wondering how php does garbage collection? does it immediately delete variables
th
Hi,
Sunday, December 22, 2002, 1:43:27 PM, you wrote:
TM> Wow!! You're my king! Thanks, that syntax is completely new to me!
TM> Great, another thing learned today! :)
TM> Cheers mate!
You have setup a recursive reference there with child, I don't know if this
causes bad things to happen in php
Thanks for the info, but . is_numeric does not appear to accept
variables i.e. is_numeric($num) and ctype gives me the following.
Fatal error: Call to undefined function: ctype_digit() in
/usr/local/apache/htdocs/.. on line 6
- Original Message -
From: "Philip Olson" <
This is what I'm looking fordo you know if you can load it in a
.htaccess file? I have a couple of files that are included in on every
page, so I could do it in my config file, but there's no reason for me
to load the module on the whole site, when I need it just in the forum
section. I'm
I'll try.
/* This function instantiates and returns a new Parent class. */
function createParent()
{
return new Parent;
}
/* $p is a reference of the Parent object created by createParent(). */
$p = &createParent();
I believe the problem occurs here. $p becomes a reference to the
createPar
Hi All,
Relatively new PHP coder (was in an MS / ASP shop before)... I'm doing some
flat-file manipulation (please, spare me the database comments, I'm working
on it!), and I'm having to read strings out of one file and copy them into
another until a while() condition is satisfied.
The problem i
I'm using a HTML form to submit flat text files to a MySQL database. When I
upload the text file by FTP the script that loads it's contents into the
database works as expected. When I upload using the HTML form it seems to
ignore the new line in the text file. As a result it only creates one row
Okay, attacking my flat-file issues from the other end:
When you use $foo = fgets($fp_file); it appears that a blank line ends up
looking exactly like a FALSE ("failed to read") return value... Is there
any way to differentiate between an empty-string read (a blank line in a
flat-file) and a FAL
Changing ENCTYPE to "text/plain" from "multipart/form-data" solved the
problem.
:)
loop
From: "James Brennan" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: [PHP] uploading flat text to MySQL
Date: Sun, 22 Dec 2002 01:04:14 -0500
I'm using a HTML form to submit flat text files to a MySQL
Nevermind. I'm a retard. That didn't actualy work. I was executing an old
script.
I'm going to get away from my computer now before I do something realy
stupid :P
g'night,
loop
sorry for the multiple posts
Changing ENCTYPE to "text/plain" from "multipart/form-data" solved the
problem.
Hello,
On 12/21/2002 08:10 PM, Jonathan Chum wrote:
An upcoming project I'm working and spec'ing out is a mass mailing
application. Initially, I was looking at Mailman which was written in Python
since it looks like it handles delivering emails efficiently without killing
the server. We have 1 cl
56 matches
Mail list logo