Hello,
Is it impolite to ask about when approximately PHP will support Exception
handling ? :)
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: [
Ok, but I thought the start and end chars
were ^ $
i.e., ^is$
or is this not what you mean by bounderies?
-confused... ;-)
> -Original Message-
> From: Robin Vickery [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 15, 2001 11:06 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP]
on 2/15/01 12:01 PM, Mukul Sabharwal at [EMAIL PROTECTED] wrote:
>
> $remainder = 10 % 5;
>
> --- Randall Perry <[EMAIL PROTECTED]> wrote: > Couldn't
> find one in the manual under arithmetic
Thanks
--
Randy Perry
sysTame
Mac Consulting/Sales
--
PHP General Mailing List (http://www.php.
Try this :
a [2] => c
$bar = array('a','b','c');
$piece = array_splice ($bar, 1 ,1);
print_r($piece); // [0] => b
print_r($bar);// [0] => a [1] => c
?>
http://www.php.net/manual/en/function.array-slice.php
http://www.php.net/manual/en/function.unset.ph
Hello,
Anybody here would know, how I could inverse the date sorting or ordering?
This script below gives me for example:
2001-01-01
2001-01-15
2001-01-31
and so on...
when I wish it would gives me:
2001-01-31
2001-01-15
2001-01-01
and so on...
-
$ro
thies Thu Feb 15 08:56:49 2001 EDT
Modified files:
/CVSROOTcvsusers
Log:
by request
Index: CVSROOT/cvsusers
diff -u CVSROOT/cvsusers:1.214 CVSROOT/cvsusers:1.215
--- CVSROOT/cvsusers:1.214 Mon Feb 12 04:05:12 2001
+++ CVSROOT/cvsusersThu Feb 1
add a DESC to your order by clause... fairly simple SQL syntax, could be
picked up from a myriad of SQL references and manuals
$sql = "select * from table_name WHERE TO_DAYS(NOW()) - TO_DAYS(date) <= 21
order by date DESC";
At 12:14 PM 2/15/01 -0500, Malouin Design Graphique wrote:
>Hello,
>
I am new to php and I am wondering if it is possible to use a javascript
variable in a php statement for example:
// create sql statement
$sql = "select * from main where businesstype = "consultancy" and
top.upper.villagename = != "0";";
Is it possible to make this work if "top.
Hi!
I read the instruction and am not sure on whether to proceed or not.
The instruction mentioned that you install/compile the FreeTDS first then
compile PHP 2nd. So, does this mean I have to compile Apache as well?
Thanks,
Scott
--
PHP General Mailing List (http://www.php.net/)
To un
I have 2 functions on my page, RegisterUser, IsValidUser.
RegisterUser looks in the querystring to see if you've passed a certain key
& value. If you have it populates a session variable called "ValidUser"
with a 1.
All that IsValidUser does, is check to see if the session variable
"ValidUser" i
Just as simple as that?!
Thank you guys: Fang; Andrew and Joe.
Much appreciated.
Hope to be able to give a hand myself someday to newbies like me ;-)
Won't have to ask this question again. Promessed!
Mes salutations,
Yves
At 12:26 -0500 15/02/2001, Fang Li wrote:
>add DESC after order by 'da
> "VB" == "Brian V Bonini" <[EMAIL PROTECTED]> writes:
> Ok, but I thought the start and end chars were ^ $ i.e., ^is$ or is
> this not what you mean by bounderies?
No, not really. \b matches the start or end of a word. You can see it
clearly if you do this:
print preg_replace( '/\b/'
Ok,
But can't the array still be refered to with a number?
So in myarray["something"] is the 50th element in the array, wouldn't:
myarray[49] = myarray["something"]
?
> On Thursday 15 February 2001 01:40, Chris wrote:
>
> > How do I get the index,number of an array if reffering to an array
Gerry,
could you give us a bit more code, esp. the while or for loop that
surrounds the code you have quoted?
Cheers,
Ben
Gerry wrote:
>
> Hello everyone:
>
> I'm trying to build a table with the last row being a check function for
> an image, where it checks if the item image exists in the
Our company, IBC, hosts websites. We currently have PHP4 and MySQL 3.23 on all our
servers. I would suggest contacting Charone at [EMAIL PROTECTED] or call us at
(937)277-2000. The prices on our website aren't very accurate. Often our prices are
much
cheaper than what you will find there. A
Hello,
I have the array $array[x][y];
if I want to know the x I use count($array);
Now, How can I count the y??
Thank you.
Fabian Fabela
[EMAIL PROTECTED]
www.vacagorda.com
> Hello,
>
> I have the array $array[x][y];
>
> if I want to know the x I use count($array);
>
> Now, How can I count the y??
for($x = 0; $x <= count($array); $x++) {
echo "Number of elements at $x: " . count($array[$x]) . "";
}
Thats assumeing that y is an array...
- James
--
PHP Gener
Hi,
Well it depends, on which elements /2nd/ dimension you
wanna see!
here's some code:
$myarr[0][0] = "sdkjsjks";
$myarr[1][0] = "dsjkdkjsd";
$myarr[1][1] = "hsjdsh";
$myarr[1][2] = "dsjkdsjkdkjsdkjs";
echo sizeof($myarr); // would print 2, element 0 and
1.
echo sizeof($myarr[0]); would print
Hi!
Can u point me to an excellent php/mysql provider ?
with whom i can communicate by distance !
Thanks
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
--
PHP General Mailing List (http://www.
Try this :
$a: ' . sizeof($a);// 2
print ' $a[0] : ' . sizeof($a[0]); // 3
print ' $a[1] : ' . sizeof($a[1]); // 1
?>
Regards,
Philip Olson
http://www.cornado.com/
On Thu, 15 Feb 2001, Fabian Fabela wrote:
> Hello,
>
> I have the array $array[x][y];
>
> if I want to know
El Jue 15 Feb 2001 12:32, escribiste:
> I was reading through the documentation on sessions at
> http://www.php.net/manual/en/html/ref.session.html
>
> I have a few questions..
>
> 1) How do I explicitly close a session, so that any subsequent attempts to
> use pages would require a new session st
Hello--
I'm faced with writing some rather difficult regex's, and would like
to be pointed to a comprehensive list of POSIX regex operators.
I have been unable to find these in the on-line docs, nor the three
PHP books I bought.
I purchased "Mastering Regular Expressions," which is very helpf
Hi,
I have a problem (!). I am using an MS SQL db, which returns a date field.
How can I format this using the date() function? ie how can I convert the
date to a Unix timestamp? I know you can use the mktime() function, but in
which case, how can I get the day/month/year etc from the ms s
Hi Guys,
Just a quick question. If I have a user database, with joe_bloggs as a
user, what would I need to do to make sure that his login details matched
the case sensitivity in a MySQL database? Say if he logged in as
JOE_BLOGGS, could I return an error? I'm guessing this is going to turn
int
reset($HTTP_POST_VARS);
while (list($key, $val) = each($HTTP_POST_VARS)) {
//print "$key - $val";
if (substr($key,0,3) == "alt" or substr($key,0,3) == "exc")
Somebody can explain or indicate any site about this ($HTTP_POST_VARS)?
It is used to do menu in php. If the name of the butt
Notepad, Wordpad and MS Word are my available choices.
Word interpret my PHP so how to inhibit that?
so I can get a line count and get closer to my many newbie errors
..OR..
I need a recommendation of an inexpensive editor.
I am reading digest so please CC or direct mailto:[EMAIL PROTECTED]
Ted Goranson pressed the little lettered thingies in this order...
> Hello--
>
> I'm faced with writing some rather difficult regex's, and would like
> to be pointed to a comprehensive list of POSIX regex operators.
>
> I have been unable to find these in the on-line docs, nor the three
> PHP
On Tue, 23 Jan 2001 13:33:00 +0100, Sander Pilon ([EMAIL PROTECTED])
wrote:
>>
>> >If you want to be totally searchengine-safe, do not use variables
>>on the
>> >url, do not rely on cookies and do not rely on POST variables
>> for the pages
>> >you want to have the searchengine spider.
>>
>> How t
On Thu, 15 Feb 2001 19:41:04 -, James, Yz ([EMAIL PROTECTED])
wrote:
>Hi Guys,
>
>Just a quick question. If I have a user database, with joe_bloggs
>as a
>user, what would I need to do to make sure that his login details
>matched
>the case sensitivity in a MySQL database? Say if he logged in
Hello again:
Ben Peter wrote:
>
> Gerry,
>
> could you give us a bit more code, esp. the while or for loop that
> surrounds the code you have quoted?
>
> Cheers,
> Ben
Sorry for the confusion, and yes I did mispelled camera in english. Here
is more of my sloppy code. I might have an extra }.
> make the login field BINARY.
Thanks! ;)
James.
--
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]
El Jue 15 Feb 2001 13:32, escribiste:
> I am using MySQL 3.22.32 and PHP 4.01PL2, but it seems that
> mysql_db_query($db, $myQuery) is not quite stable, actually, in my code, it
> is like
>
> mysql_db_query($db, $myQuery) or die "Something wrong during query");
>
> 1 out of 15 (the same query), it
Looks like the PHP site is down, parse error on site.inc... just an FYI :)
--
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]
if you want to "securely" remove an element of an array
$objects =
array('first','second','third','fourth','fifth','sixth','seventteen');
function remove_element($array, $left_id, $right_id) // Remove Element
// left_id is element position(counts from 1)
// right_id array position (counts f
php-general Digest 15 Feb 2001 21:10:31 - Issue 514
Topics (messages 39858 through 39980):
Re: Undocumented Socket functions?
39858 by: Rick Hodger
39859 by: Rog
Re: CSETI Announcement - Urgent Disclosure Project Update
39860 by: James Moore
Concatenate a variable.
eschmid Thu Feb 15 12:33:09 2001 EDT
Modified files:
/php4/ext/standard filestat.c
Log:
Small typo.
Index: php4/ext/standard/filestat.c
diff -u php4/ext/standard/filestat.c:1.52 php4/ext/standard/filestat.c:1.53
--- php4/ext/standard/filestat.c:1.52 Sun Jan
I've read that several times... so does that mean now the only debugger
for PHP4 is the Zend one?
--toby
Chris Lee wrote:
>
> You must be viewing old documentation.
>
> http://php.net/manual/en/debugger.php
>
> clearly states that debugger, ie debugger_on() support is in php3 only, not
> in p
> However, there's no necessity to have the cgi version if you already have
> the modular version. All that is needed is to call the appropriate script
> using a tool such as 'wget'. This can be done manually or from cron as
> appropriate.
>
> Billy
No there's not - I think that goes without sa
El Jue 15 Feb 2001 16:41, James, Yz escribió:
>
> Oh, another thing. Anyone know of any tools like PHP MyAdmin for
> PostGresSQL ?
phpPgAdmin?
http://www.greatbridge.org/project/phppgadmin/projdisplay.php
Saludos... ;-)
--
System Administration: It's a dirty job,
but someone told I had to d
> I am new to php and I am wondering if it is possible to use a javascript
> variable in a php statement for example:
>
> // create sql statement
>
> $sql = "select * from main where businesstype = "consultancy" and
> top.upper.villagename = != "0";";
As far as I know, no. Unless
hey guys,
in order to restart my mysql server i'd like to run safe_mysqld from my
php file. i have this:
`./usr/local/mysql/bin/safe_mysqld`
however when we check the list of processes, safe_mysqld isnt there. what am
i doing wrong? btw, we've tried taking out the period (.) and running exec
is there a way I can make a regex to add a comma
to the beginning of every line of a comma delimited
file ?
Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com
--
PHP General Mailing List (http://www.
Is there anything that evaluates PHP code and checks for optimization? Not
like the Zend Optimizer, but one that checks for things such as variables
that were defined but never used, repeated variables, unnecessary
statements or constructs? Basically a code cleaner such as C, C++, Java,
etc
Could anybody interested comment the following statement:
Apache doesn't correctly serve .shtml files if ob_gzhandler is enabled (the
output is distorted then).
Not related, perhaps? This is my experience, though. The newest Apache, the
newest PHP.
Just want to hear something before I file a bu
I have got php 4.0.4p1 configured with openssl 0.9.6
and ldap and I'm trying to get an ldap_connect to work
over ldaps as described in the ldap_connect
documentation.
I have no problem connecting using
ldap_connect(hostname) format but I do have a problem
with the URL format. This is what I am do
Hi!! I was wondering if anyone knows how to pass parameters to PHP.EXE when
invoked from the command line (DOS prompt).
I know this shouldn't differ too much from the Linux version, so anyone who
has scheduled scripts to run using CRON should have an idea, i guess.
In particular, I don't know ho
note that javascript and PHP CANNOT interact natively on the same page...one
is client side and one is server side.
you can pass variables between the two in an HTTP request, however.
page1.php:
function makeSqlQuery(businesstype,village) {
var sqlQuery;
sqlQuery = "SELECT * FROM MAIN
use $argv and $argc just like C/C++ :O)
--Joe
On Thu, Feb 15, 2001 at 03:50:54PM -0600, Diego Fulgueira wrote:
> Hi!! I was wondering if anyone knows how to pass parameters to PHP.EXE when
> invoked from the command line (DOS prompt).
>
> I know this shouldn't differ too much from the Linux ver
Greetings,
Is anyone REALLY familiar with PHP and cookies and/or headers-- I have a
tough nut to crack and it involves three URLs.
Here is the situation, and I really want to avoid using our DB if I can.
I have a main URL that everyone will probably hit - splash page.
www.mainurl.com
>From the
El Jue 15 Feb 2001 17:41, escribiste:
> Looks like the PHP site is down, parse error on site.inc... just an FYI :)
Ohhh, I'd love to get me hands on some of the code these great guys do. :-)
Saludos... :-)
--
System Administration: It's a dirty job,
but someone told I had to do it.
--
I'm trying to add PHP's MS SQL functionality to my Windows NT server.
My problem appears to be the extension_dir entry in the PHP.ini. I've
tried every conceivable way to enter it (the files are actually in
C:\PHP\extensions), using absolute and relative paths, forward slashes,
backslashes, and
echo "\n\n";
Reformat as you want, I just didn't want to write multiple "echo" lines. =P
Or..
-Szii
- Original Message -
From: Paulo Jan <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 15, 2001 4:05 AM
Subject: [PHP] Generate XML files
> Hi all:
>
> A ques
Ok. I already posted a question asking how to pass parameters to php.exe
when running it directly from the command prompt. However, i've noticed the
matter is a bit more complex than i had thought. I will reformulate my
question:
How the h--- does any Web Server passes information like the URL be
Yeah - like I said
php foo.php -url http://www.mydomain.com/myfile.php
in foo.php
echo $argc;// should be 3
echo $argv[0]; // will be the filename
echo $argv[1]; // will be -url
echo $argv[2]; // will be the url
--Joe
On Thu, Feb 15, 2001 at 04:47:48PM -0600, Diego Fulgueira wrote:
It is sent as text to stdin.
-Original Message-
From: Diego Fulgueira [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 15, 2001 4:45 PM
To: Php-General
Subject: [PHP] Passing variables to a scripting engine... (like php)
Ok. I already posted a question asking how to pass parameters t
This is an issue with user permissions. You *could* create a world
executable suid script that did executed the command. PHP would then call
that. This is dangerous though, and I'd avoid it.
-Original Message-
From: Student Center [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 15,
RE: [PHP-WIN] Bug in mktime-function ?This is the output I get running 4.0.4pl1 or
3.0.17 on Win98/Apache
Using 3/9/1935
Unix timestamp for this date is -1
Warning: unexpected error in date() in c:\inetpub\wwwdev\staffroot\myscu\date.php on
line 13
Reconverting...
What platform r u
Thanks all,
This gives me a good start, I think I will just get cron to do it at a certain time of
day, the only problem is trying to tell which sessions have expired as the database is
not going to know this.
Regards
Joseph
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
Definately a bit frightening that a virtually static site has an include
that is over 300 lines long :) Maybe just well documented?
-jm
-Original Message-
From: Martin A. Marques [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 15, 2001 12:40 PM
To: [EMAIL PROTECTED]
Subject: Re: [PH
> > Looks like the PHP site is down, parse error on site.inc... just an FYI :)
>
> Ohhh, I'd love to get me hands on some of the code these great guys do. :-)
You can, for example (re: above) see :
http://php.net/source.php?page_url=/include/site.inc
It's *all* public and available, see :
...But a scripting engine can process A LOT of information (think about how
much information can be sent with a HTML form in posted variables). Apache
and IIS do not call PHP.EXE sending all posted variables inside command line
arguments... So, how do THEY do it???
Thanks a lot for the patience..
(Note, this is a long email..sorry, lots of code)
Ok, I'm baffled. I'm building a DB abstration class and I've run into
something very strang when creating the Oracle abstraction file.
If I use the following code all works well:
$conn = OCINLogon("user", "password", "SDB");
$stmt = OCIParse("SE
I have a music database for my wife. She's on a client computer
and I have Apache, MySQL, PHP and her database on my computer,
the server. I always have Apache running but not MySQL. Can I
have a PHP script that would run MySQL using COM? I haven't
looked into COM yet so any resources would be gr
Ive done this, our secure server is on a differnt IP/domain name, of course
I still need cookies though.
All I have todo to set the SessionID ona different domainname is pass the
PHPSESSID in the url to the new host, and voila I have access to the same
SessionID and other session vars. give it
On Fri, Feb 16, 2001 at 12:04:01AM +, Steven Hirschorn wrote:
> I've checked this in the PHP documentation and done a scan of the
> archive to try to work out where I am going wrong but have failed. I
> know I could fix this problem by using substrings and processing them,
> but PHP has a
could accually be a browser issue. I know you can not compress an image and
send it accross, even with the proper headers, no broswer seems to
decompress it. try running a sniffer on the connection, make sure the proper
headers are being sent, cut and paste the sniffers output, see if you can
deco
I've checked this in the PHP documentation and done a scan of the
archive to try to work out where I am going wrong but have failed. I
know I could fix this problem by using substrings and processing them,
but PHP has a simpler function which should work. Shouldn't it?
In my database a record
this is the best I got so far, for treating any sql syntax errors as normal
ERROrs and halting the parsing to report it.
like:
SQL Syntax Error:
'$query'\n";
$msg.="[".mysql_errno()."]"
".mysql_error()."at $errline";
die($msg);
}
?>
anyone has a 'less
On Fri, 16 Feb 2001 at 01:08:58, [EMAIL PROTECTED] writes
>You haven't read the PHP Manual carefully:
>
>http://php.net/mktime
>http://php.net/date
Thanks for the speedy reply! I've tried using:
date("l, jS F Y",$lastmodified)
with the same effect - 20010213173654 becomes
Monday, 18th January 20
Prior to PHP 4.04 there were two dll's(php_mssql65.dll, and php_mssql7.dll I
believe), but as of 4.04 there is only one which is php_mssql.dll. If you
are using 4.04 then I assume thats your problem. Otherwise I would suspect
you are trying to set the path where the extension declarations are ra
On Fri, 16 Feb 2001 06:15, Info wrote:
> Notepad, Wordpad and MS Word are my available choices.
>
> Word interpret my PHP so how to inhibit that?
>
> so I can get a line count and get closer to my many newbie errors
> ..OR..
> I need a recommendation of an inexpensive editor.
>
> I am reading dige
On Fri, Feb 16, 2001 at 12:32:47AM +, Steven Hirschorn wrote:
> On Fri, 16 Feb 2001 at 01:08:58, [EMAIL PROTECTED] writes
> >You haven't read the PHP Manual carefully:
> >
> >http://php.net/mktime
> >http://php.net/date
>
> Thanks for the speedy reply! I've tried using:
> date("l, jS F Y",$la
> This comes up so often it ought to be a FAQ - if you look on the links
> page of your favourite mirror or www.php.net/links.php you'll find a link
> called Editor List to a page with info about lots of editors for all
> sorts of OSes.
>
> --
> David Robley| WEBMASTER
Hi,
You can also try Manuel Lemos's form class, which can handle all this and
many more. Check:
http://phpclasses.upperdesign.com/browse.html/package/1
>From the class description:
Class that generates HTML forms supporting:
- XHTML compliant output.
- Keyboard navigation support:
* Attachmen
hey,
I have a strange problem, when a user inputs the quantity into a text input field in a
cart, I want to be able to test to see if the value is a integer if it isn't then
default it to 1
if ( !is_int($Qty) ) {
$Qty = 1;
}
Looks ok, should work in theory, but it doesn't if I use this test,
> I have a strange problem, when a user inputs the quantity
> into a text input field in a cart, I want to be able to test
> to see if the value is a integer if it isn't then default it to 1
>
> if ( !is_int($Qty) ) {
> $Qty = 1;
> }
Off the top of my head (and thus probably hideously wrong),
> I've read through the archives and still must be missing something. I
> need to execute a cgi script from php. This seems fairly trivial, but I
> can't get it to work.
>
> the cgi script is clean -- executes from the command line without issue
> and is 755
> from php the follwing is used:
>
>
>
> Having written loads of stuff in PHP, I find myself having for the first
> time to generate binary data in memory - I actually need to build a native
> file for a drawing program in memory. The data consists mainly of lists of
> 32bit little endian integers - some signed and some unsigned. I've
> coke machine
> vending machine
> atm
> dinner
> public phone
You probably have an "asset_id" field on each of those.
> and someone is inserting a gas station there... and it has two dinners and
> 3 public phones, so he would check the checkboxes referring to these and
> add a little comment to
>Hello. I'll keep short. Does any of you guys out there know why
"imagecreatefromjpeg" >cannot open remote files ? I have php-4.0.4pl1-Win32
with default gd lib. All other gd-things >work fine, and I DO have the
access rights to the file.
>
>"thank you for your cooperation" :)
It probably
> I'm making a script that generates test sites usíng dummy data stored in
one
> MySql database ("uwebsitebase")
>
> Now, using php-scripting, I'm copying these data to a demo-database
> ("uwebdemo"). The structure is the same - the same tables with the same
> fields. Only difference will be that
> ./configure' '--with-apache=/root/Apachetoolbox/apache_1.3.17'
> '--enable-gd-imgstrttf' '--with-mysql' '--with-mysql' '--with-pgsql'
> '--with-ldap'
Check your config.log files to see if you are using PHP's builtin MySQL
support, or if it found your MySQL installation.
If it is using the buil
> but when I run make... it says that there is nothing to do
Do a make clean, and rm config.cache and try again.
make clean tells it to start over, and recompile all that stuff it thinks it
already compiled right the first time...
--
Visit the Zend Store at http://www.zend.com/store/
Wanna help
> how can I reference a result set by array index numbers???
> id_field field
> |
> 1 first
> 1 second
> 1 third
> 2 fourth
> 2 fifth
>
> how can I do something like this:
>
> $array=mysql_db_query($database, $sql, $link_id);
>
>
> I would like make some componnent on linux wich I can use on php. Like I
> create a COM object on Windows and use it with a asp pages and reuse it in
a
> vb application without code duplicate, I would like install PHP on a
> linux and not on a Windows.
Things you need to search for and read
> Fatal error: input in flex scanner failed in /var/www/html/gcdb/lang on
> line 1
> require("lang/".$config_row["Language"]);
Try changing your 'require' to 'include'.
I'm not real clear on the details, but if you are trying to suck in a
variable-based filename, you might as well use '
> I'm not sure how off-topic this may be, but I'll carry on anyway...
'Sokay, I'll force it back on-topic :-)
> sent back to the page. Before now, I have cookies and IP address for user
> tracking. If someone could accept a cookie (I used a self-referring script
to
Use PHP4's builtin session su
> is there anything we should be aware of
> if we like that our php/mysql pages
> are working with an ssl-server ?
Nothing especially related to PHP, really, except what you would do anyway:
Don't be having a bunch of files laying around that you don't know what they
are or what they do or etc.
> I get the following on one of my pages,
>
> Warning: Use of undefined constant month - assumed 'month' in
>
> This site ran error free before, only after adding "Phorum"
>
> if ($brand == 'nut') {
>
> if (isset($brand)) {
> if ($brand == 'nut') {
> $item = "Chris King 2nut Headset";
> }
> can someone explain me how to use LOCK TABLES to subtitute transactions?
>
> I don't seem to get how this is possible... and I really need this... I
> have a script that updates 4 tables at a time, and I have to be sure all
of
> them are updated, or NONE... I can only see this possible using
> c
> Hi list,
> I have a csv text file that looks like this:
>
> Mike,1,Monday 12th of February 2001 02:14:09 PM
> Bob,3,Monday 12th of February 2001 02:14:17 PM
> Marry,2,Monday 12th of February 2001 02:16:38 PM
>
> I'm trying to get it to sort by the 2nd value (number
> descending and to show only
> session_start();
> session_register('email');
> $session = session_id();
> $userid = '$user';
> $sql = "SELECT *
> FROM users
> WHERE user='$user' and pass='$pass'";
> if ($num == 1) {
> include "quote2.php";
> }
Unless quote2.php sets $email, you've never set it to anything.
You'v
> I know that by using the header you can bring up a standard user
> authenication dialog box, that sets the EVs:
> $PHP_AUTH_USER
> $PHP_AUTH_PW
>
> But is it possible to use a custom form to set these variables manually
for
> site wide useage?
No.
The browser sends those variables on each page
> INSERT INTO testtab2
> VALUES ( upper('$symbol'), '$two_liner', '$href',
> '$full_desc', '$submitter_name',
> '$submitter_email', CURRENT_TIMESTAMP )
>
> I hate to muck them up with a bunch of tests for empty vars, which then
> need to be replac
> I was just wondering if there's a "proper" name for what I've been
> calling the "short equals tag" ( there's actually a name for it or (if not) if somebody has a more
> descriptive name for it.
I call it the "Stop ASP-ers whining about how great <%= is so I can get back
to work" tag.
Guess i
- Original Message -
From: Kristofer Widholm <[EMAIL PROTECTED]>
Newsgroups: php.general
Sent: Tuesday, February 13, 2001 5:29 PM
Subject: [PHP] Still can't talk to the Oracle
> I'm setting up a back end production system for a television show,
> and have been given space on a developmen
> return ($va1, $var2);
echo $val1, "|", $var2;
Site A will get back whatever B *echos* out.
You may need some other delimiter than "|", depending on your data.
--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Vo
Try changing all your \n to \r\n.
RFC is \r\n.
Un*x mail programs are smart enough to take \n
Microsoft mail programs are not that smart.
Put in the space after Cc: and before your email.
The space is *required* by some (all?) emailers?
--
Visit the Zend Store at http://www.zend.com/store/
Wa
You'll need to use some way to convert é to &eaccentgrave; or whatever the
HTML Character entity is for that.
And it probably won't work at all inside of a menu or a button, which relies
on the underlying OS, which probably only accepts ASCII.
--
Visit the Zend Store at http://www.zend.com/store
In addition to every header you can find, use:
http://yoursite.com/download.php/foo.jpg?download=foo.jpg
Yes, that extra foo.jpg looks real goofy in there.
PHP will ignore it.
Your web-server will ignore it.
Only really badly broken software products (IE) will say, "Hey, let's
*ignore* all those
101 - 200 of 275 matches
Mail list logo