need to remove newline characters from form input
I'm writing a simple threaded message board using only php.
I have it worked out except for having to make sure the user input from a <TEXTAREA> doesn't have new line characters. I need to add
those myself. Is there an easy way, short of checking each character in a loop, to rid input of new line characters.
Also, ( this might come in handy lol ) what new line character is created when the user presses the Enter key when filling a form
field? If they aren't " \n" I'm not sure what Im looking for.
much advance thanks,
Dale
|
2/26/2004 7:59:20 PM
|
0
|
primeo...@hotmail.com ("Five")
|
How to append string
I've been looking through srting functions for an hour and now know how to do everything besides what I need to do.
I have an arrray of strings. I want to append another string to a string in one element of the array. I'd just do it this way (or
something like it) but I can't get it to work:
array[3] = array[3] + "more string";
It doesn't seem to work like C, java or javascript languages.
Thanks,
Dale
|
2/25/2004 3:59:14 PM
|
0
|
primeo...@hotmail.com ("Five")
|
public/private variables in a php objects
Hi,
Is there such thing as public/private variables in a php class? if there is,
how do i declare a private varable -- from what php version does this work
from?
Thanking in advace,
Suranga.
|
2/21/2004 1:25:32 PM
|
0
|
sura...@reddottours.com ("Kavinda")
|
Include_Once(), Whats the deal!!
Ive programmed with C/C++ for years and have recently started to dabble in
PHP. Ive written a multi-part script for a friend and Ive run into a
problem.
Ive got 14 include files 3 of which are basic components that may or may not
be used by other components. One is an authorisation class, another is a
Dbase clas (For MySQL) and another is a file system component.
Now heres the problem. My authorisation component uses the DBase component.
Some of my other components use the DBase component only some of the time
and the Auth and DBase components some of the time and the Auth componen
|
2/3/2004 9:18:25 PM
|
0
|
midnightstud...@shaw.ca ("Rob")
|
pulling from two tables in db to two tables in php question
What I need to do is this, I want to take the information from $i[3] in
table links and put it where $i[4] is in the table users. Basically, I query
the first table for some info, but to make the second table look pretty, I'd
like to use the info from $i[3] in place of the info I get from $i[4]. Does
this make sense? Here is my code:
#query the db
$query = "SELECT * FROM links ORDER BY ID";
$result = mysql_query($query)
or die(mysql_error());
#display column titles
echo "<table border align=center>";
echo "<tr>";
echo "<td><center><small><b>Admin</b></small></td>";
echo "<td><
|
1/28/2004 5:17:51 AM
|
0
|
vi...@wifidirect.com ("Vinny Gullotta")
|
Hi
------=_NextPart_000_0012_49788EC0.C19CE8AC
Content-Type: text/plain;
charset="Windows-1252"
Content-Transfer-Encoding: 7bit
------=_NextPart_000_0012_49788EC0.C19CE8AC--
|
1/27/2004 2:27:40 AM
|
0
|
apint...@lycos.es
|
[HELP] Percent sign replacement.
Hi,
I have written the following code to parse the incoming text from a
<textarea> so that PHP chars like " or \ are replaced with their respective
alt-codes.
$strBodyText1 = $_POST['message'];
$strBodyText2 = str_replace(array("\'", '\"', '\\', "%%"), array('\'',
'"', '\', '%'), $strBodyText1);
printf($strBodyText);
This code work well until a percent sign (%) comes into action. Somehow it's
not recognised by the code and I get a huge printf() error.
The error is as followed:
Warning: printf() [function.printf]: Too few arguments in
/home/users/g/i/gimmic/www/b
|
1/10/2004 12:30:47 AM
|
0
|
a.schreynd...@chello.nl ("Alexander Schreijnders")
|
Problems with ldap_start_tls ()
Hi,
I'm trying to get secure authentication with Novell EDirectory running.
PHP Version is 4.3.1 compiled with ldap and openssl.
I copied the Novell root-certificate into the OpenSSL Certificate folder
(/etc/ssl/certs) and made sure that the ssl handshake is fine:
# openssl s_client -CApath /etc/ssl/certs -connect servername:636
returns
Verify return code: 0 (ok)
BTW: The files in /etc/ssl/certs are world readable.
After that I configured the openldap-client (ldap.conf) adding:
TLS_CACERTDIR /etc/ssl/certs
to make sure, the ldap client is able to find the t
|
1/9/2004 6:00:45 PM
|
0
|
florian.ra...@web.de (Florian Racky)
|
Fileupload with MAC OSX Browsers
Hi,
�
The following script works on any browser on windows xp. But not on a
mac (osx)
It simply shows the temp-directoryname.
Is anybody out there who could help me to fix this problem?
How will the upload work with Safari?
Thanks for your help.�
�
This is the form for the upload: �
�
<form enctype="multipart/form-data" method="POST" name="NAForm"
action="IA.php?<?=SID?>"> �
<input type="file" name="BildDatei" maxlength="128" size="36" value="<?
echo $Bild; ?>"> �
<input type="hidden" name="MAX_FILE_SIZE" value="20480"> �
�
�
�
The following site checks the uplad and c
|
12/20/2003 9:03:26 AM
|
0
|
vol...@daehn.de (Volker "D�hn")
|
Fileupload on MAC-Browsers won't work
Hi,
�
The following script works on any browser on windows xp. But not on a
mac (osx)
It simply shows the temp-directoryname.
Is anybody out there who could help me to fix this problem?
How will the upload work with Safari?
Thanks for your help.�
�
This is the form for the upload: �
�
<form enctype="multipart/form-data" method="POST" name="NAForm"
action="IA.php?<?=SID?>"> �
<input type="file" name="BildDatei" maxlength="128" size="36" value="<?
echo $Bild; ?>"> �
<input type="hidden" name="MAX_FILE_SIZE" value="20480"> �
�
�
�
The following site checks the uplad and copi
|
12/20/2003 8:58:11 AM
|
0
|
vol...@daehn.de (Volker "D�hn")
|
Sockets: is there a way to check if the remote host didn't close the connection?
host,port,connectiontimeout,username,password are pre DEFINEd values
function connect() {
$sock = @fsockopen (host, port, $errno, $errstr, connectiontimeout);
if ( $sock ) {
fputs($sock, username."\n");
fputs($sock, password."\n");
}
return $sock;
}
after sending the username and password, server will check if these values
are correct, if not, it'll disconnect the connection
Is there a way to determine if the connection still exists after I'm sending
the username and the password?
thanks!
|
11/24/2003 6:31:54 AM
|
0
|
o...@warezoneil.cjb.net ("omri")
|
PHP and cron
My php is installed as a server module. I am using Solaris 9 OS.
My question is: How to modify php configuration or Solaris conf, to run any
script using crontab (script should be run automatically every ten
minutes).
Thanks in advance.
Your polish friend.
|
10/14/2003 11:46:43 AM
|
0
|
gry...@ee.pw.edu.pl ("Romek")
|
PHP script and cron
My php is installed as a server module. I am using Solaris 9 OS.
My question is: How to modify php configuration or Solaris conf, to run any
script using crontab (script should be run automatically every ten
minutes).
Thanks in advance.
Your polish friend.
|
10/14/2003 11:29:07 AM
|
0
|
gry...@ee.pw.edu.pl ("Romek")
|
Expression needed!
Can someone help please? I need an expression to use for eregi() that
matches following strings (examples):
01.jpg, 02.jpg, 15.jpg, 68.jpg, u01.jpg, u34.jpg
In fact, it should match all nn.JPG and Unn.JPG (where u is a literal and
nn is a two-digit number - .JPG is a literal, too).
Thanks for supporting a newbie *g
- Michael
|
10/14/2003 8:39:25 AM
|
0
|
...@hem.de (Michael Kochendoerfer)
|
PHP and openSSL issues
Hi,
I'm trying to use the echo-merchant payment gateway in an e-commerce store.
However the script that I am using demands that PHP be installed with
the --with-openssl option.
The host that I am using have installed openSSL on their webserver, and it
shows up under the cURL entry on phpinfo() as the right version but not
under the 'configure' options as --with-openssl, however it seems that they
have managed to install it in some way other than through a command line
option?... is this possible?
Could someone explain how it can be possible to install openSSL on a machine
and h
|
10/11/2003 10:35:32 AM
|
0
|
...@ptwebapps.co.uk
|
ADO Connection problems
I am having problems making things happen in a Microsoft Access Database
that I am connecting to through an ADO Connection using PHP. I know a
little bit about PHP and how to code, but this is the first time I have
played around with the ADO Connection and Command objects.
I am getting no error messages or anything, but when I browse the database,
my changes are not being posted. Here is an example of what I am trying to
do. Hopefully, I am just missing a step along the way.
$dbFile = '\\\\SERVER\\FOLDER\\BackEnd.mdb';
$conn = new COM('ADODB.Connection');
$conn->Open("DRIVER=Mi
|
9/16/2003 8:04:23 PM
|
0
|
joe.m...@g-k-m.com ("Joe Mack")
|
Include ZIP library
Hi all,
I need to unzip a file on a linux server automatically.
I found the ZZiplib being able to do this but I don't know how to configure
PHP to handle it.
I use PHP 4.3.2.
Thanks in advance,
Stephane.
|
9/16/2003 1:06:08 PM
|
0
|
s.paq...@blue4you.be ("St�phane Paquay")
|
Function calls and strings
Hello.
PHP possesses what the manual calls "complex syntax" for allowing one to
include non-trivial expressions in strings, e.g.:
$s = "The result is {$results[$foo]}.";
I seek to find out whether PHP also has a syntax to allow function calls
within a string, so that explicit concatenation is not needed. E.g.:
something like:
$s = "The result is {getResult($foo)}.";
as opposed to
$s = "The result is " . getResult($foo) . ".";
If that is not possible, I would appreciate if someone could suggest the
rationale.
Thank you,
--
Ney Andr� de Mello Zunino
|
9/10/2003 11:16:00 PM
|
0
|
zun...@undl.org.br (=?ISO-8859-1?Q?Ney_Andr=E9_de_Mello_Zunino?=)
|
Remove vars from memory?
Hi all.
Will PHP remove variables from memory when script will NOT use them in rest
of code?
for example:
<?php
$tmp=true;
if ($tmp) // here is $tmp used last time, will it be removed from memory?
....
.... // $tmp is NOT in the rest of code
....
....
?>
or I must use allways unset()?
Thanx
Emo
|
9/5/2003 9:28:46 AM
|
0
|
...@emo-cz.net ("\[cz\]Emo")
|
test
supernews test
|
9/1/2003 7:45:27 AM
|
0
|
p_a...@intnet.mu ("Pascal")
|
Help - Translation Troubles : cvs / chapters / streams.common.xml
Hi,
I'm translating the file / chapters / streams.common.xml and I'm facing some
problems so I need some help please:
1. "memory mapped files"
I don't understand the meaning of this expression, so I can just make a
temporary translation in this moment. I need to know the meaning or function
of these files. Is this meaning right > "the files which memory is mapped?"
2. I ask you to simplify your texts. I remarked that I affronted the same
problem with other groups when translating like French and Spanish groups.
Example: How would you express this sentence in a simple way:
<f
|
8/16/2003 1:49:26 AM
|
0
|
arab_p...@algeriecom.com ("Hafid")
|
Help - Translation Troubles : cvs / chapters / streams.structs.xml
Hi
I just want to ask if I have to translate this expression: struct stat
in:
<structfield>sb</structfield> is a regular, system defined, struct stat.
Apparently, it is not translatable and I was asked to no do it; but some
translators did it: for ex. the French translation.
So, please do I have to translate it or keep it like it is?
and if it is translatable, does this expression mean: structure statistics ?
and is "struct stat" a file ?
Regards
Hafid
--
> PHP Arabization Forum: (http://www2.php4arab.info/doc.ar.list/)
> Dictionary: (http://www2.php4arab.info/acronyms
|
8/16/2003 1:48:50 AM
|
0
|
arab_p...@algeriecom.com ("Hafid")
|
Determine Client OS and if it is Java Enabled and Flash Enabled
Hya,
Can someone give me a hand on how to determine if the client (the visitor)
is java & java enabled and the os he's using?
thank you,
Alexandru
|
8/11/2003 9:46:55 AM
|
0
|
alexan...@webstyler.ro ("Alexandru-Vlad Badut")
|
class extends - need explanation to php class and declaration order behaviour
I know the manual says that classes must be declared before being invoked,
but this works
--- snippet 1 start ---
$obj = new Class1();
class Class1
{
Class1() {
}
}
--- snippet 1 end ---
Now, say I do this:
--- snippet 2 start ---
require_once("class2.php"); // say, this is class 2, which looks like
snippet 1
$obj = new Class1();
class Class1 extends Class2
{
Class1() {
}
}
--- snippet 2 end ---
this just dies, but
--- snippet 3 start ---
require_once("class2.php"); // say, this is class 2, which looks like
snippet 1
class Class1 ext
|
8/6/2003 9:02:32 AM
|
0
|
sek...@connectingspace.com ("Sek-Mun Wong")
|
HELP: Translation problem: /chapters/streams.xml
Hi,
I ask for help. I have difficulties to understand the meaning of this
expression mainly because of the word ''userland''
(Userland stream functions can be found in the <link
linkend="ref.stream">Stream Reference</link>.)
Thanks
Hafid
--
> PHP Arabization Forum: (http://www2.php4arab.info/doc.ar.list/)
> Dictionary: (http://www2.php4arab.info/acronyms)
|
7/22/2003 10:02:47 PM
|
0
|
arab_p...@algeriecom.com ("Hafid")
|
Problem creating thumbnails
I've created a gallery section of my web site. The index page looks to see
if there are any sub-directories and, if there are, looks inside for Jpegs.
It then creates thumbnails on the fly from the jpegs and displays then in
tables, suitably linked.
Here's the problem. The whole shebang works fine on my local system,
whether running under WinXP or Linux. My hosting provider says that all
necessary GD libraries are enabled on the host system, so in theory it
should work. But it doesn't. What happens is that the browser throws up
image placeholders (because it comes across the <IMG SRC
|
7/20/2003 6:16:10 PM
|
0
|
qu...@webvivant.com (Quinn)
|
what list should I send to?
I couldn't work it out with the link you gave..
The best place I could think of was php.general but I would like my message
seen and not hidden in a huge amount of other message.
please recommend and appropriate one.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.491 / Virus Database: 290 - Release Date: 6/18/2003
|
7/9/2003 4:19:09 AM
|
0
|
ya...@wallst.com.au ("Yasha Nisanov")
|
Anchor Lost in Header Redirect
I'm not sure if this is the same bug that is talked about in Bug #6178:
URI Re-writing failure but there is comments of this being fixed in php
v4.0.2 and I am using php v4.3.1
I have a page that contains a form with enctype="multipart/form-data" -
used to upload an image
The form data is sent to a 2nd page that writes the image data into a
database.
In the 2nd page I also have a header function that contains an anchor
reference (#MyAnchor);
When the headers source page loads, the anchor disappears from the url.
This only happens when I post from a form that has
enctype=mu
|
7/9/2003 4:03:04 AM
|
0
|
ya...@wallst.com.au ("Yasha Nisanov")
|
PHP Object -> JavaScript Object
Hi I am a newbie here
I defined an object and want to parse it into JavaScript
However when I enter the JS function, the object becomes empty.
How can I use the PHP object in JS?
Thanks!
Please see the simpified codes below
<?
class phpObj {
.....
}
$parseMe = new phpObj;
?>
<html>
<script lang="javascript">
function eatObj(jsObj) {
// jsObj is empty!
}
</script>
<body>
<a href="javascript: eatObj(<?=$parseMe?>")>Parse the Object!</a>
</body></html>
|
6/25/2003 3:47:25 AM
|
0
|
swift...@i-cable.com ("Dennis")
|
Help on passing value!!!
Dear all,
I cannot pass value directly from the URL to my PHP script. For example,
there is no effect for me to type http://localhost/show.php?a=1 and
http://localhost/show.php. What is the problem? Is that the setting of my
Apache?
Thank you.
|
6/21/2003 8:46:53 AM
|
0
|
yi...@hkusua.hku.hk ("Joe Phyism")
|
Problem in passing value
Dear all,
I am using Apache and PHP as local web server.
I have the following script as show.php
<?
if ($a==1) {
echo "True."
} else {
echo "False."
}
?>
However, when I type http://localhost/show.php?a=1, it shows "True.", why?
Is there any problem in my setting of Apache server?
Can anyone help me? Thank you.
|
6/21/2003 8:43:19 AM
|
0
|
yi...@852.net ("Joe Phyism")
|
Problem in passing value directly from browser URL
Dear All,
I am using Apache and PHP as local web server and now I am facing a problem.
I can directly run my php script on the web server, however, when I pass
argument or variable value directly from the URL address in browser, the PHP
script cannot determine it.
For example,
<?
if ($a==1) {
echo "True.";
} else {
echo "False.";
}
?>
When I called the script http://localhost/show.php?a=1, the response is
"False.". Is there any problem in my script or the setting of my Apache
server is crashed?
Can anyone help me? Thank you.
|
6/21/2003 8:36:43 AM
|
0
|
yi...@852.net ("Joe Phyism")
|
Fatal error: Allowed memory size
Why this error ?
Fatal error: Allowed memory size
|
6/19/2003 2:43:32 PM
|
0
|
tarcu...@apsnet.it ("Tony Arcucci")
|
Dynamic menu not passing value to PHP?
Hi,
I'm trying to create a page where a user can choose to view products by
category by selecting a drop down menu or he can choose to do a search
against the item name. The script seems to work but I'm puzzled cos the
mysql query seems to be querying all the category while it is suppose to
match it via the selected option value from the dynamic menu. Is there
something I've missed out cos it seems like the $sltCat which is suppose to
pass the selected option value when the form is submitted is not passing the
correct value, resulting in the mysql query throwing out all the info when
|
6/16/2003 9:38:22 PM
|
0
|
den...@indigohue.com ("Dennis Martin Ong")
|
asymmetric encryption
I am new to PHP and was wondering if there was a way to do asymmetric
(public/private key) encryption with PHP? I don't have administrative
(ability to install programs) on either the web server or the client
machines so it seems that neither pgp nor gnupg will not work.
Thanks in advance,
~Logan
|
6/16/2003 12:07:04 PM
|
0
|
lo...@globalweb.net ("Logan McKinley")
|
determining mime type
Hi All,
I have files in a directory that I need to display as a directory listing
onto a web page. Users can click on the document and open the contents in
their browser. I also have the files stored in an area not directly
accessible by the web server, for security purposes. The script that
retrieves it gets the path and mime type from a mysql database before
opening and outputting the file's contents to the user's browser. The mysql
database gets its information from another php script that is used to upload
and store the files. When the files are stored, I can find out what m
|
6/13/2003 10:47:34 PM
|
0
|
d...@dangnguyen.net ("Dang Nguyen")
|
Frustrated by RegEx in PHP
Hello all,
sorry to disturb you with this-
but i am not really good in regex and can't catch it...
I have to parse a html document, and want to replace a piece of this link:
<IMG ID="Bild4" height=30 width=209
SRC="./assets/images/Werbung_oben_header.gif" VSPACE=0 HSPACE=0
ALIGN="TOP" BORDER=0 ALT="">
It shall be:
<IMG ID="Bild4" height=30 width=209
SRC="./nts/templates/images/assets/images/Werbung_oben_header.gif"
VSPACE=0 HSPACE=0 ALIGN="TOP" BORDER=0 ALT="">
My regex expression must not care about case sensitiv, should start it's
work when it finds a <img and stop
|
6/5/2003 12:27:10 PM
|
0
|
...@possessed.de ("Chris. Grobmeier")
|
Problem with file uploads
I'm using:
- Apache 2.0.40 server (linux)
- PHP 4.2.2
I use file uploads in my code, but there occured small problems with the
server update(from Apache 1.3.??, PHP 4.1.2). is_uploaded_file()- and
move_uploaded_file()-functions don't work correctly any more. Or
actually the file upload system doesn't work correctly.
The problem is to recognice, when the user try to upload a file, which
doesn't exist. It's possible to even write nonsense like "sdafasdf" into
the file type input-field (Mozzilla and IE). In that case the current
server writes an empty file named according to t
|
6/5/2003 7:27:15 AM
|
0
|
ko...@cc.jyu.fi (Sami Kollanus)
|
php affiliate? or other affiliate programs on php languge?
hi, i am looking for an affiliate program (good freeware or good cheap
commercail software).
i went to http://www.hotscripts.com to look in its php scripts - affiliate
category.
not too many to select from.
anyone has experience in any of them or other php based affiliate program?
please share your experience with me? any information you think that will
help.
how about the "php affiliate"? it seems that it was an old one. but the
"php affiliate" only has a new forum with only 30 posts and i think "php
affiliate" team is busy in making the new commercial version. i cannot
|
6/2/2003 7:25:16 PM
|
0
|
huizhan...@hotmail.com ("hui zhang")
|
question regarding mkdir function
Hi All,
I have found that the mkdir function does not recursively create directories
for a given path. Rather than trying to reinvent the wheel, I thought
someone might have this problem fixed already and wouldn't mind sharing
their solution.
For example, I want to use the command "mkdir(/Path/to/my/stuff,0755)". If
"/Path/to" exists but /Path/to/my does not exist, then the path given in the
command will fail unless I first create the my directory. I'd like to check
that all parent directories exist and create them as needed.
--
Dang Nguyen
dang@dangnguyen.net
|
5/12/2003 8:46:42 PM
|
0
|
d...@dangnguyen.net ("Dang Nguyen")
|
Hidden Form Variables
This isn't exactly a PHP question, but I don't know where to ask it, and
it's closely related...
I have a form which saves some PHP variables as hidden properties of a field
for maintaining a user login. However, it's contents arn't posted to sites
linked via <a href=...></a> tags. If someone could tell me how to do this
without using cookies that'd be great (I'm trying to provide an alternative
for those people who's sysadmin disabled cookies - usually in a public place
such as a library).
aka my main page looks something like:
<html><head><title> Page Title </title></head>
<b
|
5/6/2003 4:40:08 PM
|
0
|
mricker...@yahoo.com ("MaulingMonkey")
|
help: bcdiv() and gmp_div()
im using php 4.2.1 but cannot get either of these functions to work, seems
they are unimplemented.
i cant find any documentation that explains this, and was just wondering if
other people have the same problem?
|
4/28/2003 4:38:20 AM
|
0
|
bobla...@wsas.net ("bob larry")
|
*Umlauts/UTF-8 Problem
Hello,
I am having a problem with umlauts in utf-8 encoded txt file, which is
being read by my script. Instead of umlauts I get ? or squares or
anything else, but not those umlauts. What is the problem, can anybody
help, please?
Thanks.
ps. I've chosen utf-8, because I have to have Western European _and_
Cyrillic characters on the same page. utf-8 seems to be the only
encoding to let me do that.
|
4/2/2003 5:56:01 PM
|
0
|
...@xtati.com (Alexey Lysenkov)
|
PHP Email Attachment
Hello,
I want to send an email attachment using PHP and the below code works
locally but when i upload to my RAQ Cobalt server it doesn't send the
attachment and i can't figure out why. If you can offer me any guidance as
to why this is happening it is greatly appreciated.
**The sendmail is a custom function listed below also, not the one inherent
to PHP.**
Thanks,
Mike
---------------------Begin Code----------------------
case("send_message"):
// Obtain file upload vars
$fileatt = $_FILES['fileatt']['tmp_name'];
$fileatt_type = $_FILES['fileatt']['type'];
$fileatt_n
|
4/1/2003 4:52:27 PM
|
0
|
mar...@magnatechonline.com ("Mike")
|
Whatever happend to killing php-lang?
How long has it been since there was an ON topic post here? Wasn't someone
trying to kill this list?
|
3/11/2003 6:29:23 AM
|
0
|
j...@joeysmith.com (Joey Smith)
|
Starting up Outlook
I am using CLI of PHP 4.2.3 on Win2K and I would like to start up Outlook if
it is not running; otherwise, I would like to bring up the already running
outlook to the desktop if it is minimized. Could PHP able to do it? If so,
how?
William
Databyte Corp.
|
3/10/2003 10:24:01 PM
|
0
|
will...@databyte.com ("William Cheung")
|
Session hanling & and disable disabled
Hi all,
Since the upgrade to php 4.3 I have several issue with my session handling
and my URL. First of all I currently use the following code :
<?
$chaine = "nav.php";
$url_array = explode("/", $_SERVER['REQUEST_URI']) ;
$url = array() ; $stop = true ;
while (list($key, $val) = each($url_array)){
if ($val == $chaine) $stop = false ;
if (! $stop) $url[] = $val ;
}
$i = 0 ;
while (list($key, $val) = each($url)){
$nom = $url[$i++] ;
$$nom = $url[$i++] ;
}
//Then I call my session lib
if (!$SID){
@session_destroy();
|
3/8/2003 6:50:26 AM
|
0
|
jacques.joce...@free.fr ("Jacques Jocelyn")
|
Text>Image
Greetings,
I've recently searched newsgroup archives on how to convert text into an
image. However, I cannot seem to find a clear example on how to create the
image dimensions based on the size of a textfile and then once I create the
initial image how to paint the text on the image based on how it appears in
the textfile. Any help with this would be helpful. Thank-you for your time!
|
3/8/2003 2:46:54 AM
|
0
|
jtitt...@comcast.net ("Christopher Smith")
|
Apache being mean to sessions?
Hi, i have a php script with multiple pages and sessions. To control the
sessions i use a Cookie instead of passing it on in the URL. This works
prefectly on my own NT site. The same script hosted on an Apache 1.2.26 with
PHP 4.2.2 forces the PHPSESSID into my url wich screws up the session
handling.
Why is apache forcing the session id into the url?
Is this the configuration of the session handling? and if so what part?
Thanks for any info!
Roel
|
3/5/2003 4:52:58 PM
|
0
|
r...@abspoel.com ("Roel S.F. Abspoel")
|
num string format
How to format a numeric string as following:
27 -> 27.00
35.9 -> 35.90
11.34 -> 11.34
Thanks!
Alex Shi
--
==================================================
Cell Phone Batteries at 30-50%+ off retail prices!
http://www.pocellular.com
==================================================
TrafficBuilder Network:
http://www.bestadv.net/index.cfm?ref=7029
==================================================
|
3/2/2003 10:15:42 PM
|
0
|
chp...@eol.ca ("Alex Shi")
|
General Speed and Server Caching
I am advocating a move to PHP for our corporate website as well as our
intranet. My boss, has raised an issue to which I've found no useful
response. His question was, can PHP scripts be cached in the server similar
to the way JSPs or ISAPI dlls are handled. For instance, I have a library
of functions I have already written. His argument is that the library must
be re-interpretted each time the script is hit. Is there any way to avoid
that?
Any help is appreciated!
Joshua Groboski
Programmer Analyst / WebMaster
SAVVIS Communications
http://www.savvis.net
|
3/2/2003 3:33:34 AM
|
0
|
joshua.grobo...@savvis.net ("Joshua Groboski")
|
.htaccess and crypt
I have seen several PHP scripts that act as an interface to .htaccess files.
They are able to add, change, and delete users from a nice, web-based
interface. The only problem is that they don't work on Windows.
I read a post somewhere where someone said that this is because the scripts
use "crypt" to write the encrypted password to the .htpasswd file and
"crypt" is not the same on Windows and Linux/Unix. Something about Windows
and Linux not using the same encryption functions.
Anyway, has anyone gotten this to work on Windows? I am doing research as
to which technology would be
|
2/27/2003 1:30:21 PM
|
0
|
cpmor...@mail.com ("Chris Morris")
|
[announce] CuteSITE CMS
Project announce:
http://sourceforge.net/projects/cutesitecms
Features:
1. Fully object oriented website building, by analogy with Zope.
2. Built-in multilanguage support.
3. Users permissions for using manage area.
4. Container types. Container 'Folders' is default for making site tree,
you can create own containers which includes custom default content.
5. Site snapshots (object copy) it's something like backup.
6. Template language - common PHP code.
7. Maillist.
8. Optional phpOpenTracker, for website statistics.
And many other wonderful features.
Requirements:
Apach
|
2/24/2003 5:40:00 PM
|
0
|
deoxyribonucl...@gmx.net ("Sergey Volkov")
|
Question about how to use pfsockopen()
I'd like to know how to use the pfsockopen() method correctly. I'm
experimenting with creating a webbased IM client. I was hoping I could
resume a socket from script to script (by using POST or GET or a Session).
This is not working. In the documentation I found that php looks if a
connection to the server:port exists yet. This is not working as I hoped it
would be!
Could someone please explain how to use pfsockopen() and if I generally can
create a persistant socket from a script (not a command prompt php program).
|
2/24/2003 2:42:58 AM
|
0
|
ar...@server.shuis.tudelft.nl ("Arjan Gijsberts")
|
PHP not supporting method overloading
Hi! I have a website whose pages were written in PHP.. using some classes I
have made that extensively use method overloading.. Before, my webhosting
company was using PHP 4.0.6 but just this january, they have upgraded to PHP
4.3.0... that is when I started to receive errors. My website is currently
down because all of my scripts are reporting error:
Cannot Redeclare .. blablah blah.. It seems to me that the support for
method overloading was removed. Even my FastTemplate class is issuing the
same error.....
What will I do to minimize the time in re-doing all of my scripts. And
|
2/23/2003 12:14:10 PM
|
0
|
june...@yahoo.com ("Jun")
|
removing html attributes by preg_replace
hello!
could somebody please help me to build a regexp to strip some attributes
from html code?
i'd like to remove all class="" attributes from html, but the example below
seems not match
i don't know what i'm doing wrong, this simply doesn't work!
<?php
$html = '<A href="http://www.anywhere.com" class="link"></A>';
echo "input:<br>".htmlspecialchars($html)."<hr>";
$html = preg_replace("|(<\w+[^>]*) +class=\"?.*\"?([^>]*)|iU", \\1\\2,
$html);
echo "output:<br>".htmlspecialchars($html)."<hr>";
?>
input:
<A href="http://www.anywhere.com" class="link"></A>
output:
<A href="htt
|
2/17/2003 1:44:52 PM
|
0
|
lh...@aurius.sk ("Tomas Lehuta")
|