[PHP] call func from button

2005-06-17 Thread Malcolm Mill
Is there a way to call a php function from a button press to display
the results further down on the same page? I want to avoid setting up
an 'output-area' in a frame or having to put my function in a separate
script.
Thanks,
Malcolm.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] POP access to gmail

2005-04-29 Thread Malcolm Mill
Does anyone know of a PHP script to access gmail's POP services?
Thanks, 
Malcolm.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] beginner volunteer

2005-04-27 Thread Malcolm Mill
Hi, 
I've been reading up on php for a while now and would like to get
involved in a small open source LAMP project. I don't have any real
coding experience to speak of but could bring proofreading,
bug-reporting, testing and documentation skills to the project. What
I'd like to get out of working on it is: experience working with a
variety of other individuals over the internet on a common
application; real life knowledge of CVS and the development process;
some experience writing simple code.

If anyone knows of any opportunities like this or would like to
discuss what I could add to one of their own projects please contact
me.

Regards, 
Malcolm.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] web IDE

2004-12-16 Thread Malcolm Mill
Hi list, 
Sorry to repeat, but I thought I'd try give a clear idea of what I
wanted to do with my last question entitled 'php ide scripts' to see
if anyone else has done this and can direct me to or send me some
'beginners' files I can use.

What I want to do is create a program I can run on my local web server
that will allow me to write scripts faster. Unlike most computer
programmers I do not have a very good memory and so if I want to write
a table (or a form or something) in html I have to always look at my
textbook and copy out the tags. The same for php. If I want to write a
function, or a do-while structure I have to go back to the book and
copy out the correct syntax. This is very frustrating for me and slows
my learning process down.
What I have in mind is this:

Create a web page that allows me to create files with basic formating
tags in them (i.e for html htmlbody./body/html: for shell
#!/usr/bin/php: for php ?php.?).

I will use a text field and button on my web-page to create a new
version of whatever template I want, then open the file  in a text area
for editing. (Can I do this by simply turning the file into one long
string and putting it in the text box? I think there's a javascript
function for setting the contents of a textbox (and I've used VB's
one) but can I do this with php?)

On the same page (or through links to other pages) I will have buttons
that will allow me to insert the 'skeleton' text of a variable
declaration, or a function prototype, or a control structure into my
already open template file in the text area, then using text boxes set
the actual(static) values I want to use.

When I'm finished, I should have the file in a text area on my web page with my
completed script which I can then save and close.

If I can get this basic system working, all that remains for me to do
is  write the string functions for appending/editing my template files
as I learn more and more about the language (exploring function
libraries and writing my own) and develop more complex
applications.

One problem I'm having at the moment is how to create a file from an
html form. I have a php script that uses fopen() to create a new file.
This works fine when I call it from bash but I don't know how to do it
using a button on an html form. Any ideas?

Thanks, 
Malcolm.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] php ide type scripts

2004-12-15 Thread Malcolm Mill
Hi, 
Newbie learning php here. 
Does anyone (have|know where I can get) a set of html and php files to
automate script and form writing?

What I want is an html file with forms, drop down boxes, check boxes
etc, that will allow me to quickly|automatically construct php and
html code to run on my server.

For instance, a template generator:
to create a new file with the script directive for scripts I want to
run from the shell and output plain text.
to create a new file with html tags for server-scripts which will
output html formatting
to create scraps of code for function declarations, or control flow
structures, using text boxes on an html form to name variables and set
values, outputting the fully constructed scraps into another text area
from which I can cut and paste into a main script.

I don't want anything too complicated such as a fully blown graphical
IDE that will take me a long time to learn.

Cheers, 
Malcolm.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] baffled - please explain

2004-12-09 Thread Malcolm Mill
Hi, 
I just came across a sniplet of code in a book I'm reading and I'm not
sure what point the author is trying to make.

The code is:

function my_function ( )
{
  echo 'My function was called';
}


?php
function my_function ( )
{   
?
My function was called
?php
}
?

What are those single opening and closing curly braces doing in
separate ?php ? tag blocks? What's the point?
The author says Withing a function, curly braces enclose the code
that performs the task you require. Between these braces, you can have
anything that is legal elsewheere in a PHP script - PHP and MySQL Web
Development, 3rd Edition: Welling  Thomson.

If the point is to illustrate what this quote says, does that mean...

{   
?
My function was called
?php
}

...is a syntactically correct code block for my_function?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php