Hi,
I am trying to write a web-based email client for my site (or are there
any samples) using php4 and POP3.
I have a book on professional PHP but that sample uses IMAP which is not
installed on my system.
Could anyone tell me where I can get some samples or how to proceed with
this project.
http://php.net/array_unique
> -Original Message-
> From: Aaron Bennett [mailto:[EMAIL PROTECTED]]
> Sent: 8 iulie 2001 08:52
> To: [EMAIL PROTECTED]
> Subject: [PHP] Getting any possible value inside an array
>
>
> Hi everyone...
>
> Does someone have a quick and dirty way of returning
Please advise me !
I have one problem with insert records to the mysql database.
If I run insert script in mysql command line I insert all 10801 records. If
I run insert script with php I insert only 10784 records. Do you know how to
solve this problem. In php.ini I have max_execution_time set f
I have a session variable called auth_user and want to put the variable into a form
field. I have tried the following and similar but am not succeeding.
how else might it be done
aa
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional com
heh..
y not u use the post method??
use a form..
put in the hidden form...
and
document.theformname.submit();
eg:
document.theform.submit();
Jon Yaggie <[EMAIL PROTECTED]> wrote in message
037601c1083b$b6583010$0100a8c0@piiimonster">news:037601c1083b$b6583010$0100a8c0@piiimonster...
> p
Has anyone run into this: I've got a custom session handler that saves
session info in a database but the sessionID gets lost as I go from one page
to another. It appears to be random as sometimes it's not lost!
I've got a link from one page to the other and each time a different session
ID is ap
IE 5.5 keeps the referer of the original page you clicked. I ran a quick test, but my
computer is a weird
setup, so it may not be the case with other setups.
- Original Message -
From: "Inércia Sensorial" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 09, 2001 4:15 PM
Su
On 09-Jul-01 Jon Yaggie wrote:
> the problem
>
> i have a page that uses a query string to determine content. ie
> index.php?id=2 in this page there is a link to a memebership area that uses
> a remote service. this service requires that thee be the exact same
> refering url. is the refering
I am not sure if the header(); function still maintain the referer, but if
it does:
You could make the first link lead to any named page, like: gate.php
On gate.php you put: header("Location: index.php");
On index.php you put:
if ($HTTP_REFERER == 'http://www.your_domain.com/gate.php')
problem with a session is the link originates at another domain. so as far
as i know i can pass a session between domains.
yes js is not a problem except i dont know it. and refrshing is possible
because on first load i will set up a session. can you specficate a url to
refresh?? so that i cn
Hello,
I noticed there are a lot of php temp files (session files) under /tmp
Whats the best way to dealing with this...
Thanks
Andras
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the
Anybody knows good mailing list specially for Java Applets ?
thanks
manisha
--
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]
hie...
if i'm not wrong.. u could try using session :)
that way, ucan have index.php s u ish :)
--login.php--
session_start();
$id = 1;
sessoin_register("id");
--index.php--
session_start();
$memid = $id-0;
// **statement**
hope it helps..
good luck :)
regards,
James
Jon Yaggie <[EMAIL PROTE
on 7/8/01 11:17 PM, Bob Horton at [EMAIL PROTECTED] wrote:
> What if someone wanted to reply to a form but the form was expecting the
> information to arrive using the POST method (and wasn't explicitly PHP)?
>
> Is there any way to do it if you want to submit to a POST method form? Or
> some w
What if someone wanted to reply to a form but the form was expecting the
information to arrive using the POST method (and wasn't explicitly PHP)?
Is there any way to do it if you want to submit to a POST method form? Or
some way to simulate the entering of the information and clicking of the
sub
What are the requirements? Can you allow JS code? Meta refresh tags?
- Original Message -
From: "Jon Yaggie" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 09, 2001 2:22 PM
Subject: [PHP] url without a query string?
the problem
i have a page that uses a query string t
Thanks, I was looking for that =>
Ben
-Original Message-
From: mike cullerton [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 08, 2001 10:01 PM
To: 'PHP General List (E-mail)'
Subject: Re: [PHP] Question about how to do this...
on 7/8/01 10:58 PM, Steve Werby at [EMAIL PROTECTED] wrote:
on 7/8/01 10:58 PM, Steve Werby at [EMAIL PROTECTED] wrote:
> "Ben Bleything" <[EMAIL PROTECTED]> wrote:
>> I believe (and I'm sure someone will correct me if I'm wrong) that
>> whenever you 'include' or 'require' a file, it drops to regular HTML
>> mode... so, yes, you will need to use
>> tags
"Ben Bleything" <[EMAIL PROTECTED]> wrote:
> I believe (and I'm sure someone will correct me if I'm wrong) that
> whenever you 'include' or 'require' a file, it drops to regular HTML
> mode... so, yes, you will need to use
> tags at the ends =>
Think of the behavior of include() as copying the e
i have nothing to do with the popup stuff :)
- Original Message -
From: "Ben Bleything" <[EMAIL PROTECTED]>
To: "'Jon Yaggie'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, July 09, 2001 11:37 AM
Subject: RE: [PHP] url without a query string?
> Yikes. Popups and porn.
>
> Anyh
it was in fact the mistake that was causing the whole problem. Was there a
reason?...too little sleep and too much caffeine I'd say :)
> From: "motorpsychkill" <[EMAIL PROTECTED]>
> Date: Fri, 6 Jul 2001 20:38:18 -1100
> To: "Brad Wright" <[EMAIL PROTECTED]>
> Subject: RE: [PHP] Re: changing to a
I believe (and I'm sure someone will correct me if I'm wrong) that
whenever you 'include' or 'require' a file, it drops to regular HTML
mode... so, yes, you will need to use
tags at the ends =>
Hope that helps =>
Ben
-Original Message-
From: Chris Cocuzzo [mailto:[EMAIL PROTECTED]]
Sen
Yikes. Popups and porn.
Anyhoo, I guess I can't help you. I just don't know enough about the
inner workings of http.
Sorry =>
Ben
-Original Message-
From: Jon Yaggie [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 08, 2001 9:34 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] url without a
ok so if I use this method below, or a hash table, etcand it has an
include/require statement...in those files to be included...do I need to
start it off with the mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 08, 2001 5:28 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Question about how to do thi
i mean this is coming from a hardcoded link.
example
www.design-monster.com links to www.site.com/index.php?id=4
but site www.hopeless.com links to www.site.com/index.php?id=2
both these then have a membership link on them and the memebership service
uses the refering url. but the referer need
A shot in the dark would be to use HTTP Post instead of Get... but, I
don't know http.
-Original Message-
From: Jon Yaggie [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 08, 2001 9:22 PM
To: [EMAIL PROTECTED]
Subject: [PHP] url without a query string?
the problem
i have a page that uses
the problem
i have a page that uses a query string to determine content. ie index.php?id=2 in
this page there is a link to a memebership area that uses a remote service. this
service requires that thee be the exact same refering url. is the refering url must
always be index.php. how can i
> I completely agree, Dave...
>
> I use IE 6 for browsing, but when I develop sites, I always test them
> for backwards compatibility all the way down to Netscape 3.0. If your
> site renders properly in NS 3.0, then you can rest assured it will
> render correctly for the majority of web users out
On 09-Jul-01 [EMAIL PROTECTED] wrote:
> Since I first made the tables for my site I've had to modify them quite a
> bit. I always keep a copy of the commands I used to make the tables in case
> I need to move a site. Is there a way to ask mysql to list the create table
> commands?
>
$ mysqldump
if you use phpMyAdmin you can dump the structure and data to a file and use
phpMyAdmin to place it on a new machine
At 10:48 PM 7/8/01 -0400, [EMAIL PROTECTED] wrote:
>Since I first made the tables for my site I've had to modify them quite a
>bit. I always keep a copy of the commands I used to m
<[EMAIL PROTECTED]> wrote:
> I need to move a site. Is there a way to ask mysql to list the create
table
> commands?
mysqldump -d database
or
mysqldump -d database table
mysqldump --help for more info.
[Cough] I mentioned the mysql mailing list to you off-list Thursday...
List-Subscribe:
On Sunday 08 July 2001 21:48, [EMAIL PROTECTED] wrote:
> Since I first made the tables for my site I've had to modify them quite a
> bit. I always keep a copy of the commands I used to make the tables in case
> I need to move a site. Is there a way to ask mysql to list the create table
> commands?
Do you mean to output the current structure of the table?
Check out http://www.mysql.com/doc/m/y/mysqldump.html. Mysqldump will
do that for you... If you mean a syntax reference, check www.mysql.com.
If you didn't mean either of those things, Sorry =>
Ben
-Original Message-
From: [EMAI
Since I first made the tables for my site I've had to modify them quite a
bit. I always keep a copy of the commands I used to make the tables in case
I need to move a site. Is there a way to ask mysql to list the create table
commands?
Susan
--
PHP General Mailing List (http://www.php.net/)
T
on 7/8/01 7:57 PM, Brian White at [EMAIL PROTECTED] wrote:
>>> I dislike the GLOBAL statement in that many of the bugs that get me
>>> scratching my
>>> head are to do with when I have forgotten to use it.
>>
>> Then you're probably using it way too often.
>
> It is usually for "SCRIPT_NAME", o
At 20:13 8/07/2001 -0500, Mark Charette wrote:
> > I dislike the GLOBAL statement in that many of the bugs that get me
> > scratching my
> > head are to do with when I have forgotten to use it.
>
>Then you're probably using it way too often.
It is usually for "SCRIPT_NAME", or one of the CGI para
"Michael Hall" <[EMAIL PROTECTED]> wrote:
> I've just recently got a bit more serious with learning bash scripting and
> am surprised at how powerful it really is, in conjunction with the usual
> UNIX commands and other tools. PHP is the only choice for most things web
> related, but I'm finding t
"Ben Bleything" <[EMAIL PROTECTED]> wrote:
> Interesting method, with the lynx... I imagine that if you've only built
> the DSO, then that would be the way to do it.. if it worked.
It works.
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
--
PHP General Mail
"Michael Hall" <[EMAIL PROTECTED]> wrote:
> With all the advice that has been offered so far, has it been assumed that
> php is installed in the CGI rather than DSO manner?
I haven't found this to be clear from the thread.
> Can PHP as a DSO
> interpret shell script-like files with a shebang at
If the browser supports CSS, you can define pagebreaks when it is
printed.
There is an excellent article at:
http://www.stars.com/Authoring/Languages/XML/BeginningXHTML/printing.html
It won't work in all browsers, but it gets the job done often enough.
On Sunday, July 8, 2001, at 10:04 AM, Ke
I quite enjoyed the interview at
http://www.dynamicwebpages.de/90.interview-zeev-suraski-linuxtag2001.php
translated via babelfish. A tasty morsel:
"Also the attempt to make PHP the egg-laying woolly milch sow is not my
opinion after the actual target for PHP." -- Zeev Suraski (translated
f
On Sat, 7 Jul 2001 00:36, Mat Marlow wrote:
> Hi all,
> I am in desperate need for a solution to HTML text fields not storing
> new lines. I'm storing news articles in a database but all the text
> just ends up in a big block because it ignores line breaks. Is thre a
> way around this without hav
you could also try http://css.nu/pointers/bugs.html if you are using style
sheets
Nick
At 09:08 8/07/01 -0400, you wrote:
>Even better, to save Dave some time, go to www.w3c.org They have an html
>validator there...it's strict, but that's the point...
>
>jack
>
>-Original Message-
> I dislike the GLOBAL statement in that many of the bugs that get me
> scratching my
> head are to do with when I have forgotten to use it.
Then you're probably using it way too often.
Global scope variable are inherently dangerous and cause more problems than
they're worth. I've been in this b
I completely agree, Dave...
I use IE 6 for browsing, but when I develop sites, I always test them
for backwards compatibility all the way down to Netscape 3.0. If your
site renders properly in NS 3.0, then you can rest assured it will
render correctly for the majority of web users out there.
Sorry for not being clear. I ment to ask if anyone has written a function
for UPs or USPS shipping labels. Ideally I'm looking for something that set
ups the UPS shipping. UPS has a suite of tools that people can link to but
they may be beyond my ability. They also require you to get approv
Even better, to save Dave some time, go to www.w3c.org They have an html
validator there...it's strict, but that's the point...
jack
-Original Message-
From: DAve Goodrich [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 08, 2001 9:00 PM
To: Christian Calloway; [EMAIL PROTECTED]
Subject: R
Marius,
2 tables (or more) is definatly the way to approach this... I'd also add
an "answerId" column in the Answer table as well so you can primary key it..
for instance.
CREATE TABLE questions (
questionId INT NOT NULL,
date DATETIME,
question TEXT,
questionDesc TEXT,
PRIMARY KEY questi
Yes Netscape will be a problem for poor code and MSIE will not. HTML is very
straightforward like any other language, learn to write it properly and it
will do nothing that surprises you. A requirement for proper syntax is a
good thing in your delivery method (the browser).
PHP will roll over and
http://www.futurebird.com/mapbuild3
Had many errors. But now it has many fewer, any feedback you guys can send
me will mean a lot. Please try to upload stuff, I need to know that is
working on other computers...
Susan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [
On Sun, 8 Jul 2001, Ben Bleything wrote:
> Interesting method, with the lynx... I imagine that if you've only built
> the DSO, then that would be the way to do it.. if it worked. My guess
> would be, you would have to do lynx
> 'http://localhost/path/to/script/script.php' to force it to go thr
http://www.futurebird.com/mapbuild3
I fixed it so now people who don't have css, or IE 5 (or a mac for that
matter) can use it... thanks for all the feedback.
Susan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [E
That's what I thought. Great.
I just wanted to make sure that I wasn't doing something else to provoke
his mailer =>
Ben
-Original Message-
From: Matthew Loff [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 08, 2001 5:19 PM
To: 'Ben Bleything'; [EMAIL PROTECTED]
Subject: RE: [PHP] Mosin
Yep... Getting them here too.
-Original Message-
From: Ben Bleything [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 08, 2001 8:16 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Mosinskis's autoreply
Just out of curiosity, is everyone else receiving auto-replies from
Peter Mosinskis when they
Just out of curiosity, is everyone else receiving auto-replies from
Peter Mosinskis when they post to the list? I know I am.
=> Ben
Hi,
I need to get the highest value of a hash. I first just wanted to do an
arsort and then access the first value with $data[0], which didn´t work. I
guess you can´t access associative arrays by index.
So I found this way to do it (as the $data array needs to remain unchanged):
$temp
Interesting method, with the lynx... I imagine that if you've only built
the DSO, then that would be the way to do it.. if it worked. My guess
would be, you would have to do lynx
'http://localhost/path/to/script/script.php' to force it to go through
the server.
TO be totally honest with you, I'm
This looks like a good place for me to step in and maybe clear up
something I've been wondering about ...
With all the advice that has been offered so far, has it been assumed that
php is installed in the CGI rather than DSO manner? Can PHP as a DSO
interpret shell script-like files with a sheba
Thanks for your help people,
I appreciate it
rm
__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Check the path to your php cgi executable - which php - you'll probably find that
it's #!/usr/local/bin/php
This is what the "no such file or directory" is referring to.
Chris
Don Read wrote:
> On 08-Jul-01 James, Yz wrote:
> > Hi Ben,
> >
> > When running it as a normal PHP file, I get the cr
> There is a serious bug in PHP that seems to lead to inconsistent handling
> of memory allocation that affects code that uses functions like strtok from
> inside session handler functions.
That is a *very* inaccurate description.
It affects only session handler functions which are calle
On 08-Jul-01 James, Yz wrote:
> Hi Ben,
>
> When running it as a normal PHP file, I get the cron daemon emailing me
> stuff like:
>
> automation/mail.php: ?: No such file or directory
> automation/mail.php: =: command not found
> automation/mail.php: =: command not found
> automation/mail.php:
Hello Aral,
On 30-Jun-01 13:05:40, you wrote:
>I'm writing a custom session handler that saves sessions using Manuel Lemos'
>excellent Metabase library. The problem is, although I've got the
>session_set_save_handler function pointing to the correct start, end, read,
>write, destroy and garbage
Make sure you also give the path to perl/php. Below is my cron job, it
needs to know the path of the interpreter.
/usr/bin/php /home/user/public_html/test.php
Jeff
> -Original Message-
> From: Ben Bleything [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, July 08, 2001 6:34 PM
> To: 'James,
Otay...
So, to get the shebang right, you need to know the path to the php
binary... it may not be where I said it was... You probably already
figured that out. You will also need to set it executable.
It looks, from what you sent, that crond is interpreting the php file
(and not having much lu
Make sure the code is like:
#!/usr/local/bin/php -q
(obviously the location of php may be different, but the above works for
me, I'm running a daily e-mail batch from a PHP script via cron)
Make sure you chmod ug+x it.
-Original Message-
From: James, Yz [mailto:[EMAIL PROTECTED]]
S
Hi You all,
after there was no solution in the mailing-lists and the news-group, I
decided to go to the Linux-Tage in Stuttgart and not to leave the PHP
booth until I have an answer:
Here it is:
That guy supposed that my problem has to do with the "preconfigured"
apache from my SuSE-distribution
Hi Ben,
When running it as a normal PHP file, I get the cron daemon emailing me
stuff like:
automation/mail.php: ?: No such file or directory
automation/mail.php: =: command not found
automation/mail.php: =: command not found
automation/mail.php: line 7: syntax error near unexpected token
`mail(
How are you executing the script? Does it come by and run 'php
yourscript.php' or does the script have a shebang ('#!/usr/bin/php') in
it? I've found that works well... just put that as the first line, and
it behaves as a shell script (after you make it executable, of course)
Ben
-Original
Hi all,
This is probably going to sound incoherant, but
Do I have to do anything (other than change the permissions of a php file)
to get it to run as part of a cron job? I created an extremely simple file
that should just send a blank email to me (using mail()). I got an email
from the cr
Here is an error I get now when it is doing the make any ideas what is
going on:?
make[1]: Entering directory `/tmp/php-4.0.6'
/bin/sh /tmp/php-4.0.6/libtool --silent --mode=link
gcc -I. -I/tmp/php-4.0.6/ -I/tmp/php-4.0.6/main -I/tmp/php-4.0.6 -I/usr/loc
al/apache/include -I/tmp/php-4.0.6/Ze
"Kathleen L. Ballard" <[EMAIL PROTECTED]> wrote:
> Dear list,
> This is sort of off topic. I have been asked by a client to parse the
> header info of all the .pdf files in a directory to identify the dpi of
> images, files with imbedded fonts, etc.
>
> I have made a search of the Adobe s
Click on a database in the left column, and you should see a textarea/file
combination. If the dump is small, you can just paste it in the textarea and
hit submit. Otherwise, choose the file from your local hard drive and it'll
upload it from your browser.
/* Chris Lambert, CTO - [EMAIL PROTECTED
PHP has _a lot_ of functions, but not enough to cover shipping labels for
UPS... ;-)
You could either use fsockopen() to post the required data, or GD to make
the labels yourself.
/* Chris Lambert, CTO - [EMAIL PROTECTED]
WhiteCrown Networks - More Than White Hats
Web Application Security - www.
I've had the same problem with Netscape, where it would crash/choke on any
platform. I never figured it out, but it has something to do with Netscape
choking on your HTML, it has nothing to do with CSS or Javascript or PHP for
that matter. I'm not an IE fan, but lets face it, Netscape sucks.
"To
I have been hapily using americart for the last three years. I now have the
need to expand upon the features that Americart provides. In particular I'm
looking for an order manager that will take the Americart orders and enter
them into a database for tracking the status of a customer's order
I know that both UPS and the USPS (US Postal Service) have servers that
requests can be submitted to which return back formatted shipping labels.
Does anyone know of any existing functions that work with either of these
services?
Thank you,
Mark
___
Dear list,
This is sort of off topic. I have been asked by a client to parse the
header info of all the .pdf files in a directory to identify the dpi of
images, files with imbedded fonts, etc.
I have made a search of the Adobe site and of google and can't find any
information about .pdf file hea
You could try fopen()ing the contents that way. maybe exec() them?
- Original Message -
From: "Dieter Stolpmann" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, July 08, 2001 3:18 PM
Subject: [PHP] http://www.myserver.de/page2.php";); ?>
> Hi,
>
> does anyone know, how to get
the lib directories you specify for apache in the httpd.conf are incorrect.
- Original Message -
From: "Power Programmer" <[EMAIL PROTECTED]>
To: "Ben Bleything" <[EMAIL PROTECTED]>; "'Power Programmer'"
<[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; "'Keyser Soze'"
<[EMAIL PROTECTED]>; <[EMAIL
Or even better, create a system where you can create new pages without
adding to the switch statement:
Note that you _need_ to have the full path, else you're creating a security
issue.
/* Chris Lambert, CTO - [EMAIL PROTECTED]
WhiteCrown Networks - More Than White Hats
Web Application Securit
What causes this error when apache is starting?
# ./apachectl startssl
Syntax error on line 238 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp4.so into server:
libmcrypt.so.4: cannot open shared object file: No such file or directory
./apachectl startssl: http
Yup => Try splitting the pages out into separate files. I'm betting
you'll find it easier to work with.
Ben
-Original Message-
From: Chris Cocuzzo [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 08, 2001 2:02 PM
To: PHP General List (E-mail)
Subject: RE: [PHP] Question about how to do
so the switch statement idea works I guess. sounds good.
-Original Message-
From: Mark Charette [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 08, 2001 5:05 PM
To: Ben Bleything; [EMAIL PROTECTED]; 'PHP General List (E-mail)'
Subject: Re: [PHP] Question about how to do this...
This is p
why does PHP converts the 'datetime' and 'smalldatetime' types of MSSQL to
a 'prettier' output?
in the table I have '2001-07-01 12:45:01' but when I run a query in PHP to
get it I recieve 'Jul 7 2001 12:45AM'.
I didn't ask for that... I want the exact value in the field with seconds
and all, n
This is a very good valid point that I completely failed to consider =>
Chris, to answer your last question, yes, it _would_ work, but as Mark
points out, it's probably not a very good idea. Still cool, but hey,
you can tell I don't work in a production environment =>
The other method I sent wi
This is probably "not a good idea" if the data is mostly static. There's no
real reason to use the power of a db engine for something this trivial, and
static serving will be faster than a DB system.
Mark C.
- Original Message -
From: "Ben Bleything" <[EMAIL PROTECTED]>
To: <[EMAIL PROTE
what if I'm storing HTML into the database, or even PHP code itself for that
matter, is this method that you mentioned still better than the switch
statement method?
chris
-Original Message-
From: Ben Bleything [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 08, 2001 4:59 PM
To: [EMAIL PR
Use a database. With mysql, you can store the text into a table with
primary key called 'page' or something like that, and a text field of
some sort.
Then, do mysql_query("SELECT pagetext FROM website WHERE page=$page;");
=>
Dive into it. It's easier than it looks.
Ben
-Original Message
hey-
so I want to have my site so that the urls are like /index.php?page=bio
the way I made the index.php so far is just one gigantic switch
statement...is there a better way to do it?
chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Have you made sure that the php on the command line and the php that
apache is using are indeed the same one? It's possible that apache is
looking at a module somewhere and that the php on the command line is
the binary you built.
Just a thought.
Ben
-Original Message-
From: Power Pro
I have compiled PHP with mcrypt and it works fine if I run a script from
the command line but through a browswer such as IE I get the following
error:
Fatal error: Call to undefined function: mcrypt_module_open() in
/home/wheit/html/test.php on line 6
What do I need to do to be able to us
dc wrote:
>I was curious if there was any custom tag support like jsp or cold fusion in
>php (or outside libraries). I'm looking at trying to make re-usuable
>components and want to use something more than including simple classes or
>function calls.
>
>Thanks for your time,
>
If you know C, then
Hi,
does anyone know, how to get the following line working
an windows?
http://www.myserver.de/page2.php";); ?>
I know, this way to access a remote file works on UNIX.
I simply can't get it to work on window. Is there a patch/trick
out, wich enables this?
I tried it on windows with IIS and
hey folks, hope the day is treating you well.
i believe i have solved my chasing the tail problem with registering an
object as a session variable. now, i'm having trouble with my database
connection.
in the object i am registering, one of its variables is a pear db object.
the first connection
on 7/8/01 10:04 AM, Keyser Soze at [EMAIL PROTECTED] wrote:
> I need to create a report to send it to printer based on datas from my
> database.firstly I tried pdf, but it's too hard to manage and it generate
> big sized archives.
> Any suggestions
What kind of report?
a report of what
Can anyone see anything wrong with this code?
$chmodresult = chmod ($imageloc, 0777);
$trashpath = "trash/$filenamec";
$trashed = rename ($trashpath, $imageloc);
echo "moving $imageloc to $trashpath, $trashed, $chmodresult";
I'm trying to move the file at $imageloc to a folder called 'trash' (i
on 7/8/01 5:53 AM, Adam at [EMAIL PROTECTED] wrote:
> thanks so much for the help, that'll be a great reference for any other
> similar types of output i need.
>
> some things i had to fix for others viewing this thread:
>
> "while ($numrows)" had to be changed to "while ($numrows >= 1)" or the
What kind of methods have any of you used for storing text that needs to be
displayed as both multi-page (for reading) and single-page (for printing)?
My plan is to store the articles with basic HTML formatting that will render
based on the site stylesheet(s).
I'm using MySQL.
My main question i
on 7/8/01 11:45 AM, Lasse at [EMAIL PROTECTED] wrote:
>> this was the first approach I thought about, but I don't know how to check
>> session IDs other that current one I use session_is_registered() to check
>> for the current session but how can I check for other sessions ? tell me
>> please :
1 - 100 of 154 matches
Mail list logo