I'm trying to get the XSLT extension working, and all I can get it to
do is echo the source XML back to me. I'm using sample markup from
O'Reilly's XSLT book as my XML and XSL files, as follows:
hello.xml:
Hello, world!
hello.xsl:
http://www.w3.org/1999/XSL/Transform";
On Sun, 8 Jun 2003 13:31:25 +0300, you wrote:
>AGES AND TRYING TO FIND A GOOD RSS CREATOR , PLEASE HELP, NOTE THAT I TRIED
>http://www.phpclasses.org . PHP Classes Repository
>
> BUT I DIDN'T MANAGE
>
> PLEASE HELP ME
A simple RSS document is pretty easy to generate. It's just text...
On Mon, 09 Jun 2003 07:13:43 +0200, you wrote:
>Does anyone have a good regular expression for capturing all http URL in
>a string?
>now i'm using ?(http://[a-z0-9-/_;&=+-\.\?:@]+)\b?mi
>in one of my programs, that is, all strings beginning with http:// and
>contain chars like a-z0-9 ...
>
>does
Hi all,
I cannot figure out why my code is not displaying the next product in the
database. Could anyone take a look and see if they could give me a hand, I've
attached the code.
Thanks in advance
--
David M.
Edification Web Solutions
http://www.edificationweb.com
jerzees.php
Descri
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] says...
> Hi all,
>
> I am reading the content of a text file into a variable to be used in a
> javascript. I am reworking some code that was originally done using
> ColdFusion and the jsStringFormat(var) function. What is the PHP
> equivalent
il address I want to forward
the emails to is on a different server so I wouldn't be able to just do a
imap_mail_copy(). Thanks for any input.
David
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] says...
> > Working kind of :)
> >
> > Get one line from it
>
> Kinda... I get it to return one line...
>
> The code:
>
> define('STDIN',fopen("php://stdin","r"));
> $str = fgets(STDIN);
> mail("[EMAIL PROTECTED]","Test","Test Test...\n\nOr
On Sat, 14 Jun 2003 08:02:57 -0400, you wrote:
>I just installed php/mysql on my windows machine, now when I try to run
>a script I get this:
>
>Use of undefined constant s_UID - assumed 's_UID' in
>c:\inetpub\wwwroot\php_test\inc\session.php
>
>And then some Undefined variable: s_UserInfo.
>
>An
php.net/mysql_errno it says:
"All mysqld error messages are located into the file
/usr/local/share/mysql/english/errmsg.txt and listed in numerical order
from 999 to 1175. You can change the output language as well, issuing the
'-L spanish' option for example. See the manual for
atabase
> script.
For a quick fix, change:
echo fgets($fp, 128);
to:
fgets($fp, 128);
All the best,
David.
--
phpmachine :: The quick and easy to use service providing you with
professionally developed PHP scripts :: http://www.phpmachine.com/
Professional Web Dev
sql server, select the db then use:
mysql_query("DROP TABLE table_name");
David.
--
phpmachine :: The quick and easy to use service providing you with
professionally developed PHP scripts :: http://www.phpmachine.com/
Professional Web Development by David Nicholson
next part will contain the output that you
require.
Hope this helps,
David.
--
phpmachine :: The quick and easy to use service providing you with
professionally developed PHP scripts :: http://www.phpmachine.com/
Professional Web Development by David Nicholson
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] says...
> Hello All,
>
> I am using phpMyAdmin to administer my MySQl DB. I am running Mac OS
> Jaguar.
> when I try to start up phpMyAdmin I get an error:
>
> Welcome to phpMyAdmin 2.4.0
>
> Error
>
> MySQL said:
>
> Can't connect to local M
On Tue, 17 Jun 2003 06:00:28 -0500, you wrote:
>I have a site with hundreds of downloadable forms in MS Word format.
>Right now to download a form you have to right-click and choose "Save
>Target As..." to download the form. Is there a simple script that I
>could put in that would trigger the d
Use the foreach construct, it is documented at:
http://uk2.php.net/foreach
David.
--
phpmachine :: The quick and easy to use service providing you with
professionally developed PHP scripts :: http://www.phpmachine.com/
Professional Web Development by David Nicholson
ver).
A work around is that you could have an include in each of your pages that
checks the time and decides whether to do the tasks you were going to do
in the cron job. This will only work if you have a busy site and if your
cron job does not take long to execute though.
David.
--
phpmachine
On Tue, 17 Jun 2003 17:00:26 +0200, you wrote:
>I'm embedding an SQL query constructed in Javascript to an URL and opening
>it in PHP where I try to execute it.
I can't believe anyone hasn't jumped on this yet :)
Please be very, very careful. There's a big big hole there.
>Problem is, the strin
On Tue, 17 Jun 2003 19:25:39 +0200, you wrote:
>I have the following code:
>if (file_exists("themes/$ThemeSel/modules/$name/$mod_file.php")) { $modpath
>= "themes/$ThemeSel/";}
>
>At home on my PC (WinXP+PHP4.3.2) this code works without warnings.
>But in my office (Win2000+PHP4.3.0) I always
n the strstr manual page it states:
"Note: If you only want to determine if a particular needle occurs
within haystack, use the faster and less memory intensive function
strpos() instead."
All the best,
David
--
phpmachine :: The quick and easy to use service providing you with
profes
On Tue, 17 Jun 2003 12:41:34 -0600, you wrote:
>I'm a relative newbie to PHP coming from the Zope/Python/DTML world. Does
>anyone know of a good way, short of a javascript, to redirect from index.html
>to index.php. Also, can I use PHP to test for browsers, then redirect them
>to the appropr
quot;F",mktime(0,0,0,$i,1,1));
}
For more info:
http://uk.php.net/manual/en/function.mktime.php
http://uk.php.net/date
HTH
David.
--
phpmachine :: The quick and easy to use service providing you with
professionally developed PHP scripts :: http://www.phpmachine.com/
Professional We
u can use an expiry date in the distant future.
> 2. How do you put 2 items that you want to save in the cookie and
> retrieve??
Have two seperate cookies, one for each value.
All the best,
David.
--
phpmachine :: The quick and easy to use service providing you with
professiona
nt of e-mails on each execution and use
a meta-refresh to continually call the script. I do this on one site and
also display a progress bar that updates on each refresh which is a bit
better for the end user rather than have them staring at nothing until
eventually all the mails have sent.
) function are you using the headers parameter, if
so have you accidentally put a double newline in your headers, if so this
would cause all of the headers below the double newline to appear in the
body.
David.
--
phpmachine :: The quick and easy to use service providing you with
professionally
$message",
> "From: "[EMAIL PROTECTED]"<[EMAIL PROTECTED]>");
Looks like you are passing the parameters in the wrong order, it should
be:
mail("[EMAIL PROTECTED]","subject","message","From: Yourname
<[EMAIL PROTECTED]>")
On Sat, 21 Jun 2003 19:24:26 +0200, you wrote:
>I want to call this generic echo function within a class, but have
>trouble referencing the output function with $this-> .
>Any suggestions? Maybe there is a better solution to this?
>
>This is within a class:
>
>[snip]
># generic WALK functions
>
e and password is
> correct..
>$info =
> base64_encode("$id:$username:$passwd:$fname:$lname:$suspended");
I haven't read all of your code but the first thing I can think to check
is... do any of your usernames or passwords have : characters in them?
if they do you will h
On Mon, 23 Jun 2003 08:59:56 +0300, you wrote:
>Is there any way, doc, article, example, idea, suggestion to how to
>prevent sql injection on php sites...
It's really not that hard to do.
Rule 1: Never trust the client
This means validating all data that comes from the client - make sure that
anyone help with this?
> Doug
Make sure that you correctly escape the http://www.phpmachine.com/
Professional Web Development by David Nicholson
http://www.djnicholson.com/
QuizSender.com - How well do your friends actually know you?
On Mon, 23 Jun 2003 13:22:40 -0400, you wrote:
>
>When I include in my html
>code, I get a parse error. The version is 4.1.2; phpinfo() reports
>that XML support is turned on. Can anyone help with this?
"' . "\r\n"); ?>
or turning short tags off.
--
PHP General Mailing List (http://www.php
http://fr2.php.net/manual/fr/function.vpopmail-add-alias-domain-ex.php
How can i do to use vpopmail functions ?
What doesnt that means ?
vpopmail_add_alias_domain_ex
(4.0.5 - 4.2.3 only) ?
Is there a set of php scritp that allows to manage vpopmail, I have vqadmin
in perl but it has some bug on
te email for
> each
> individual?
> Im trying to write a script for personal use that allows me to send
> emails
> straight from my active desktop, but I would like to allow bcc...
> Russ
Using the mail function you can specify additional headers, just add a
header "Bcc: [EMAIL PROTECTED
an equals sign, followed
by the ascii code for the character required (in uppercase hex).
HTH
David.
--
phpmachine :: The quick and easy to use service providing you with
professionally developed PHP scripts :: http://www.phpmachine.com/
Professional Web Development by David Nicholson
Hi,
Can someone compile vpopmail extension for me ?
http://www.ionium.org/php/php_vpopmail-0.1.tar.gz
I need a php_vpopmail.dll ...
I have nothing for compiling this, so if someone can do easily ...
Thanks.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.ph
e time as:
> 1056551047 when it is in fact 15:25
> How do I get the proper format for time? I looked on the web site but
> couldn't understand any of it :(
> Thanks in advance
Take a look at www.php.net/date and all will be explained.
David.
--
phpmachine :: The quick and easy to
Not a specific question, more a request for comments.
Does anyone have any opinions/comments on creating data or objects with
application scope in PHP?
I'm thinking of implementing what would essentially be a Singleton in a PHP
extension, which could cache/uncache arbitary zvals. But I'd like to
to add message IDs to
e-mails in a number of PHP applications both on Windows (using a relaying
SMTP server) and on FreeBSD (using sendmail).
David.
--
phpmachine :: The quick and easy to use service providing you with
professionally developed PHP scripts :: http://www.phpmachine.com/
ameter? what do you get then?
-q Quiet-mode. Suppress HTTP Header output.
David.
--
phpmachine :: The quick and easy to use service providing you with
professionally developed PHP scripts :: http://www.phpmachine.com/
Professional Web Development by David Nichol
On Wed, 25 Jun 2003 18:37:02 -0700, you wrote:
>I've got an array in the following format:
>Array ( [Jan-1999] => 36.04,140.35,319.53,324.07 [Feb-1999] =>
>1.78,71.78,320.58,141.97 )
Assuming that I've interpreted your array structure correctly,
$a = array ("Jan-1999" => array (36.04,140
On Thu, 26 Jun 2003 13:00:45 +0200, you wrote:
> What am I missing?
At first glance
>while ($i <= $number_of_days)
> {
> $issue_date = strftime("%Y-%m-%d", $current_date);
> $issue_month = date("m", $current_date);
> $issue_day = date("d", $current
s the key to the array and the number of times it
occoured as the value, so...
foreach($words as $thisword){
if(in_array($thisword, $array)){
$array[$thisword]++;
} else {
$array[$thisword]=1;
}
}
foreach($array as $word=>$count){
echo "The word $word occoured $co
[$thisword]=1;
> }
Just realised my own mistake...
The if statement shoud be if(isset($array[$thisword])) as the word is the
key and not a value in the array.
David.
--
phpmachine :: The quick and easy to use service providing you with
professionally developed PHP scrip
On Thu, 26 Jun 2003 13:25:39 +0200, you wrote:
># i would like a similar function that removes interpuntuation like "." etc.
># all i want remaining in the array are the separate words, all in lower
>case
How do you define a word? Is a hyphen part of a word? Do you want to strip
out numbers? Make
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] says...
> PiBIb3cgY2FuIEkgZ2V0IHRoZSBtb250aCBuYW1lIGZyb20gYSBkYXRlPyBJZiB5b3UgY291bGQg
> cG9zdCB3aXRoIGFuIGV4YW1wbGUNCj4gaSdsbCBiZSBncmF0ZWZ1bGwNCg0KVHdvIGxpbmtzIHRv
> IGhlbHAgeW91Li4uDQpodHRwOi8vd3d3LnBocC5uZXQvbWFudWFsL2VuL2Z1bmN0aW9uLmdldGRh
> d
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says...
> I have the following code:
>
>
> $sql = "UPDATE class_sub SET desc = '$catdesc', sub_cat = '$subcatname'
> WHERE id='$catid'";
> echo $sql;
> $sql_result = mysql_query($sql);
> if (!$sql_result)
> {
> echo "Couldn't update
ch new word on a
> new line
> for instance, and without the [ ] and =>. Is this possible, and if
> so, how
> do i solve this?
See www.php.net/foreach
echo "\n";
foreach($yourarray as $word=>$count){
echo "$word$count\n";
}
echo "\n";
HTH
Dav
copied to the group so you can
find it again in the groups archive at:
http://marc.theaimsgroup.com/?l=php-general&m=105671320623391&w=2
David.
--
phpmachine :: The quick and easy to use service providing you with
professionally developed PHP scripts :: http://www.phpmachine.com/
On Fri, 27 Jun 2003 17:06:50 -0600, you wrote:
>I need to sort an array and have the key 'follow' the value. I know I could
>splice a string, sort it, then split it again but what a pain. Is there a
>simpler way?
AFAIK, there's no one-liner answer here. the usort() family of functions
pass either
27;var2'=>'testing2');
foreach($theArray as $varname=>$value){
global $$varname;
}
extract($theArray);
}
Foo();
echo "$var1$var2";
The above code outputs "testingtesting2".
All the best,
David.
--
phpmachine :: The quick and easy to
On Fri, 27 Jun 2003 19:45:27 -0500, you wrote:
>ckeck out asort and arsort
I'm looking...
My understanding was that the original poster wanted to sort an array by
"value"|"key" ("sort an array and have the key 'follow' the value")
eg
'pear' => 'green',
'orange'=> 'orange',
'banana'
> $theArray = array('var1'=>'testing', 'var2'=>'testing2');
> foreach($theArray as $varname=>$value){
> $GLOBALS[$varname] = $value;
> }
> Which is what I am already doing...
Yes, good point. Also that avoids u
On Sat, 28 Jun 2003 12:33:27 +0200, you wrote:
>I have problem in including this text in my PHP parsed file for XHTML
>definition:
>It works if I remove the first line:
>
>
>So, I am assuming PHP has problems with the symbols, as they are
>recognised to be PHP code delimiters.
Yup.
try
' . "
; not just the filename?
> Sam
Using my Apache installation it is in $_SERVER['REQUEST_URI'].
At a guess I would say most other web servers will put it there too.
David.
--
phpmachine :: The quick and easy to use service providing you with
professionally developed PHP scripts :: http:/
On Sat, 28 Jun 2003 15:10:03 -0500, you wrote:
>Since I want to more more into programming than design, can anyone
>recommend where to learn how to make sure your code is clean, optimized and
>as error-free as it can get? Even if it is the style of how to write the
>code, please let me know
On Sun, 29 Jun 2003 23:41:09 +0200, you wrote:
>is it possible to close the connection to the client/browser without calling
>exit?
>I have an input-script for a chat-system, wich gives a Status 204 No Content
>to the client after submit, wich works great. The problem is, that sometimes
>the scrip
On Mon, 30 Jun 2003 11:26:50 +1000, you wrote:
>I used to have a bookmark for how php.net's custom 404/redirect/search
>script worked, but I can't find it now, and can't see it on php.net... has
>anyone got a link?
I guess you're looking for Apache's ErrorDocument directive. It's in the
manual.
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] says...
> Question.
>
> I am looking to try and pull the last modified date out and display it. So
> lets say I have 1000 records. I want to only display the date of the last
> modified time, I dont care about the id or the name or anything.
On Tue, 1 Jul 2003 01:21:54 -0400, you wrote:
>Anyone know of an easy way to add or subtract dates in php the way you can
>in mysql? Easier, that is, than coding the logic by hand? This seems like
>a total pain.
Convert to Unix timestamps, do regular maths, unconvert.
--
PHP General Mailing
Select TIMESTAMP(date_column) AS mydate
Then when you display it use the date function
DATE('mdY',mydate)
-Original Message-
From: Ragnar [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 22, 2002 4:42 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Formating datevariables...
I have a col
there something else
> to it?
>
> Thanks in advance...
>
>
>
>From the docs:
getservbyname() returns the Internet port which corresponds to service for
the specified protocol as per /etc/services. protocol is either "tcp" or
"udp" (in lowercase).
Cheers
anx
>
> -R
You can do it as you get it out of the db - see DATEFORMAT
Cheers
--
David Robley
Temporary Kiwi!
Quod subigo farinam
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
eed a
different mode.
However, I think you may be better off uing fopen, instead of popen, if
you are trying to do what I think you are. The documentation for fopen has
a comprehensive description of the modes available; note that w is kindof
destructive in the wrong context :-)
Cheers
--
David Robley
Temporary Kiwi!
Quod subigo farinam
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
u are asking what I think you are asking - use ord to get the ascii
(decimal) value of each character, then use dechex to convert to hex.
Cheers
--
David Robley
Temporary Kiwi!
Quod subigo farinam
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
rror indicates that fopen failed to open the requested file. Given
that the URL works fine in a browser, is it possible that your php is not
configured to do remote fopen? Check the setting of allow_url_fopen in
phpinfo()
It is a good idea to test the result of such calls before trying to use
the re
> what doesn't work is after they login to Page 1, the
> redirect sends them to
> Page 2 and right back to Page 1 because the global session
> isn't staying
> registered.
Are you putting session_start() at the top of each page where you want
to be able to use the session stuff you've set
ctories in some
places.
--
David Robley
Temporary Kiwi!
Quod subigo farinam
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ELF header
> /usr/local/apache/bin/apachectl start: httpd could not be started
>
> Any help on this would be greatly appreciated. Thanks in advance.
> Reuben D. Budiardja
>
>
Did you do 'make install' as root?
--
David Robley
Temporary Kiwi!
Quod subigo farinam
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
assuming that
> > this is why
> > it doesn't work ...
> >
> > does any one have any ideas for me php ver is 4.2.1 for now... though
> > will upgrade to 4.2.2 soon..
Sounds like you are missing the system header files - what 'unix' are you
using?
Cheers
--
David Robley
Temporary Kiwi!
Quod subigo farinam
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
tory `/usr/local/php-4.2.1/Zend'
> > > > make: *** [all-recursive] Error 1
> > > >
> > > > now i understand that it can't find unix.h and am assuming that
> > > > this is why
> > > > it doesn't work ...
> > > >
. Any hints on where to
> start?
session_register() ?
Cheers
--
David Robley
Temporary Kiwi!
Quod subigo farinam
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
of the install directory for
any clues.
I'm not sure, but it might be --enable-track-vars (unless that is a typo);
check with configure --help | grep track
Cheers
--
David Robley
Temporary Kiwi!
Quod subigo farinam
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> I have a datetime field in one of my mysql tables...when
> displaying some of
> my records I want to display the date in the aforementioned
> datetime field,
> but if the date is today I want to display "today" instead.
> If the date is
> yesterday I want it to display that so I
Try This
if(strtoupper($REQUEST_URI)=='INDEX.PHP')
{
...statements...
}
- Original Message -
From: "Steve Minter" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 24, 2002 7:50 PM
Subject: [PHP] web page function
I am tring to refer to a web page using a function. Wha
ut prior to the error might be useful?
Cheers
--
David Robley
Temporary Kiwi!
Quod subigo farinam
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
t seems you need
to
print from the first record, then reset the pointer to the first record and print from
all
records found. So:
$row = mysql_fetch_row ($result))
print ("$row[4]");
mysql_data_seek($result, 0); // Add this
while ($row = mysql_fetch_row ($result))
Unless I mi
, ...) should return me somehow: 10
>
>
> Thanks
strpos might be useful
--
David Robley
Temporary Kiwi!
Quod subigo farinam
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
John,
You made one comment which is caught my attention:
> that's a no go :( Or is there a way of storing common query results?
If the results to a commonly called query are the same for a time period,
than why don't you right a routine that just stores the results into a new
database that als
Create a column like.person_id with the auto_incr flag set. Every
record will be given a unique id starting at 1 and incrementing by 1 each
time. Then you can query based on person_id field to get an individual
record
-Original Message-
From: Tyler Durdin [mailto:[EMAIL PROTECTED]]
And Tyler...rest assured you would never be working for me with an attitude
like that. Nor would I ever recommend that you work for one of my clients.
It's not about making as much as you can, it's about making what is fair,
deserved, and reasonable. Someone else said that what we're providing
hello all,
I download a gni script path2vars that manipulate query_string for web
crawlers.
But I have php 4.06 that doesnt support function :
uses array_key_exists() (PHP >= 4.1.0).
Is there a way to substitude it ?
Is there a way to detect php version and incluse the functions or it
substitute
I can think of many reasons why displaying the pdf in the browser is a last
resort and not a first resort. Especially in situations where the reader is
not installed.
Like Tyler, I would be quite interested to see if anyone has any ideas on
how to convert from pdf to html.
-Original Mes
Hello,
I was looking for a query_string wrapper for web crawlers
I found pathtovars :
http://www.phpclasses.org/browse.html/package/561.html
English is not my native language.
I didnt manage to use efficently this script !
Even with the sample !
I don't know how to map url ?
How to generate an
Downloads for the Windows binaries are broken.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> would look like this:
> http://www.domain.com/script.php?var1=value1&var2=value2
> there would be a document name << script.php >>
> followed by the << ? >>
> then variable and value pairs << var1=value1 >>
> separate each variable/value pair with an ampersand << & >>
>
> Hope this helps
>
> Bre
I make my own :
What u think about :
begin
";
echo "REQUEST_URI $REQUEST_URI ";
echo "SCRIPT_NAME $SCRIPT_NAME ";
echo "PATH_INFO $PATH_INFO ";
echo "PATH_TRANSLATED $PATH_TRANSLATED ";
// Array ( ) Array ( ) PHP_SELF /path2vars/index.php/var1,val
> Do you charge by the page, script or by the hour (that would
> be nice).
We do this sort of thing in, basically, one of three ways...
1. Client gives us a budget and we give them a clear idea of what that
budget will get them.
2. Client gives us a good idea of what they want to achieve
thing. I know (X)HTML, CSS-1-2-P,
JS, PHP, SQL, etc. The list just goes on. And the thing is, I use ALL of
them ALL the time ;o)
-Original Message-
From: Jay Blanchard [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 26, 2002 8:27 AM
To: 'David Buerer'; [EMAIL PROTECTED]
Subj
What's ASP
I don't know if and haven't learned it so it couldn't be. After all, how
many programming languages does one need to know??
-Original Message-
From: Jay Blanchard [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 26, 2002 8:27 AM
To: 'David
quot;);
mysql_data_seek($result, 0); //Reset pointer to first record
while ($row = mysql_fetch_row ($result))
{
print "$row[1], $row[2], etc.");
}
?>
You might want to look at extract as well.
Cheers
--
David Robley
Temporary Kiwi!
Quod subigo farinam
"This is mutiny!" said Tom bountifully.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> When I issue this command to remove any commas at end of string:
>
> $query = rtrim($query, ",");
>
> PHP give me an error saying "Wrong parameter count for
> rtrim()". How can
> this be? The online manual shows rtrim can accept two
> parameters. Shouldn't
> this work? I have PH
< and >
> around all the <>)
If you are using php v4 you can do this with show_source(), or if using
apache, you can configure it to serve source code with syntax highlighting
rather than parsing the code.
Cheers
--
David Robley
Temporary Kiwi!
Quod subigo farinam
--
PHP Gener
place and also amend your httpd.conf to activate php as DSO. The
nyou just (re)start apache and off you go.
Cheers
--
David Robley
Temporary Kiwi!
Quod subigo farinam
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
In article <01c236b2$e5af1350$f5563944@cc1966780a>,
[EMAIL PROTECTED] says...
> Visit http://phpacronym.coolfreepage.com
> <http://phpacronym.coolfreepage.com/> and submit what the PHP acronym
> means to you!
Hmm, at least it is 404-compliant :-)
--
David Robley
> Yes, I am afraid that regarding GPL I have to agree with
> Microsoft when they say it is a cancer. The problem is that if you
want to
> distribute something that incorporates GPL licensed components, your
> software also needs to be distributed as GPL and so it gets
contaminated.
> Thi
> What i want to do is delete the entire IDs and
> generate them again so that they are in one single
> order like 1,2,3,4,5... .like this.
I suspect that if your table, as you use it, needs this ordering then
you've got something wrong. It really shouldn't matter much what the
internal IDs
> Mmm.. think you misinterpreted my question...
>
>
> http://www.mysql.com/doc/M/i/Miscellaneous_functions.html
>
> PASSWORD(str)
> how do you unPASSWORD(str) in PHP?
Basically, you don't.
Instead, what you do is use the password that was provided as user
input. You create a suitable
> is there some other easyer way to do in one line than this?:
>
> $fullname = $session["f_name"];
> $fullname .= " ";
> $fullname .= $session["l_name"];
$fullname = $session["f_name"] . " " . $session["l_name"];
CYA, Dave
--
PHP General Mailing List (http://www.php.net/)
To unsub
pxs which allows the
loadable module to be built, and the two with-config-file entries. The
latter of these points to the directory where you have installed apache
configuration files, and allows the php install process to find the apache
config file and add the necessary entries to get php up and running.
So the order of play is
Apache
configure
make
make install
optionally start to ensure its all working
PHP
configure
make
make install
Apache
restart to re-read the config file
That should get you up and running. I just did the php part earlier today
to upgrade my laptop to 4.2.2 and it only took a few minutes.
Cheers
--
David Robley
NUMBER CRUNCHING: Jumping on a Computer.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
better that you test that result
and be prepared to handle an error situation.
For a further guess, the value $username doesn't have a trailing slash.
--
David Robley
NUMBER CRUNCHING: Jumping on a Computer.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
List,
I get this after make installis this thing trying to make sapi? I
want to run on Apache/RH7.3 so I don't know if I need it...couldn't find
how to turn in with ./configure. Please help
TIA
/B
make[1]: Leaving directory `/usr/src/php-4.2.2/regex'
Making install in .
make[1]:
501 - 600 of 4419 matches
Mail list logo