LE> You'll need to have a cgi version of PHP to use in cronjobs
Not entirely true; you can run a script off your server as well, using
lynx -dump http://server/path/to/file as the line in crontab
- Julie
--> Julie Meloni
--> [EMAIL PROTECTED]
--> www.thickbook.com
--
PH
tutorial.
- Julie
--> Julie Meloni
--> [EMAIL PROTECTED]
--> www.thickbook.com
Find "Sams Teach Yourself MySQL in 24 Hours" at
http://www.amazon.com/exec/obidos/ASIN/0672323494/thickbookcom-20
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
article2."
Easy enough, if you have tables and little insert snippets scattered
about to handle that.
- Julie
--> Julie Meloni
--> [EMAIL PROTECTED]
--> www.thickbook.com
Find "Sams Teach Yourself MySQL in 24 Hours" at
http://www.amazon.com/exec/obidos/ASIN/0672323494
7)
LD> in c:\program files\apache group\apache\htdocs\wan\sessions.php on line 9
LD> Same warning for Doc 2.
That just means you put it in the wrong place. It has to go before
any (and "any" means ANY) output.
- Julie
--> Julie Meloni
--> [EMAIL PROTECTED]
--> www.thi
length)
NW> I will use substr() in my php to format the descriptions but I thought
NW> I'd ask here if anyone had a *better* suggestion?
You could use the substring() function in MySQL (or a similar function
in your db of choice) to make the db do the work instead of PHP.
- Julie
--&
headers already sent (output
>>LD> started at c:\program files\apache
>>group\apache\htdocs\wan\sessions.php:7)
>>LD> in c:\program files\apache group\apache\htdocs\wan\sessions.php on line 9
>>
Check for whitespace, line break, etc before or after the tag, then. T
t being said, I'm
not sure what you are trying to do anyway. ucwords() upper-cases the first letter of
words in a string.
(http://www.php.net/manual/en/function.ucwords.php)
such as:
$string = "this is a test";
$newstring = ucwords($string);
echo $newstring // This Is A Test
- Julie
-->
n't. But please
don't say that it's wrong to do so. That's not the answer to the
guy's particular problem.
- Julie
--> Julie Meloni
--> [EMAIL PROTECTED]
--> www.thickbook.com
Find "Sams Teach Yourself MySQL in 24 Hours" at
http://www.amazon.com/exe
that doesn't work well, then I'd probably dump the data, run it
through a string replacing script, and load it all back in. That
wouldn't take too long either.
- Julie
--> Julie Meloni
--> [EMAIL PROTECTED]
--> www.thickbook.com
Find "Sams Teach Yourself MySQL in 24
"0" instead of "". Or, time()+somenum (not in quotes).
- Julie
--> Julie Meloni
--> [EMAIL PROTECTED]
--> www.thickbook.com
Find "Sams Teach Yourself MySQL in 24 Hours" at
http://www.amazon.com/exec/obidos/ASIN/0672323494/thickbookcom-20
--
PH
n altered in the 2nd edition of the
book.
C> I know that setting the expire parameter to 0 is supposed to kill the cookie
C> when browser is closed, but I can't seem to make that happen.
Using "0" in the time slot does work for this, as long as the entire
browser proces
part, just the PHP building
part.
Good luck!
- Julie
--> Julie Meloni
--> [EMAIL PROTECTED]
--> www.thickbook.com
Find "Sams Teach Yourself MySQL in 24 Hours" at
http://www.amazon.com/exec/obidos/ASIN/0672323494/thickbookcom-20
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ot access, then you have to
have someone with root access do it for you.
If you are saying that you didn't do it the first time and you don't
know how, then read the instruction manual or tutorial _very_ closely,
since it will be your first time.
- Julie
--> Julie Meloni
--> [
u explain me a little bit more, how to do ?
To which I will respond, albeit "classically", that you could:
a) read the installation manual or
b) read a tutorial or
c) read previous email message, which says to run the configure
command, then make, then make install, which will put the modu
htdocs/cp/login.php on line 45
Actually, it's not (but good helping!). Because there's an error
before -- his system's failure to write the session -- the warning is
the output that is referenced afterwards. First error is the actual
problem.
- Julie
--> Julie Meloni
--> [EMA
id DESC
- Julie
--> Julie Meloni
--> [EMAIL PROTECTED]
--> www.thickbook.com
Find "Sams Teach Yourself MySQL in 24 Hours" at
http://www.amazon.com/exec/obidos/ASIN/0672323494/thickbookcom-20
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
The user should echo the query as suggested previously, so as to
ensure that values for the variables are all actually there, and being
passed to MySQL.
- Julie
--> Julie Meloni
--> [EMAIL PROTECTED]
--> www.thickbook.com
Find "Sams Teach Yourself MySQL in 24 Hours" at
ht
titute opening a file and writing a line, for inserting
a record into a db.
Plenty of examples in the manual. (ok, at least 1)
- Julie
--> Julie Meloni
--> [EMAIL PROTECTED]
--> www.thickbook.com
Find "Sams Teach Yourself MySQL in 24 Hours" at
http://www.amazon.com/ex
. If you do not use
AS to make an alias, then you use max(id) as the third parameter of
mysql_result()
- Julie
--> Julie Meloni
--> [EMAIL PROTECTED]
--> www.thickbook.com
Find "Sams Teach Yourself MySQL in 24 Hours" at
http://www.amazon.com/exec/obidos/ASIN/0672323494/t
ne ever done this kind of
JB> install,
All the time. Never had a problem.
Tutorials here:
http://www.thickbook.com/extra/index.html?t=in
Installing MySQL on Windows is just an installer file. PHP is already
configured to use it; nothing extra needed.
- Julie
--> Julie Meloni
--
you just start with understanding the
$_POST and $_GET superglobals in relation to your forms, you've made a
good first step.
- Julie
--> Julie Meloni
--> [EMAIL PROTECTED]
--> www.thickbook.com
Find "Sams Teach Yourself MySQL in 24 Hours" at
http://www.amazon.com/ex
tp://www.thickbook.com/extra/index.html?t=in
There are other installation tutorials in many places.
- Julie
--> Julie Meloni
--> [EMAIL PROTECTED]
--> www.thickbook.com
Find "Sams Teach Yourself MySQL in 24 Hours" at
http://www.amazon.com/exec/obidos/ASIN/0672323494/thickboo
in tutorials abound.
(including here: http://www.thickbook.com/extra/php_mysql.phtml)
- Julie
--> Julie Meloni
--> [EMAIL PROTECTED]
--> www.thickbook.com
Find "Sams Teach Yourself MySQL in 24 Hours" at
http://www.amazon.com/exec/obidos/ASIN/0672323494/thickbookcom-20
ourself at the mysql command line.
>>
>> 2) print mysql_error().
Any time a query fails.
- Julie
--> Julie Meloni
--> [EMAIL PROTECTED]
--> www.thickbook.com
Find "Sams Teach Yourself MySQL in 24 Hours" at
http://www.amazon.com/exec/obidos/ASIN/0672323494/thickbo
t.extension
Extension Loading Directives: enable_dl
Is it on in php.ini? Your error message would indicate that it is
not.
- Julie
--> Julie Meloni
--> [EMAIL PROTECTED]
--> www.thickbook.com
Find "Sams Teach Yourself MySQL in 24 Hours" at
http://www.amazon.com/exec/obidos/
use the dl()
function.
And then, do what steph said.
- Julie
--> Julie Meloni
--> [EMAIL PROTECTED]
--> www.thickbook.com
Find "Sams Teach Yourself MySQL in 24 Hours" at
http://www.amazon.com/exec/obidos/ASIN/0672323494/thickbookcom-20
--
PHP General Mailing List (h
hat's _definitely_ my fault. Uh huh.
The list is here to help, and point in the right direction, as Steph did
with your version differences -- but don't jump all over us because
you haven't read the manual and have no idea about any idiosyncracies
for your specific OS/server/etc.
Lor
ess you have a directory called /tmp
on your Windows machine.
+----+
| Julie Meloni ([EMAIL PROTECTED]) |
| Tech. Director, i2i Interactive (www.i2ii.com) |
||
| "PHP Essent
= mysql_result($result);
> echo $myrow;
>
$myrow = mysql_result($result,0,"count(*)");
--
++
| Julie Meloni ([EMAIL PROTECTED]) |
| Tech. Director, i2i Interactive (www.i2ii.com) |
|
dedicated server there for $200/mo
(www.mytrainingcamp.com) and am ecstatic about it.
So, go Hurricane!
- Julie
+--------+
| Julie Meloni ([EMAIL PROTECTED]) |
||
| "PHP Essentials" and "P
N> Hello, I have a question: does anyone know how to divide MySQL results to
N> pages and display on a website in "1 2 3 4" form?
Use LIMIT within your SELECT statement:
http://www.mysql.com/doc/S/E/SELECT.html
- Julie
--> Julie Meloni
--> [EMAIL PROTECTED]
--> www.
your die message with die(mysql_error()) you will
probably see a very helpful error message such as "no database
selected" or "hey buddy, not connected".
- Julie
--> Julie Meloni
--> [EMAIL PROTECTED]
--> www.thickbook.com
Find "Sams Teach Yourself MySQL in 24 Hours" at
http://www.amazon.com/exec/obidos/ASIN/0672323494/thickbookcom-20
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
R>$html .= " $concentration $concunit $compname";
LPR> }
LPR>
You are re-assigning the value of $row within the while construct.
When you get to your query within the while chunk, use different
variable names than the "m
ave any php in my main page?
No. If using Apache, you can set the value of DirectoryIndex (in
httpd.conf) to index.php index.html index.whatever. You can have a
list of them. Apache will first look for the first name in the list,
and so on.
- Julie
--> Julie Meloni
--&
agehead's Personal
MailClient 2000, or pine.
That's all.
--> Julie Meloni
--> [EMAIL PROTECTED]
--> www.thickbook.com
Find "Sams Teach Yourself MySQL in 24 Hours" at
http://www.amazon.com/exec/obidos/ASIN/0672323494/thickbookcom-20
--
PHP General Mailing L
%d\n", mysql_insert_id());"
r> will this return the row number or the "id" fields value..?
FYI, you could:
a) try it and see
b) see what the manual has to say:
http://www.php.net/manual/en/function.mysql-insert-id.php
The answer is "Gets the id generated from the previ
of the just inserted record.
I'm just going to assume you're f*cking with all of us and leave it at
that.
- Julie
--> Julie Meloni
--> [EMAIL PROTECTED]
--> www.thickbook.com
Find "Sams Teach Yourself MySQL in 24 Hours" at
http://www.amazon.com/exec/obidos/ASIN/067
150 different variables and it will take me
PS> forever to write a query like
Therein lies your problem - quite likely you need to normalize!
- Julie
--> Julie Meloni
--> [EMAIL PROTECTED]
--> www.thickbook.com
Find "Sams Teach Yourself MySQL in 24 Hours" at
http://www.am
denis mettler wrote:
> But I don't have the mysql.sock in this directory.
Is mysqld running at all?
++
| Julie Meloni ([EMAIL PROTECTED]) |
||
| "PHP Essentials" and "PHP Fast
; ScriptAlias /php/ "C:/php/"
> AddType application/x-httpd-php .php
> AddType application/x-httpd-php-source .phps
you need an Action line.
Action application/x-httpd-php /php/php.exe
+--------+
| Julie Meloni ([EMAIL PROTECTED]) |
|
that deals with PHP and Flash at
all. I contributed some chapters to a very basic "how to work with
Flash" book, but it has nothing to do with PHP.
Sorry for any confusion.
- Julie
+--------+
| Julie Meloni ([EMAIL PROTECTED]) |
|
pegc> ScriptAlias /php/ "C:/Php/"
pegc> AddType application/x-httpd-php .php .phtml .html
pegc> AddType application/x-httpd-php-source .phps
pegc> Action application/x-httpd-php /Php/php.exe
Check for mismatched cases in httpd.conf.
Julie
NF> You appear to have a typo in your httpd.conf:
NF> Action application/x-httpd-php /Php/php.exe
NF> should be as follows: (note the ")
NF> Action application/x-httpd-php "/Php/php.exe
This is not accurate.
Julie Meloni
[EMAIL PROTECTED]
"
ndefined function: info() in C:\Program Files\Apache
pegc> Group\Apache\htdocs/phpinfo.php on line 3
pegc> when I tried the phpinfo test.
The function is phpinfo()
Julie Meloni
[EMAIL PROTECTED]
"PHP Essentials" & "PHP Fast & Easy"
utput.
"output" includes whitespace and line breaks, etc.
- Julie
--> Julie Meloni
--> [EMAIL PROTECTED]
--> www.thickbook.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To conta
ssions in general.
http://www.php.net/manual/en/ref.session.php
"LXXVIII. Session handling functions"
- Julie
--> Julie Meloni
--> [EMAIL PROTECTED]
--> www.thickbook.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additi
t; In case of login/password required sites, I use the login and password as
> cookie values and have _no_ expiredate set. Every time a request is made
> _both_ cookie values (login and password) are checked with that on the
> server.
I would hope that you are not storing and matching
the time. Swear.
> Now, when I load this in my browser, I see this as the source, but nothing
> displays on the page. Anybody recognize this? Can anybody point me in the
> right direction?
--
+----+
| Julie
48 matches
Mail list logo