Hi Guys
I am developing with PHP and XML. Now I experience some problem with the
processing instructions of xml ()
which causes PHP to return a parsing error.
This is logical because http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi all
Does anyone got any experience with JAVA in PHP?
I tried to rebuild php with java support. Everything worked well but when I
try to initiate Java in PHP, I get cannot instantiate Virtual machine.
I use kaffe and I believe I have configured PHP correctly.
See http://www.haemelinck.be:8080/
registered users section. Should I be
setting the cookie on the top of the page that I am sending them to?
Any comments or suggestions would be greatly appreciated.
Steve Osborne
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Is there a function or command in php that will redirect a user to another
page, similar to Response.Redirect(URL) in ASP?
Steve Osborne
Database Programmer
Chinook Multimedia Inc.
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED
Hi. Is there a way to find the class name of a method when called in the
class::method() format? If called on an object (eg. object->method()) I
could just ask for get_class($this), but when called as class::method(),
$this should not be defined. Anyway around this?
Thanks.
-Steve
--
On Monday, December 10, 2001, at 09:35 PM, phantom wrote:
> What would be an easy what to format a date value into month day year??
> I want to specially display a date stored in mysql in date format
> -MM-DD
>
> The manual says: string date (string format, int [timestamp])
>
> I tried $For
("location: index.php");
}else{
print("The cookie plan didn't work.");
}
Any suggestions would be appreciated.
Steve Osborne
Database Programmer
Chinook Multimedia Inc.
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [E
ly in that directory or
domain?
Will it be retrieved in subfolders of that directory?
Do I require special code to allow it to be accessed in subfolders?
Steve Osborne
Database Programmer
Chinook Multimedia Inc.
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e
the last id but to no avail.
>
>Thanks
>Yoed
>
--
+----+
| Steve Edberg [EMAIL PROTECTED] |
| University of California, Davis (530)754-9127 |
| Programm
;thanks in advance.
>
--
+----+
| Steve Edberg [EMAIL PROTECTED] |
| University of California, Davis (530)754-9127 |
| Programming/Database/SysAdmin http
Can someone tell me how to pass a variable in the url?
I am using a form and calling a handler file as its action, as in:
I've also tried single quotes around the variable $login, as in:
Anyone have any suggestions?
Cheers,
Steve Osborne
Database Programmer
Chinook Multimedia Inc.
[
Thanks for the advice... just had to remember that the variable had to be in
php tags, as in:
Thanks for the help, problem solved.
Steve.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To
Does anyone know of an easy way to store html code in a mysql database, and
then retreive it, in such a way that it can display the page as if it were a
standard html page? Would using php be of benefit to me?
Steve Osborne
[EMAIL PROTECTED]
*
*(borrowed from Paul)
--
PHP General Mailing
at escape
problem characters in databases and unescape them when retrieved.
Problem solved.
Steve Osborne
[EMAIL PROTECTED]
--
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 admin
hone);
If you don't hit the else block, your is_phone function is probably not
defined.
-Steve
On Tuesday, December 18, 2001, at 07:26 AM, J.F.Kishor wrote:
> hi all,
>
> I have got a problem, when I execute the following script it gives
> a Fatal error, could any one t
it will protect you in the future if problems
do arise.
Good luck,
Steve Osborne
Database Programmer
Chinook Multimedia Inc.
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To
ction() {
...
echo $GLOBALS['PHP_SELF'];
..
}
To the best of my knowledge, PHP_SELF is set regardless of the
register_globals configuration setting, but I'm not 100% sure.
-steve
At 11:13 AM + 12/19/01, Caleb Carva
If you're using PHP as an Apache module, you can use virtual() -
http://www.php.net/manual/en/function.virtual.php
- to include the dynamic parts; vcstatic includes could be handled by
virtual() or just a normal PHP include()/require().
- steve
At 11:09 PM -0800 12/
rote:
>
> > I would like to format numbers to be a fixed width.
> >
> > I want all numbers to be 2 characters in width to the left of the
> > decimal point.
> >
> > 1 should be 01
> > 2 should be 02
> > 3 should be 03
> >
> > How can I do this
HTTP_GET_VARS[user_authenticated]);
but that didn't do me any good. Please advise.
Thank you,
Steve Maroney
--
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: [EMAIL PROTECTED]
ED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
Thank you,
Steve Maroney
--
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: [EMAIL PROTECTED]
There are many different fax daemons for unix and windows. Thier command
line tools are differnt. In the past, I have sent a fax by opening a
process to the command line tools provided by the fax software. I simply
use PHP variables as arguments.
Hope this helps.
Steve
On Mon, 24 Dec 2001, LDL
Does the PHP_SELF variable only work if you have your register_globals on?
Is their an another for still using it ?
Thx
--
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 administrat
er pages and scripts ?
Steve
--
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: [EMAIL PROTECTED]
he files i want to delete but seem unable to
delete them.
can anyone help ?
Steve
--
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: [EMAIL PROTECTED]
""Phil Driscoll"" <[EMAIL PROTECTED]> wrote in message
001201c0b768$60da60a0$0c81@philsntserver">news:001201c0b768$60da60a0$0c81@philsntserver...
> Steve
>
> unlink works fine for me (on my nt boxes) providing the anonymous web user
> has p
ipt a few months ago that
does what you want. Even if you don't need something this complex in your
case, my code uses 5 or 6 string functions and arrays so it's a pretty good
example of how to manipulate strings in PHP.
--
Steve Werby
President
Befriend Internet Services LLC
Tel: 8
Anybody got an idea why $PHP_SELF isn't working with me?
I think because I have set my register_globals to off, but how can I get the
value of $PHP_SELF an another way ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
script and what are the permissions on
it? Is PHP running as an Apache module or as a CGI? If it's an Apache
module, what owner does Apache runs as?
Also, if your system is a Cobalt RaQ you may want to post to the
cobalt-users mailing list
(http://list.cobalt.com/mailman/listinfo/cobal
}
For more information, see
http://www.php.net/manual/en/function.strlen.php
http://www.php.net/manual/en/function.substr.php
http://www.php.net/manual/en/function.substr-replace.php
-steve
>if the string was:
>
>hi my name is
>
>it is returned
>
>Check out the regular expression documentation or "Mastering Regular
>Expressions" over at ora.com.
>
If by 'spaces' you want to include tabs, newlines & stuff, you can also do:
if (!ereg("^[[:alnum:][:space:]_-]+$
i:s" ) . " GMT" );
Making your webpages appear at the top of search engines for your desired
search phrases is another story. Though I live talking about search engine
optimization strategies and steps, this isn't the right forum for giving
away all of the secrets.
--
Steve Wer
session handling in PHP4 see the manual
(http://www.php.net/manual/en/ref.session.php) and you may want to check
zend.com, phpbuilder.com, etc. for tutorials, code snippets and examples.
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
--
PHP General Mailing List
yperlinks, but not other tags.
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
--
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: [EMAIL PROTECTED]
possible. Post your code so we can see what you've tried. I
suggest using fopen() and fgets() to accomplish what you want. The first
example in the manual at http://www.php.net/manual/en/function.fgets.php
does exactly what you want.
--
Steve Werby
President, Befriend Internet Services LL
"Jan Grafström" <[EMAIL PROTECTED]> wrote:
> Thank You Steve!
> Here is my php
>
> $fillista = "fillista.xml";
> $fp = @fopen($fillista,r);
> $count = fgets($fp,filesize($fillista));
> fclose($fp);
> print "fillista=".$count;
You may know this already and not have a need, but for the benefit of others
who may have read your post, you can loop through 'a' to 'z' using the chr()
function as follows:
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
--
PHP G
statements from your table, edit the table name and then
use MySQL to run the INSERTs.
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands
SELECT *
FROM accounts
LEFT JOIN addresses
ON addresses.ID = accounts.ID
> Can anyone suggest me how do I SELECT ALL of the accounts having simply
NULL
> on 'addresses.*' when there's no such row, instead of 'loosing' the whole
> 'account' row?
"E K L" <[EMAIL PROTECTED]> wrote:
> $tpl = new FastTemplate("../usr/local/apache/htdocs/toplevel.tpl");
According to the error, the path above is incorrect. Looking at it, my
guess is that the path might really be:
"/usr/local/apache/htdocs/toplevel.tpl&qu
e
functions and may need to go through some code. And if the new and old
versions are configured differently (like having differences in whether
magic quotes is on/off and short PHP tags are on/off) you may have to make
some code changes. Otherwise it should be a pretty smooth transition.
tion.
> Could anyone help me to find out where phpinfo() is pulling it's
information
> or direct me to an upgrade "how to"
> for PHP ?
Perhaps you should try deleting the old install first. locate php, then
rm -rf [DIRECTORIES_HERE] or rpm -e [PHP_PKG_HERE].
--
Steve Wer
rol, there's no way to check down to that level. And be happy there
isn't. Otherwise the amount of spam you get right now will increase ten
fold.
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
--
PHP General Mailing List (http://www.php.net/)
To unsu
"Steve Werby" <[EMAIL PROTECTED]> wrote
> Renze is correct. Unless you're checking local email addresses which you
> control, there's no way to check down to that level. And be happy there
> isn't. Otherwise the amount of spam you get right now will
t; I need to get information about the columns using sql.
> that information is to be accessed with a php script. so, I'm looking
> for something resembling "select info from table"
Check the online manual for more functions and other databases.
--
Steve Wer
;re not using $resolvedhost anywhere in the script so why are you
defining it?
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PRO
<[EMAIL PROTECTED]> wrote:
> ** Reply to note from "Steve Werby" <[EMAIL PROTECTED]> Tue, 3 Apr
2001 15:24:29 -0400
> >
> >
> > I should have said there's no *reliable* way to check whether an email
> > address on an external server is vali
ug in my
> code, but PHP4 isn't reporting the correct line?
Maybe you have a missing closing bracket "}".
> Thanks in advance, and I can psot the code if people think it will help...
If it's not a missing closing bracket, post the code.
--
Steve Werby
President, Befrie
t you? There's no such beast in
MySQL, but you can do this:
IF( my_field IS NULL, your_expression, my_field)
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additi
anguage like PHP you won't be reading the PHP source
code.
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To conta
stall. You could also use an existing
open source application like mnogosearch.
> What about search the META tags as well??
Read the manual - there are functions specifically for this (though they
won't work if the meta tags aren't exactly as expected).
--
Steve Werby
Pres
bout LEFT JOINs in the manual.
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
--
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: [EMAIL PROTECTED]
I suspect this will
do the trick:
! empty()
instead of:
isset()
Or Jeff (Data Driven Design), did you use a different technique?
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTE
the right...I
mean wrong times.
> How about a downloadalbe version of the site? Does such a thing exist?
You can download the manual. See http://php.net/docs.php. If you want the
entire site you're going to probably have to slurp it using a spider.
--
Steve Werby
President, Befriend I
st called. Then in your main PHP file
that calls it use eval() to parse the variable before using it.
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addit
within the logic of the PHP script. Depends
what he needs to do. I still think mysql_field_name() / pg_fieldname() are
the way to go, though Mauricio never mentioned which DBMS he's using.
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
--
PHP General
t; be coded in PHP to do this?
Just prepend the DB name to the table selecting from:
SELECT table_1_from_db_connected_to, other_db_name.table_2 ...
And make sure that the user for the first DB has permissions for the second
DB.
--
Steve Werby
President, Befriend Internet Services LLC
http://
syntax between
PHP3 and PHP4 if you're using the old style. The new style is:
php_flag include_path ".:./lib"
Directories are separated by colons.
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
--
PHP General Mailing List (http://www.php.net
ill quite handy ;)
I have 4.03 installed on a RaQ2 and AFAIK it will install on a Qube2 since
they share the same software. I've yet to install 4.04 on a RaQ2 though.
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
--
PHP General Mailing List (http://www.php.
Ahh, the good old days of GOTOs in BASIC. ;-) There isn't a method for
referring to a line number within PHP. Enclose your code in functions and
do this:
if () { true_function_here(); }
else { false_fucntion_here(); }
If you haven't worked with functions, consult the online manual.
URL with
'http://'. If that's a local file and it's not finding the file, make sure
the path is correct.
> now when i rename the doc to something.htm, ill get the contents?
Which document - the one being called by fopen() or the one containing the
PHP script?
--
Steve Werby
Presi
"Steve Werby" <[EMAIL PROTECTED]> wrote:
> acutally i found my problem, what was happening was that script1 that was
> on the server that file resides had that file open at the same time that
> scirpt2 was trying to open via http, when i change that files name, the
&
; Is it possible to terminate the tcpIP connection, before the php script
ends?
> (I think this would solve my problem)
Perhaps register_shutdown_function() will do the trick. I've used it on
scripts where a call to an external command or long DB operation took a long
time, but did
osetup/auto/test.php on line 25
> }
> getdata( )
>
> echo $domain; <--This is line 25 which is outside of the function
getdata(); // Don't forget the semicolon.
As a general rule, missing semicolons ";" and braces "}" on lines above
those mentioned in t
ot;0") {
> if ($num = '0') {
The single "=" sets the variable $num to that value. A double "==" is an
equality comparison operator - that's what you want in this case. Also,
since mysql_numrows() returns a number, not a string, you don't need
esult);
Either will work. mysql_numrows() is the old name of the function from
previous PHP versions.
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additio
e to: field. I believe
this is covered in an example right in the manual. See mail() in the manual
online.
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additio
ing from PHP3 to PHP4 consists of installing PHP4. You can install
php with apxs (--with-apxs flag) in which case you don't need to recompile
Apache or you can recompile Apache and install it as a static module
directly in the Apache binary.
--
Steve Werby
President, Befriend Internet Services
ns at Zend's PHP function table, but I'm
pretty sure it's greater than the # at the URL above.
http://www.zend.com/phpfunc/
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [E
ernal programs that took a
long time, but did not affect the output sent to the browser. In those
cases I used register_shutdown_function() inside a control structure to call
another function (after outputting HTML from within the same control
structure).
--
Steve Werby
President, Befriend Internet
ms lead you to
believe performance needs to be improved. If by "performance" you mean
"generating more revenue or increasing page views" I have plenty of ideas,
but the last thing the world needs anyway is another hotornot.com copycat.
--
Steve Werby
President, Befriend Internet Se
In PHP3, POST/GET elements could only be one dimensional arrays, at
most. In PHP4, though, these can have 2+ dimensions, so for maximum
generality you'd have to have somewhat more complex code than this.
-steve
>-Original Message-
>From: Mat Marlow [mailto:[EMAI
$row[5]=mysql_fetch_row($result);
would simply create a 1-element array $row, with the array index 5.
If this was your first fetch statement, $row[5] would still contain
the first row of the result set.
-steve
--
+--- 12 April 2001: Forty years of manned
al first or access like
$GLOBALS["HTTP_POST_VARS"]["my_form_field"]. So, in your example you'd do:
$msg_body = "Hello, " . $GLOBALS["HTTP_POST_VARS"]["variable"];
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
ns to replace all template
variables with their corresponding PHP variable. As you loop through each
line and parse it add the parsed line to a string. When you're done include
the string in a mail() function to email it or use a file function to write
it to a file.
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
ess numbers with extensions or automated systems that have to be
traversed. So you may be better off not validating the phone #. YMMV.
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
need to redirect the user to another page
(after a successful login or registration), I can use a
header("Location: somewhere.else/to/go.html")
line.
-steve
At 8:12 PM -1100 6/19/01, motorpsychkill wrote:
>hello everyone, is it 'bad form' (no pun in
"Jacky" <[EMAIL PROTECTED]> wrote:
> Is there anyway I can do the logout that will completely
> get rid of all login detail without having user to close browser?
If you're using sessions session_destroy() will do it. Create a link or
form button that calls tha
Hmmm.. a porn site writen with PHP ?
On Wed, 20 Jun 2001, [EMAIL PROTECTED] wrote:
>
> SEX SELLS!!!
>
> Enjoy the riches of the most lucrative business in the world without being "in the
>business".
>
> If you are in need of money quickly, This is for you. You don't have to access the
>web
x27;re getting.
The only thing that might conceivably be a problem is the table alias
syntax. What you have _should_ work, but you could also try
Select a.field, b.field from table_one AS a, table_two AS b
where a.id = b.id
- steve
At 1:48 PM -1000 6/20/01, William Poarch wrote
See
www.php.net/stripslashes
Also check out the PHP configuration settings for magic_quotes_gpc
-steve
At 9:18 PM -0700 6/26/01, Marcus James Christian wrote:
>Hello,
>
>I'm pretty new to PHP but all I've seen of it so far I pretty much love!
>
>I've bui
"Marcus James Christian" <[EMAIL PROTECTED]> wrote:
> \' How can I filter out these backslashes so they don't appear on the
> final public viewable page?
Use stripslashes().
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
--
or one word can be made to find other forms of
that word.
FYI, to break a string into an array like you describe use strlen() to get
the length of the string, substr() to pull out the first N characters from
the string, then loop through and add each element to an array by adding as
follows (pseudocode):
ttp://www.mnogosearch.org/
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
--
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: [EMAIL PROTECTED]
Modify as appropriate.
>
> Have I missed anything, or will this do the trick?
Something along those lines will work. Without some kind of limitations
built in, the page will be able to load any file that's world-readable so
it's a good idea to limit access to certain directories
, not multiple character strings like '//'.
- steve
At 3:21 PM -0400 7/4/01, David A Dickson wrote:
>Thanks for replying ReDucTor but that didn't work either. I tried
>$line = explode("[(&|//)]", $field); and
>$line = explode("[(&|)]", $fie
f matching emails
and changes a flag in your DB record to designate the email address as valid
or a script in the webpage that does the same.
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mai
"Sascha Schumann" <[EMAIL PROTECTED]> wrote:
> On Wed, 4 Jul 2001, Steve Werby wrote:
>
> > "Jon Haworth" <[EMAIL PROTECTED]> wrote:
> > > Yes, I would have thought this would do it:
> > >
> > > if (strstr($file, "/usr/l
don't want to clutter
the code. The code below assumes the fields aren't preset to values other
than those listed above.
for ( $i = 1; $i < 4; $i++ )
{
$field = 'interest' . $i;
if ( ! empty( $$field ) )
{
$flag = TRUE;
}
}
if ( $flag =
Hi,
I need to set up a sockets connection to a server that was written in
Delphi.
Using the following code I can connect to the socket and send a message
through it but don't get a reply back ...
{
echo "Socket opened ok ... sending message";
$message=s
fixed it now by adding ascii(10) to reply from server BUT what if i use
fgetc ?
does anyone know the ascii value for EOF ?
cheers,
Steve
> -Original Message-
> From: Steve Brett [mailto:[EMAIL PROTECTED]]
> Sent: 05 July 2001 12:58
> To: Php-General (E-mail)
> Subjec
your session_start() has to be the first thing in the page. no blank lines
etc.
like
right at the top of your page. a blank line will send header info ...
Steve
> -Original Message-
> From: Brad Wright [mailto:[EMAIL PROTECTED]]
> Sent: 05 July 2001 16:21
> To: [EMA
ctions - fopen, fwrite, fclose will be of
particular interest:
http://www.php.net/manual/en/ref.filesystem.php
>thanks,
>
>rory
>
>providing the finest in midget technology
>
--
+-- Factoid: Of the 100 largest economies in the world, 51 are --+
| Stev
n table owners the field teamname will be blank.
Assuming all of the data is in both tables it's not a problem, but believe
me at some point when doing database programming this issue will arise.
SELECT teampages.ownerID, teampages.last_update, owners.teamname
FROM teampages
LEFT JOIN owners
many thanks.
i settled for fgetc and checking for a NULL (ascii 0)
Steve
> -Original Message-
> From: David George [mailto:[EMAIL PROTECTED]]
> Sent: 05 July 2001 21:50
> To: Justin Farnsworth
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] Socket Madness
>
&
string stripslashes (string str)
Returns a string with backslashes stripped off. (\' becomes ' and so on.)
Double backslashes are made into a single backslash.
Steve
> -Original Message-
> From: Andy [mailto:[EMAIL PROTECTED]]
> Sent: 06 July 2001 10:29
>
"John Monfort" <[EMAIL PROTECTED]> wrote:
> I'm trying to determine if an argument is alphanumeric. Is there a
> function to do this?
There may be in the CVS version (would have to check), but there's not in
4.0.6. eregi( [[:alnum:]]{1,}, $string ) may do the
s with spaces or newlines, the output
_should_ all be on one line, since HTML considers ALL strings of
whitespace (tabs, newlines, returns, spaces) to be a single space. If
you replaced 's with newlines and you are getting the line breaks
still, your output may be in a ... block.
- steve
lso note that foreach operates on a copy of the specified
array, not the array itself, therefore the array pointer is not
modified as with the each() construct and changes to the array
element returned are not reflected in the original array.
- steve
>John Meyer
>[EMAIL PROT
a number of different email
addresses on different hosts and all reported "Command Unimplemented".
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additi
901 - 1000 of 1688 matches
Mail list logo