nothing, execpt, think there would be about 0.1 time difference... :D I
use $var = $blah."bleh'.$foo because syntax highlighting looks better :D
- James "ReDucTor" Mitchelll
- Original Message -
From: "nafiseh saberi" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, August 1
"Nafiseh Saberi" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> hi.
> what is the difference between $var and '$var' ?/
> thanks.
'$var' has little marks like this --> ' <--- around it
call it a "border" useful when adding such item to a sql query or pri
In what context?
print $var; // prints the value of $var
print "$var"; // prints the value of $var
print '$var'; // prints $var
/* Chris Lambert, CTO - [EMAIL PROTECTED]
WhiteCrown Networks - More Than White Hats
Web Application Security - www.whitecrown.net
*/
- Original Message -
Fro
"Nafiseh Saberi" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> hi.
>
> what is cookie??
>
> thanks much.
what the... oh its you again.
I am too tired to give you the complete setup. Here is the short term
explanation. Read the links below for more info.
"Nafiseh Saberi" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> hi.
> do we have function like "exit" in php??
> for exit from program.
>
>
> best regards.
For the love of.
1) yes. its called "exit" you can also use "die"
2) the simplest of searches o
hi.
what is cookie??
thanks much.
--
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]
* Ralph Guzman wrote:
> IN the book "Web Application Development with PHP 4.0" There is an entire
> chapter towards the end of the book that describes such case studies.
I know them but I don't search case studies.
--
Die Marktumfrage zu PHP Schulungen, Consultingdienstleistungen und
frei verfü
hi.
what is the difference between $var and '$var' ?/
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, e-mail: [EMAIL PROTECTED]
Andrew,
Thanks for your input.
Comments below...
"Andrew Libby" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Emilio,
>
> Few thoughts:
>
> o Is the call syntax you're using for ldap_read() correct? The online
> manual page describes the seco
hi.
do we have function like "exit" in php??
for exit from program.
best regards.
--
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]
Can anybody tell me why this doesn't work in IE? I need to force download
mp3 files instead of IE5.5 trying to apply a helper app. This code works
fine for NN.
// detect for MSIE bug
if (strstr($HTTP_USER_AGENT, "MSIE"))
$attachment = "";
else
$attachment = " attachment;";
btw...this is the code i'm trying
Please keep the laughter to a minimum...ah heck with it...laugh all you
want...its good for ya
Professional Experience:
This field is empty
output for users with a variable other than value1 or value2
This field is empty
output for users wit
Hello,
I don't think the problem you have is not the size of the file.
It seems to depend on the content of that.
(line 1) $a = 'abc%d';
(line 2) printf( "$a" );
will cause too-few-arguments error
because variable $a contains the sequence of '%','d', which should be interpreted as
formatting ch
Previously, John Meyer said:
>
> BTW, .inc files can include PHP code that is executed, right?
Any file can contain such code, if the server is configured to interpret
the file as a PHP file, or if another file which is PHP include()'s the
file in question. The ".inc" extension just happens to b
> echo "$test[1]->variable";
Get rid of the quotes, they are useless and just confuse the parser.
-Rasmus
--
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:
I've written a ShuffleCards function that will actually shuffle a deck of
cards just like would happen in real life (divide the deck in half and stick
them into each other with 1-3 cards between each other card)
function ShuffleCards(&$cardsArray, $times)
{
// Randomizes where to split
I can't seem to figure out the correct syntax of acessing an array of
objects with creating a temp. variable... Is there a workaround for not
creating it, or do I just need to deal with using $tempvar = $test[1];
$tempvar->variable?
here is an example of code
// Start Code Snipet:
for ($i = 0;$i
-Original Message-
From: Glyndower [mailto:[EMAIL PROTECTED]]
Sent: Sunday, August 19, 2001 12:12 AM
Cc: [EMAIL PROTECTED]
Subject:
Ok, here we go
I'm new to PHP and also to MySql, but i'm making a pretty good go so far.
Until now, lol
I have a mysql database with several optiona
> We have just (in the last month or so) leased a cobalt raq all for our own
> use. Great. However, the sites using this box are setup and maintained
> using a web interface that comes as default with the box. when setting up
> sites (subs or otherwise), it adds sites (and you have to specify u
You should be able to configure Apache to force the www. to appear, no
matter what they type, or to keep using what they typed, if you didn't use
any full URLs.
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like Music? Buy a CD: http:/
> How would I go about installing cURL for PHP on windows box?
Start searching for a file named curlphp.dll or similar.
First your PHP install, then http://php4win.de if it's back up, then
http://php.net then, like Google or http://dogpile.com or whatever.
If all of that fails, then probably n
> I'm trying to get a "working..." informational dialog or window going
> with my PHP page but I'm not getting anywhere. Here's the situation:
>
> When the user clicks on a link that has to gunzip a very large file, I
> want a popup to say "Working..." while the file is uncompressing.
> Then, whe
> $max_row = 5;
> if ($op == "next") {
> $low = $low + $max_row;
> $high = $low + $max_row;
Either this...
> $result = mysql_query("SELECT * FROM TABLENAME where Post='yes' LIMIT
$low, $high");
> while($row = mysql_fetch_row($result)) {
> echo "$row[1] writes:\n";
> echo " $ro
> Does Apache with static compiled PHP not work on Solaris 8?
> Since the pages behave really crazy, we think it has something to do
> with our PHP.
> Does someone have a similar installation - which versions?
> Or any help?
Ding!
This just set off a ringer in my head. :-)
Go back to your /usr/
I *THINK* somebody worked out the Samba stuff...
Search the archives. http://php.net/support.php
Also ask on [EMAIL PROTECTED] for the Samba.
There's a Mac list for PHP, and they might have some ideas on the AppleTalk
stuff.
http://www.dynapolis.com (It's called "AMP" or "Apache/MySQL/PHP")
Try these:
http://www.php.net/manual/en/ref.recode.php
http://php.net/manual/en/function.convert-cyr-string.php
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time:
> Can php and perl code reside in the same file? When the document is served
> up it parses the PHP and then the Perl?
No.
Apache does not allow "stacked handlers".
Actually, Apache 2.0 was to offer this feature, IIRC. Dunno if it made it
through the process though... http://apache.org
--
WAR
> $pav='nustatymai.php';
> if ( $nustatymaslangas == 1 ) {
> setcookie("nustlangas", 1, time()+3600*24*30);
> } else {
> setcookie("nustlangas", 0, time()+3600*24*30);
> }
> if ( $nustatymaspas
Warning to all: I usually ignore a thread once I threw in my 2 cents...
Emailing me off-list to continue is always kosher though. :-)
Emailing me off-list with a whole new question is silly, but I try to
respond... No promises to continue that practice.
> on response to a question about variab
> I'm trying to integrate an Internet Telephony service for a client. I have
a
> number of variables I need to dump into the clients database and then to
> pass to the Internet Telephony service via a Perl script they have
provided
> for me that will reside on the client's server. Can I somehow pa
> I've got some strange problems whilst passing variables from forms into my
> php-script. When I use IE5 it works like a charm. Using Opera or IE4* the
> referred "action" script crashes due to memory restrictions on the server,
> in a function I use to get all the dates between two given dates,
>not show after the user press the reload button. Is there a way that the
page reaload >automatically the data from the database without the user
pressing the reload button? Thanks
Not really -- You can send no-cache and expiration headers, so they'll
*HAVE* to reload to see anything at all, but
> just found this article and the author recommends the following for secure
php
> scripting. what do the expects think?
This article has been discussed in excruciating detail on
[EMAIL PROTECTED] and the expert's opinions are archived...
http://php.net/support.php should lead you to this archi
> Is there is a way with PHP (most probably headers) to go HTTPS mode?
> I don't want to specify https://www.myserver.com/secured_page.php
> I just want it normal but in it's header to tell the browser to initiate
an
> HTTPS mode.
I don't think you can do that...
You could send a header to do:
> The command "mysql_db_name" is not working in our installation.
> We get no error, but no database listing either if we use this command.
> -
> // This is the code which does NOT work:
> $dbs = mysql_list_dbs();
... or die(mysql_error());
> $num_dbs = mysql_numrows($dbs);
> for($i=0; $i<$n
> SHORT: how can I erase the content of a page currently displayed in
client's
> browser? Or other solutions (see LONG)
I don't understand big chunks of this question...
You can't erase what they have.
You can set no-cache and expiration headers.
See http://php.net/header
--
WARNING [EMAIL PR
> 1) Within Apache's httpd.conf file I have the following set:
> DocumentRoot "D:/Program Files/Apache Group/Apache/realdocs"
>
> RedirectMatch permanent ^/$ "P:/Main Projects/Test/index.php"
> ScriptAlias /php/ "d:/php/"
> AddType application/x-httpd-php .php .phtml
> Action application/x-httpd-
You may be able to use http://php.net/exec
Alas, I'm not sure it works under Windows anymore... Or maybe only
thread-safe versions of Windows. Or maybe...
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like Music? Buy a CD: http://l-
> Could I expire a cookie on a determinate date?? I mean tell the cookie
> that will expire on 17/08/2001...
Unless I'm missing something, that's trivial using:
http://php.net/manual/en/function.setcookie.php
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
> If my document root is something like /home/myname/dir/ (as per
phpinfo()),
> and I put my include files in /home/myname/includes/, is that actually
> outside of the document root, or is anything under /home/myname/ actually
> the document root?
Yes, that's outside.
If phpinfo() says:
/home/my
> I've been playing around a little with php/mysql/apache on my NT box but I
> have just set up one of my Macs as a LinuxPPC machine. I have downloaded
> PHP-4.0.6 but now I want to install it to work with the apache server
> software already installed.
>
> I'm a complete newbie as far as linux is
> database ... the script seems to be working, in that its not giving errors
You're not asking it to give you error messages :-)
>
> if ($submit) {
>
> MYSQL_CONNECT("localhost","user","pass");
... or die("Could not connect to database")
> mysql_select_db("binary_date");
... or die
At 08:26 PM 8/18/01 -0700, Rasmus Lerdorf wrote:
>
> Order allow,deny
> Deny from all
BTW, .inc files can include PHP code that is executed, right?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTE
Order allow,deny
Deny from all
On Mon, 14 Aug 2000, Sid wrote:
> Hi,
>
> I have a php script which includes .inc files. Is there any way in which I
> can prevent a normal surferfrom viewing these files. Is there any command
> that I can add to a .htaccess file.
>
> Thanks
>
> ~~~
Try this -- shorter. I only tested it out in Win(32)though
At 03:00 PM 8/8/01 +0200, you wrote:
>[EMAIL PROTECTED] (Eduardo Kokubo) wrote:
>
> > I think I saw a code to list the files, subdirectories and the files
> > in the subdirectories of a simple directory in this list some time
> > ago,
Hi,
I have a php script which includes .inc files. Is there any way in which I
can prevent a normal surferfrom viewing these files. Is there any command
that I can add to a .htaccess file.
Thanks
~~~ \\__
! SIDDHARTH HEGDE
I'd take the results of file() and then
walk through the array looking for the lines for the
various fruit you're concerned with. Then I'd grab the next
two lines and process them, with something like:
$line = ".46";
ereg('^([^<]+)',$line,$m);
echo $m[1] . "\n";
echo $m[2] . "\n";
IMHO, it's
I'm reading a book and have a little confusion in my mind.
Consider the following table. Assume that I grabbed it from another web site
using:
http://www.abc123xyz.com';
$lines_array = file($url);
$lines_string = implode('', $lines_array);
?>
===
banana
.46
Seb,
Seomthing like
Well you need to search for "@"
>
> then search forwards and backwards till you get to whitespaces
>
> store those positions
>
> then use the substr function.
>
> - seb
>
> -Original Message-
> From: Gaylen Fraley [mailto:[EMAIL PROTECTED]]
> Sent: 19 August 200
Well you need to search for "@"
then search forwards and backwards till you get to whitespaces
store those positions
then use the substr function.
- seb
-Original Message-
From: Gaylen Fraley [mailto:[EMAIL PROTECTED]]
Sent: 19 August 2001 03:37
To: [EMAIL PROTECTED]
Subject: [PHP] Ex
I need to parse a string and extract only the email address. What is the
best way to do this?
i.e.
$string = "Please send all email to [EMAIL PROTECTED] with a subject
line of Test.";
$email_addr would be equal to [EMAIL PROTECTED] .
Thanks.
--
PHP General Mailing List (http://www.php.ne
I always split it up if I'm having errors...
echo "";
echo $row["description"];
- seb
- Original Message -
From: "Chris Schneck" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, August 18, 2001 7:29 PM
Subject: Fw: [PHP] Display Image
> echo "" . $row["description"] . "
>
Joe,
There are varying opinions on this issue. The argument for
methods is that it hides the internal structure of your class. This
is always a good thing. This means that the internals of the class
can be changed, but the user interface (the user is the programmer here)
does not change.
Thanks for your reply.
This is the whole line and I am not sure which one to take out
echo "" . $row["description"] . "";
Andonny
Seb Frost <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> well you've got that unmatched " at the end...
>
> - seb
>
> -Origin
echo "" . $row["description"] . "";
- Original Message -
From: "Chris Schneck" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, August 18, 2001 7:29 PM
Subject: Fw: [PHP] Display Image
> echo "" . $row["description"] . "
>
>
> - Original Message -
> From: "Andonny" <
Hey guys,
anyone know what
Fatal error: input in flex scanner failed in /home/k/kyle/public_html on line
means?
thanks
echo "" . $row["description"] . "
- Original Message -
From: "Andonny" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, August 18, 2001 7:27 PM
Subject: [PHP] Display Image
> Hi,
> I tried below to display the picture on the webpage. I have in the pcture
> column a http add
well you've got that unmatched " at the end...
- seb
-Original Message-
From: Andonny [mailto:[EMAIL PROTECTED]]
Sent: 19 August 2001 03:28
To: [EMAIL PROTECTED]
Subject: [PHP] Display Image
Hi,
I tried below to display the picture on the webpage. I have in the pcture
column a http add
Hi,
I tried below to display the picture on the webpage. I have in the pcture
column a http address.
echo "" . $row["description"] . "
and I get this:
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or
`T_NUM_STRING'
Your help is very much appreciated.
Andonny
--
PHP General
Dave,
IMHO, a major consideration for Web apps is contention and s
synchronization. If you intend to allow users to update
data on in the app it becomes important to coordinate writes
(with locking) so that no two users can write to the same (region)
of the file at the same time. An RDBMS (
Emilio,
Few thoughts:
o Is the call syntax you're using for ldap_read() correct? The online
manual page describes the second parameter as being the base dn,
you're passing the user's username. ( getenv("REMOTE_USER")). I'm
surprised that this code works.
I've been doing some reading up on OOP in PHP, and looking at some of the
classes available on the web, and I've got what is probably a stupid
question. I've seen this many many times..
class someclass {
var $somevar = "someval";
function set( $key, $val ) {
$thi
Hola amigos necesito ayuda para hacer funcionar PHP en mi maquina
Utilizo Windows 98SE y PWS y no me reconoce las paginas PHP cuando le doy
que ejecute el browser me sale el siguiente error
Error 403 de HTTP
403.1 Prohibido: prohibido el acceso de ejecución
Este error puede producirse si intent
currently only offer full php, postgres, mysql, et al access with virtual server
accounts (chrootd hacks, or jailed environments) these are cumbersome though.
Anyone have input regarding the potential security concerns with allowing users
(right now only chrooted ftp users with no permissions) t
Hello all,
I have just recently found out that there is a bug in the function
ImageTTFText regarding the font name. Apparently no matter what you enter,
the font is unable to be loaded regardless if you put an absolute path or
not to the filename. I read some where that it was fixed in the CSV.
Sorry Emilio, this should have gone to Dave.
- Original Message -
From: Hugh Danaher <[EMAIL PROTECTED]>
To: Emilio Panighetti <[EMAIL PROTECTED]>
Cc: Php-General <[EMAIL PROTECTED]>
Sent: Saturday, August 18, 2001 5:16 PM
Subject: Re: [PHP] Re: MySql or flat database using PHP ?
> Dear
Dear Emilio,
For about 20 years, I've wanted to develop a mineral identification program.
I bought a PHP tutorial book on June 25th, and had the site running by July
14th. if you're planning something similar to
http://www.ironorchid.com/minerals/ , then php with mysql is the way to go.
Oh, and b
Dave,
Unless there is a strong reason for using files (like for example it
interfaces with a different app which uses files) then the case for a proper
RDBMS (eg MySQL) is the better choice.
Databases are much easier (/quicker) to add and delete records from, search
etc
HTH,
Tom
- Original
IN the book "Web Application Development with PHP 4.0" There is an entire
chapter towards the end of the book that describes such case studies.
Hope this helps.
-Original Message-
From: Björn Schotte [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 17, 2001 11:36 PM
To: [EMAIL PROTECTED]
I have OpenLDAP and PHP 4.0.4p1 on a RedHat 7.1 (plain distribution, didn't
recompile anything, and I use MOD_LDAP to authenticate users to an intranet
site. I want PHP pages to show the real username so I have this function I
call when I want to know the username.
the mod_ldap queries and ldap q
It depends... if you have a handful of records, you might start with a flat
file. but if you think you'll get to hundreds of records, go with a
database.
Even if all you want is a small array of data, go with a database.
If all you want is a simple array, you might consider use DBM files (Look
at
Before I start creating an Sql table/database, thought I would ask for advice first.
I am creating a directory online, with urls information, links, email addresses etc
etc. What do you think is best a MySql database or writing it to a file using
fopen/fwrite (flat file) ??? Your thoughts wou
Are you using NuSphere's version of PHPEd, or the old free one? So far, the
best Windows IDE I've used has been NuSphere's upgraded PHPEd. Zend's 2.0
IDE also looks promising, though.
/* Chris Lambert, CTO - [EMAIL PROTECTED]
WhiteCrown Networks - More Than White Hats
Web Application Security - w
Can anyone suggest a decent IDE for php? Currently, I'm using phped and I'm
not overly happy with it's performance...
Max
--
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 administr
Well, might not be the good answer, since it's been a long time I haven't
used mysql. But, does mysql is case sensitive on table names ? try using
albums instead of ALBUMS in your update query.
Just my .002 cents
Florian
Le Samedi, 18 Août 2001 18.21, vous avez écrit :
> I'm working under the g
Le Samedi, 18 Août 2001 16.45, Martín Marqués a écrit :
> Which locale are you using (I think this has nothing to do with the
> problem, but who knows).
fr_CH iso-8859-1
> I just checked a database which is been loaded with phpPgAdmin 2.3 and I
> got the acents OK.
I did further testing :
- I
php-general Digest 18 Aug 2001 16:31:47 - Issue 823
Topics (messages 63266 through 63288):
question from a php newbie
63266 by: 602e23
63269 by: Maxim Maletsky
Re: looong date formatting for MySQL
63267 by: Maxim Maletsky
Re: debugger_on() undefined?
63268
I hear this is achievable via php. My GD information is:
GD Support enabled
GD Version 1.6.2 or higher
FreeType Support enabled
FreeType Linkage with TTF library
GIF Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
So could someone show me an example of how to overla
anyone got any inside info on waht this error means?
I changed one line of code.. and caboom..
- Peter
On Sáb 18 Ago 2001 10:19, Florian Blaser wrote:
> Hi everybody !
>
> I've got a quite confusing problem :
>
> Yesterday, I upgraded my postgresql server from 7.0.3 to 7.1. I did some
> pg_dumps and created the DBS on the new server. Everything went fine.
>
> But now, I've got some problems : When
[I already sent this message to the php-db mailing list, but since it seems
to be a low-traffic list, I thought I'd also send it to this list, thanks a
lot for your answers :-)]
Hi everybody !
I've got a quite confusing problem :
Yesterday, I upgraded my postgresql server from 7.0.3 to 7.1. I
cgi is not actually a programming langauage, but is a way of accessing
programs through a webserver. php can be run as a 'cgi' if you like.
i think what you mean is, has anyone seen a 'perl' to 'php' converter. perl
is one of the most common languages used through cgi, and many of the
scripts you
I come from asp world, too, but I wouldn't say php is quicker to develop.
Sometimes it can take longer.
But it's really worth it.
-Message d'origine-
De : pierre-yves [mailto:[EMAIL PROTECTED]]
Envoyé : samedi 18 août 2001 14:45
À : [EMAIL PROTECTED]
Objet : Re: [PHP] FW: Large sites usi
Dear PHP fans,
Knowing large sites that use php is one thing (it shows the language can
support
heavy loads). But what I would really like to know is the time difference to
design,
code and implement web application in PHP versus java solution, or
ColdFusion,
or another language.
I switch to PHP
Has anyone ever come across a cgi 2 php program at all, similar to the
asp2php program ?
or has anyone got a quick and easy tutorial for me to read through on what
needs converting to what , language 2 language .
Steven
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail:
Hello,
it is quite simple, php is a programming language.
CGI is an interface that execute programming language, usually Perl, but can
be C, C++...
py
- Original Message -
From: "nafiseh saberi" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, August 18, 2001 4:46 AM
Subject:
hi.
php good for design web server because ,it
use the best function of java,perl,html,...in itself.
but I dont know about difference between cgi and php??
love your enemies,because they cause to work harder.
nafiseh.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail:
OK, I want to count the number of unique elements in
an array, then print the total. However, both methods
I've tried return "1"; the man pages explain that the
count() function will return 1 if the var is set but
not an array. But if you look at the 2nd method esp.,
I've set an if-else !is_set(
88 matches
Mail list logo