I have two php scripts being included on my website.
one is a switch statement used for page navigation, and the other is an
elseif used to display different html code based on the value of a variable
(different on each page)
My apache server keeps freezing up and my hosting company tells me tha
I've been playing around with php alot lately and started to scheme ways to
use it-lol
so heres what I tried to do:
first there is a switch statement:
On that some_file.php I have an elseif like so:
Then on the page where thee are required I require them at the top of the
page.
and I have th
hi! I was unable to find any pre-written php code for a survey without a
database and using text files. So I was faced with the challenge of writing
my first script! -lol
What I eventually ended up with was a 3 answer poll, that will be called for
as many questions as I need, then I wil display t
use substr_replace
string substr_replace(string text, string replacement, integer start,
integer length)
EG:
');
print(substr_replace($text, "are", 10, 2));
?>
10 is the place where you want it to start replacement, 2 (is) more forward
it ends.
"Desikan" <[EMAIL PROTECTED]> wrote in message
I know this php.general - is there another newsgroup which specifically
deals with help issues?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Dunno right off hand about NS and DNS but a simple getenv('REMOTE_ADDR');
will return the IP address of a user.
"Philip J. Newman" <[EMAIL PROTECTED]> wrote in message
001d01c1b1c1$b33fec80$0401a8c0@philip">news:001d01c1b1c1$b33fec80$0401a8c0@philip...
Trying to colect ip, and name server, dns n
IL PROTECTED]...
> At 09:41 AM 2/11/2002 -0600, cyberskydive wrote:
> >$user = getenv('REMOTE_ADDR');
> [...]
> >It works great on windows running apache php 4.0.1
> >but on solaris php 4.06 if I add a
> >
> >print($first);
> >
> >it retu
I need to write to a specific line in a text file, read from a line on
demand, and update values at random, I want to do this all in the same text
file.
what is the best way to go about this?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
IL PROTECTED]...
> fopen(), fwrite(),fseek(),fread(),fclose()
>
> -----Original Message-
> From: cyberskydive [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 15, 2002 10:29 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] writing / reading from text files
>
>
> I
f the file, is obtained by
> adding offset to the position specified by whence, whose values are
defined
> as follows:
> SEEK_SET - Set position equal to offset bytes.
> SEEK_CUR - Set position to current location plus offset.
> SEEK_END - Set position to end-of-file plus offset.
&g
yayy i had my virtual server upgraded to php 4.1.2!
oh wait.. nothings F#*&ing working now!
a simple dropdown menu- leading to a page containing:
doesnt work anymore.
contact forms using php_self
survey using foreach()
mailing list declaring multiple functions called by
?action=whattodo
Since you didnt make it clear, do you even have MySql and php on your
server? Are you looking to just move your data or looking to get php & mysql
installed on the server as well? (SERVER = production site, not localhost)
if you just wanna move data, like everyone else said phpmyadmin rocks, but
the thing is, using the methods I described in my first post, the
superglobals or autoglobals arent working. I cant figure out why, and , like
the other guy said, most books dont include this feature in a topic for
discussion.
Can anyone offer advice?
"Cyberskydive" <[EMAIL PROT
I have 2 PHP books
the first is called PHP fast & easy web development -from primatech
the second is called CORE PHP PROGRAMMING by Leon Atkinson
I like them both, and I was glad I read fast & easy first, i like core php
alot, havent read the whole thing yet, been kinda referencing around it, b
I think I've got down how to use the new "superglobals" with data sent from
forms using whichever method needed.
Now I need to learn how to do it with sessions!
this is what I'm trying to accomplish.
my website/ client list is growing and I want to add the ability for them to
login, edit accoun
15 matches
Mail list logo