[PHP] writing files with php

2002-02-25 Thread Sven Jacobs
Hey How can I create files with php, I've tried somethings but php always tells me that I don't have access. But the Directory has 777 access and the owner is my webserver. Can somebody help me :-) I need this for to create logfiles Greetings Sven

Re: [PHP] Entering data into MySQL

2002-02-25 Thread Jason Wong
On Monday 25 February 2002 15:39, Tim Thorburn wrote: Hi, I'm having troubles entering information from a form into a MySQL database. Specifically if the user enters an apostrophe anywhere in the form, all the information is rejected and nothing is entered into the database. After

[PHP] Count

2002-02-25 Thread Sven Jacobs
hey Again a small question forgive me but it's monday and the brain is still working on sunday :-) I want to make this sql query visual does anybody have any idea :-) SELECT date_format(t_timestamp_opened,'%Y %m %d'), count(date_format(t_timestamp_opened,'%Y %m %d')) FROM crm.ticket group by

[PHP] FW: PHP Nuke - Datestring

2002-02-25 Thread Necro
-Original Message- From: Andrew Duck [mailto:[EMAIL PROTECTED]] Sent: Monday, 26 February 2001 8:44 PM To: PHP Gen Subject: PHP Nuke - Datestring I am having trouble trying to convert the current PHP Nuke dateformat for articles into Beats. Does anyone know how to swap the PHP Nuke

RE: [PHP] Count

2002-02-25 Thread Jon Haworth
Hi, I want to make this sql query visual does anybody have any idea :-) SELECT date_format(t_timestamp_opened,'%Y %m %d'), count(date_format(t_timestamp_opened,'%Y %m %d')) FROM crm.ticket group by date_format(t_timestamp_opened, '%Y %m %d') order by t_timestamp_opened; Visual? What

[PHP] passing variables - php.ini?

2002-02-25 Thread matt stewart
Hi guys, Looking for help on how to activate the automatic passing of variables - think i need to change something in my php.ini file maybe? got scripts that work fine on one server, but i've recently got a new virtual server, and it won't pass variables though - example script.. html

[PHP] Substr and HTML tags - Problem...

2002-02-25 Thread Sascha Ragtschaa
Hi, I got a small problem: I need to limit a teaser-text via substr($teaser,0,100). The Problem I now have is, if the last 4 string chars are a html tag like br and this tag will be cut by the substr to something like that: br - it will mess up the webpage... How can I avoid that the html tags

[PHP] Re: [PHP-DEV] SAP DB

2002-02-25 Thread Hartmut Holzgraefe
alex black wrote: hi all, One of the binarycloud developers just told me to have a look at the SAP OS database, SAPDB. SAP DB is just another name for AdabasD from a programmers point of view- I'm going to test it tomorrow to see if it actually does what it claims, but this _looks_ like

[PHP] accessing flash files using php

2002-02-25 Thread John Day
Hi Is it possible to access a flash movie and then go to a certain frame within that movie. I know that you can create flash files and then use all manner of flash related functions, but I want to access an already existing movie. Cheers JD

Re: [PHP] Substr and HTML tags - Problem...

2002-02-25 Thread Simon Willison
Sascha Ragtschaa wrote I need to limit a teaser-text via substr($teaser,0,100). The Problem I now have is, if the last 4 string chars are a html tag like br and this tag will be cut by the substr to something like that: br - it will mess up the webpage... How can I avoid that the html tags are

AW: [PHP] Substr and HTML tags - Problem...

2002-02-25 Thread Sascha Ragtschaa
Thanks, found a way - the PHP function wordwrap does it just perfect (recognizes the tags, too) ... Sometimes it's just good to browse a little bit through PHP.net (*g*) Sascha Ragtschaa -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Substr and HTML tags - Problem...

2002-02-25 Thread Jon Haworth
Personally when I'm doing teasers I strip all HTML from the content before using substr: $teaser = strip_tags($content); $teaser = substr($teaser, 0, 100); $teaser .= '...'; // Nice touch to have a '...' on the end :) You don't have a handy way to check that your substr() doesn't

Re: [PHP] passing variables - php.ini?

2002-02-25 Thread DL Neil
Hi Matt, Looking for help on how to activate the automatic passing of variables - think i need to change something in my php.ini file maybe? got scripts that work fine on one server, but i've recently got a new virtual server, and it won't pass variables though - example script.. Your

RE: [PHP] passing variables - php.ini?

2002-02-25 Thread matt stewart
thanks a lot! works fine now i've changed register_globals. just out of interest, what is the 'newer' way? is it using sessions etc, or something else i don't know about? or should i rtfm? ;) thanks again, Matt -Original Message- From: DL Neil [mailto:[EMAIL PROTECTED]] Sent: 25

[PHP] mysql.default_* when sql.safe_mode is on

2002-02-25 Thread uhlar
Hello, I'd like to provide default database host/user names and passwords for more virtual webs. the php.ini says, if I turn on sql.safe_mode, the variables mysql.default_host, mysql.default_user and mysql.default_password do not apply. Could I change them in this case from httpd.conf via

[PHP] Re: PATH INFO urls - replacing GET syntax

2002-02-25 Thread George Whiffen
Navid, The path info technique is moderately well known. I thought I'd seen an account of it at phpwizard.net, and I would have given you the link, but when I looked just now I couldn't find it. Anyway, this is roughly how it goes:- Background You can add all kinds of stuff at the end

Re: [PHP] zend studio 2.0

2002-02-25 Thread George Whiffen
Zeev, If you find that GUI tools are not overwhelmingly better for C++, Java product development, that does weaken the case for php studios even more. Why so? 1. Conciseness of php php is a high level application development tool so the code is, or at least, should mostly consist of highly

Re: [PHP] uploading files | how to avoid submitting twice?

2002-02-25 Thread Krzysztof Kocjan
In JavaScript define varaible which is global for this page, name it like page_submited, by default set it to false. On submit event set this variable to true and then from JavaScript submit form. When user second time will try to submit the form do nothig, just leave function code. Your

[PHP] Re: uploading files | how to avoid submitting twice?

2002-02-25 Thread George Whiffen
Jim Winstead wrote: Andy [EMAIL PROTECTED] wrote: Is there a way to redirect imediatelly to a waiting page? I tryed to redirect, but somehow the server is first uploading the file before something else happens. unfortunately, no. one thing you can do is use javascript to pop up a small

[PHP] Problem about Reading input from a Form

2002-02-25 Thread Kostas Karadamoglou
I can't take the variables $user and $address from the form to the php file. Below I have the code.When I test the examble I only see the html text but not the variables. Thank you THE HTML FORM html head titleListing 9.2 /title /head body form action=listing9.3.php input type=text name=user

RE: [PHP] Problem about Reading input from a Form

2002-02-25 Thread John Day
You need to add the POST method to your form tag form action=listing9.3.php method=post Cheers JD -Original Message- From: Kostas Karadamoglou [mailto:[EMAIL PROTECTED]] Sent: Monday, February 25, 2002 12:58 PM To: [EMAIL PROTECTED] Subject: [PHP] Problem about Reading input from

[PHP] GD - dynamic PNG generation

2002-02-25 Thread Conor McTernan
I'm currently using the GD extension to generate dynamic PNG's containing text, that should eventually be coming from a database. the deal is, it seems to take a long time, which is probably my own fault, seeing that I'm generating so much text. I am generating an image containing approx 160

Re: [PHP] Problem about Reading input from a Form

2002-02-25 Thread Matt Williams
On Monday 25 February 2002 12:57, Kostas Karadamoglou wrote: I can't take the variables $user and $address from the form to the php file. Below I have the code.When I test the examble I only see the html text but not the variables. Thank you Whic version of PHP are you using? If it's 4.1 I

Re: [PHP] passing variables - php.ini?

2002-02-25 Thread DL Neil
Matt, thanks a lot! works fine now i've changed register_globals. =great! just out of interest, what is the 'newer' way? is it using sessions etc, or something else i don't know about? or should i rtfm? ;) Yes it is quicker for me to say RTFM reference, although I wonder if it isn't

Re: [PHP] form submission error trapping

2002-02-25 Thread George Whiffen
Navid, $SCRIPT_NAME is sometimes a safer alternative than $PHP_SELF. The difference is that $PHP_SELF includes $PATH_INFO while $SCRIPT_NAME is just the name of the actual script running. http://www.php.net/manual/en/language.variables.predefined.php This becomes particularly important if you

[PHP] Re: PHP-JavaScript

2002-02-25 Thread George Whiffen
Mëòv î‰çîÎ òsyïn wrote: Is it posible to get values from javascript to PHP? Without having to post the variables.. Thanks //Mårten _ Chatta med vänner online, prova MSN Messenger: http://messenger.msn.se I'm not quite sure

[PHP] MM Dependency Problem

2002-02-25 Thread Geoff Caplan
Hi Trying to install Troels Arvin's php distro on Redhat 7.1 with the default Rackspace setup. When I try to install his mm package, I get the following error: rpm -Uvh mm-1.1.3-6.arvin.rh7.1.i586.rpm error: failed dependencies: libmm.so.11 is needed by apache-1.3.22-1.7.1 This occurs

RE: [PHP] Guestbook question

2002-02-25 Thread joakim . andersson
This example generates previous/next links but could be modified to make links to page 1, 2, 3, 4, etc. This code is not tested what so ever, but it should look something like this: - $rows_to_show = 10; $total_rows = mysql_num_rows(mysql_query(select name, post from guestbook order by

[PHP] Substr + Text + HTML - Problem

2002-02-25 Thread Sascha Ragtschaa
Hi, I still have one problem, which seems to be not solveable in a easy and smooth way: I have a text file like this: $text=This is a html extended textbrwhich needs to be cut after 100 charsbr; Than I do a substring to limit it to only 100 words (teaser-format): $teaser_1=substr($text, 0,

[PHP] Problem about Reading input from a Form

2002-02-25 Thread Kostas Karadamoglou
I put and the POST method but I have the same problem I don't know why, any ideas? Thank you From: John Day [EMAIL PROTECTED] To: Kostas Karadamoglou [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: RE: [PHP] Problem about Reading input from a Form Date: Mon, 25 Feb 2002 13:00:35 - You need

[PHP] permision denied when reading directory contents on fat32

2002-02-25 Thread narko
Hi all when i do directory listing with readfile('c:\some\dir\name') warning is generated Warning: readfile(c:\temp\) - Permission denied in c:\programming\apache\htdocs\downloads\update.php on line 15 filesystem is fat32 so permissions are fake configuration: php 406 on windows2000 is there

[PHP] Re: form submission error trapping

2002-02-25 Thread George Whiffen
Jason, You didn't mention Javascript checks. Personally I really dislike having to wati for a page to reload before finding out that I've just failed to fill in a field. The Javascript to do basic on-page checks is all pretty simple stuff. Of course this doesn't mean we can skip checking the

Re: [PHP] permision denied when reading directory contents on fat32

2002-02-25 Thread Matt Williams
On Monday 25 February 2002 16:02, narko wrote: when i do directory listing with readfile('c:\some\dir\name') warning is generated Warning: readfile(c:\temp\) - Permission denied in c:\programming\apache\htdocs\downloads\update.php on line 15 filesystem is fat32 so permissions are fake

RE: [PHP] Problem about Reading input from a Form

2002-02-25 Thread Ford, Mike [LSS]
-Original Message- From: Kostas Karadamoglou [mailto:[EMAIL PROTECTED]] Sent: 25 February 2002 14:09 I put and the POST method but I have the same problem I don't know why, any ideas? Thank you -Original Message- From: Kostas Karadamoglou [mailto:[EMAIL PROTECTED]]

[PHP] TEST-mail to list - no content - pls. ignore.

2002-02-25 Thread Frank
Just testing :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Problem about Reading input from a Form

2002-02-25 Thread Kostas Karadamoglou
I set the register_globals On in the php.ini file but when i do php.info it shows that is off.About the better way, How i can manipulate this variables, can you give me an exable. Thank you From: Ford, Mike [LSS] [EMAIL PROTECTED] To: 'Kostas Karadamoglou' [EMAIL PROTECTED],

[PHP] Return values?

2002-02-25 Thread Daniel Alsén
Hi, how do i display return values from functions? Ie i want to see whether mail() returns TRUE or FALSE. - D -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Return values?

2002-02-25 Thread Henrik Hansen
[EMAIL PROTECTED] (Daniel alsén) wrote: Hi, how do i display return values from functions? Ie i want to see whether mail() returns TRUE or FALSE. echo mail(...); shows the return value, then you can do: if (mail(...)) { //sent ok } else { //not sent } -- Henrik Hansen -- PHP

[PHP] using a mysql temporary table.

2002-02-25 Thread Jeff Bearer
Hello, I'm trying to use a temporary table in mySQL with PHP. First I tried to create a temporary table and then query it in the same script. But the table didn't persist to the second query in the PHP script. I found this knowledge base entry:

RE: [PHP] accessing flash files using php

2002-02-25 Thread SED
if you have a access to the action-script within the Flash-movie, write there a script like: gotoandplay(_root.myframe); and let the HTML-path be something like: myFlashMovie.swf?myframe=20 Regards, Sumarlidi Einar Dadason SED - Graphic Design

Re: [PHP] creating dropdown lists from fetched arrays.

2002-02-25 Thread William Lovaton
El dom, 24-02-2002 a las 17:39, Matthew Darcy escribió: Hi, I want to create a dropdown list with options from a table. ie HTML BODY ?php $sql_select = select * from dropdown_options; $results = mysql_query($sql_select); while ($row = mysql_fetch_array($results); { echo

Re: [PHP] Problem about Reading input from a Form

2002-02-25 Thread Stewart G.
Its not a register_globals issue. You must wrap $user and $address in php print statements rather than just in the html. Your name is ?= $name ?. Your address is ?= $address ?. That will work with either GET or POST. -- Stewart On Mon, 25 Feb 2002, Kostas Karadamoglou wrote: I set the

RE: [PHP] using a mysql temporary table.

2002-02-25 Thread Darren Gamble
Good day, I would have to dig around to find the appropriate note in the documentation, however I seem to recall reading that PHP's MySQL wrappers intentially prohibit a user from using semicolons- basically to prevent one's database from being hacked due to a poorly constructed query using user

RE: [PHP] Problem about Reading input from a Form

2002-02-25 Thread Ford, Mike [LSS]
-Original Message- From: Kostas Karadamoglou [mailto:[EMAIL PROTECTED]] Sent: 25 February 2002 14:35 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP] Problem about Reading input from a Form I set the register_globals On in the php.ini file but when i do php.info it

RE: [PHP] creating dropdown lists from fetched arrays.

2002-02-25 Thread Jon Haworth
while ($row = mysql_fetch_array($results){ ITYM while ($row = mysql_fetch_array ($results)) { Cheers Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] bouncy mail();

2002-02-25 Thread DigitalKoala
hi folks, if i set the return-path of a email to be [EMAIL PROTECTED], will bounced be returned here? thanks! dk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: form submission error trapping

2002-02-25 Thread Stewart G.
You do not need to use javascript. Simple create a form that submits to itself. And check the values, then reprint the form or redirect. Example: ?php if ($REQUEST_METHOD == POST) { $required = array (surname, age); $err_msg = ; while (list ($key) = each ($required)) { if

[PHP] register_shutdown_function

2002-02-25 Thread Stefan
hi, when i use register_shutdown_function in an included or required script, will the function be called after the processing of the included / required script, or after all scripts? i think they are called last, but i'm not sure ... does anyone know? + stefan -- PHP General Mailing List

[PHP] RE: php email question

2002-02-25 Thread Rick Emery
Terry: I forwarded this to php-general list. Perhaps they can answer your question -Original Message- From: Terry Romine [mailto:[EMAIL PROTECTED]] Sent: Monday, February 25, 2002 10:01 AM To: Subject: php email question I am trying to set up a MIME email that would include an HTML and

[PHP] Delete checked files

2002-02-25 Thread Nautilis
Hi everybody, I show a list of files that I upload to the user's folder using the next code: $path= ../clients/$user; $dir = opendir ($root); while ($archivo = readdir ($dir)) { $size = filesize($path/$filename); $size = ($size/1024); $size

Re: [PHP] Problem about Reading input from a Form

2002-02-25 Thread Stewart G.
OK, Im an idiot, glad I caught myself before someone else did. I didnt see the PHP print statments. :) Follow mikes advice on the register globals, and restarting the server. Or try using $HTTP_POST_VARS['user'] or $_POST['user']. -- Stewart On Mon, 25 Feb 2002, Stewart G. wrote: Its not

Re: [PHP] PHP Frames?

2002-02-25 Thread William Lovaton
You have to pass the params received in index.php to the rest of the pages in the frames... eg: http://mysite.com/index.php?s=1 so, the index.php script will looks something like this: frameset cols=* rows=25%,* border=1 frameborder=1 frame src=head.php? print ?s=$s ? name=menu; frame

Re: [PHP] using a mysql temporary table.

2002-02-25 Thread Jeff Bearer
DOH, I always figure it out after I post to the mailing list, the user didn't have create table privileges, that's why it didn't persist in my first attempt to do this with separate queries. On Mon, 2002-02-25 at 10:34, Jeff Bearer wrote: Hello, I'm trying to use a temporary table in mySQL

[PHP] Re: Has anyone created or called a Web Service from PHP? (SOAP)

2002-02-25 Thread George Whiffen
Yeah, From php, I've called paybox (http://www.paybox.de), which is a mobile phone based payment service. You exchange transactions with them via xml. They have their own cartridge for php, but it's just a perl rewrite and not very wonderful, so I rewrote most of it. The basic approach is

[PHP] Q: sessions in a switch block not working

2002-02-25 Thread Joe Rice
Hello, I'm hoping to get some help with a sessions problem i've ran into. track_vars is enabled and register_globals is off. i'm using PHP 4.0.6 and custom session handlers with ADODB connecting to mysql. at the top: session_start(); if (!isset($HTTP_SESSION_VARS[old_folder])) {

[PHP] Using sessions

2002-02-25 Thread Joel Alexandre
i'm having some trouble using sessions. first of all i have to use php 4.0.6. When i use $HTTP_SESSION_VARS, the session variable isn't being saved. for example: if(!isset($HTTP_SESSION_VARS['id'])){ $HTTP_SESSION_VARS['id'] = 0; } else{ $HTTP_SESSION_VARS['id']++; } echo

[PHP] Re: Delete checked files

2002-02-25 Thread Stefan
make a form, one delete-button and put a checkbox before every file. the checkbox's name is 'delete_file['.$filename.']' ... wehen pressed delete open a file which foreach's every entry in delete_file and unlink it. but be careful - this could be a huge security-hole ... + stefan Nautilis

[PHP] get out of frameset?

2002-02-25 Thread Jan Grafström
Hi! I have build a webshop inside a framset using sessions, and move around in my mainframe. I wonder how to get out of the mainframe when I logg out and destroy the session. It doesen´t work with: Header(Location: /naba/logout.php?.SID.); Can I use target or something with Location? Thanks in

[PHP] images with GD

2002-02-25 Thread Jackson Miller
I have been playing around with creating images in php using GD, and I have some questions for the list. How much more processing power does it take to create an image versus just sending the image? Aside from photo album type apps, how are people using GD? Is GD well suited for navigational

Re: [PHP] get out of frameset?

2002-02-25 Thread William Lovaton
try this: a href=logout.php target=_topLog out/a or a href=logout.php target=_parentLog out/a William El lun, 25-02-2002 a las 12:00, Jan Grafström escribió: Hi! I have build a webshop inside a framset using sessions, and move around in my mainframe. I wonder how to get out of the

RE: [PHP] bouncy mail();

2002-02-25 Thread Jon Haworth
if i set the return-path of a email to be [EMAIL PROTECTED], will bounced be returned here? You may want to investigate the Errors-To header as well (although you never know your luck - have you tried it?) Cheers Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] bouncy mail();

2002-02-25 Thread annazaraah
hi.. setting a fifth parameter with (-f ) works.. eg. mail($send_email,$subject,$body,$headers,[EMAIL PROTECTED]); thanks! - Original Message - From: Jon Haworth [EMAIL PROTECTED] Newsgroups: php.general To: 'DigitalKoala' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, February

[PHP] multilanguage support

2002-02-25 Thread ZILBER,LEONID (HP-NewJersey,ex1)
Hi, On our site, we have page with a form a user puts his/her information such as company name, givenname, etc. Currently, if a name entered is anything but English characters, PhP fails. For example, if I enter Norwegian characters lsløæ PhP returns the following errors: Last name

[PHP] Creating a installer...

2002-02-25 Thread Sascha Ragtschaa
Just curious to know if someone already has a approach on that... Are there any experiences on a installer for php projects? Sascha Ragtschaa -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Why Remember Session ??

2002-02-25 Thread Beta
BlankHI, i have a problem, When i close the browser the session is NOT killed, when i enter the page that requires login i can enter the page that was previosly entered via login (but i closed it). So it remembers session or cookies i don't know. How to prevent this, How to kill the session when

[PHP] getting the URL of a parent frame

2002-02-25 Thread Unger
Hello! How can i get the url of the main page with a script, that is running in a frame of that page? Thanks, Klaus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Using sessions

2002-02-25 Thread Kevin Stone
Just a guess but would using session_register(myvar); instead of registering directly to the global list make any difference? -Original Message- From: Joel Alexandre [mailto:[EMAIL PROTECTED]] Sent: Monday, February 25, 2002 9:39 AM To: Lista de PHP Subject: [PHP] Using sessions i'm

[PHP] Fetching the values from previous page

2002-02-25 Thread Batara Kesuma
Hi all, I have a page that post a lot of variables to the next page. It looks like: form action=next_page.php input type=text name=f_text1 input type=text name=f_text2 select name=f_multiple1[] multiple size=6 option value=1one option value=2two option value=3three /select input type=submit

Re: [PHP] writing files with php

2002-02-25 Thread Steven Walker
Try: SITE CHMOD 666 filename Also be sure that the file name in PHP matches the exact file name on disk. Steven J. Walker Walker Effects www.walkereffects.com [EMAIL PROTECTED] On Monday, February 25, 2002, at 12:36 AM, Sven Jacobs wrote: Hey How can I create files with php, I've tried

[PHP] Option for Serial or Comm port communication with PHP?

2002-02-25 Thread Ken Lancaster
Hi everyone, I was hoping to work on a hairbrained idea that would allow me to use php to control an X10 or other serial device (security system, irrigation controller, etc,). I have read several hints at using the fopen function to do serial communications but these posts were a year old. Is

Re: [PHP] Fetching the values from previous page

2002-02-25 Thread Steven Walker
Dear Batara, There are global variables that serve this purpose. You must have register_globals turned on: http://www.php.net/manual/en/language.variables.predefined.php $_POST An associative array of variables passed to the current script via the HTTP POST method. Automatically global in any

Re: [PHP] HTML Email Has Random '!'

2002-02-25 Thread Steven Walker
Thanks Martin, That was indeed the problem! I simply added a '\n' to the end of each line. And since html doesn't recognize it, it does no harm to the formatting. Steven J. Walker Walker Effects www.walkereffects.com [EMAIL PROTECTED] On Sunday, February 24, 2002, at 06:26 PM, Martin Towell

[PHP] Re: GD - dynamic PNG generation

2002-02-25 Thread Michael Kimsal
Holy cow that's a big graphic. 20 seconds does sound a tad long, but might not be depending on the server and memory - what are the specs? What might possibly speed it up a bit is to create multiple small versions first (20 one line graphics, for example) and build them all together at the

[PHP] PHP Forms

2002-02-25 Thread Chiew, Richard
I have the following php code to asks for a new student to fill out a registration form. Using php, take what the user enters and put it into the students table. But when i select * from students in mysql, it didn't show, why? HTML BODY bgColor=#ff ?php if ($submit) { // process

Re: [PHP] Re: GD - dynamic PNG generation

2002-02-25 Thread Conor McTernan
hmm, sounds like a good idea, i'll give it a try. it seems too, that if i dont break up my text, i.e. print all of it in one long line, it runs a lot faster i'm running this under Win2k, i got a PIII i dunno how many mhz(it's a college PC, and everything is locked down on me) but i'd guess at

Re: [PHP] Fetching the values from previous page

2002-02-25 Thread Batara Kesuma
On Mon, 25 Feb 2002 10:04:07 -0800 Steven Walker [EMAIL PROTECTED] wrote: Dear Batara, There are global variables that serve this purpose. You must have register_globals turned on: http://www.php.net/manual/en/language.variables.predefined.php $_POST An associative array of variables

[PHP] php - assigning date variables

2002-02-25 Thread Craig Westerman
$query = mysql_query(SELECT * FROM table WHERE date LIKE '%. $query .%'); // returns all items in database $query = 2001-01-01 mysql_query(SELECT * FROM table WHERE date LIKE '%. $query .%'); // returns all rows that have 2001-01-01 as the date What is proper way to define a variable to

[PHP] magic_quotes_gpc

2002-02-25 Thread Tim Thorburn
Hi, Is it possible to activate magic_quotes_gpc on a server running PHP 3.0.16 without the php.ini settings being physically altered? I ask became my hosting company is hesitant to activate it for some unknown reason - however without it I cannot enter information into a database for a

[PHP] Re: php - assigning date variables

2002-02-25 Thread Lerp
Hi there :) 1. mysql_query(SELECT * FROM table WHERE date ='$mydate'); # where date is same 2. mysql_query(SELECT * FROM table WHERE date '$mydate'); # where date is newer 3. mysql_query(SELECT * FROM table WHERE date '$mydate'); # where date is older 4.mysql_query(SELECT * FROM table

Re: [PHP] Why Remember Session ??

2002-02-25 Thread William Lovaton
Well, you have to destroy the session... see session_destroy() I never tried this, but you can call a PHP script on the onUnLoad event of the body page... so when the window is closed, it calls a given script and this script destroy the session. William. El lun, 25-02-2002 a las 12:29, Beta

[PHP] php, win32, xml bug?

2002-02-25 Thread Alexander Gräf
hi, when im using xsl:output encoding=ISO-8859-1 i get Sablotron error on line 1: unknown encoding 'ISO-8859-1' in on line ... but i think iso-8859-1, utf-8, etc. support must be build in. in addition, when i try to include an external xsl with xsl:include href=... / or a xml file with

RE: [PHP] Re: php - assigning date variables

2002-02-25 Thread Craig Westerman
Joe, I don't want to change the query itself like you show. I want to use this query $query = mysql_query(SELECT * FROM table WHERE date LIKE '%. $query .%'); and change only the variable $query = I use $query throughout script for other things. Thanks Craig [EMAIL PROTECTED]

Re: [PHP] PHP Forms

2002-02-25 Thread Jason Wong
On Tuesday 26 February 2002 02:31, Chiew, Richard wrote: I have the following php code to asks for a new student to fill out a registration form. Using php, take what the user enters and put it into the students table. But when i select * from students in mysql, it didn't show, why?

[PHP] when to use htmlspecialchars()

2002-02-25 Thread Erik Price
I was wondering if anyone could give me some advice in deciding the most appropriate time to use htmlspecialchars(): When user input is accepted and error-checked and ready to be inserted into the database? Or when user input is pulled from the database and ready to be displayed to the

Re: [PHP] PHP Forms

2002-02-25 Thread Stewart G.
Your submit button does not have name=submit set. So $submit is never being set. Also your html is full of errors, I would clean that up and put it thru a validator, try html tidy (www.w3c.org). And, make sure that formvalidation() is passing true, is that fails the form will never be

Re: [PHP] when to use htmlspecialchars()

2002-02-25 Thread Stewart G.
If you will be using the data elsewhere then use it when it is displayed on the screen, or your other program will have to parse it. It is a good idea to always run htmlspecialchars when outputting text to the browser that came from a form. -- Stewart On Mon, 25 Feb 2002, Erik Price wrote:

[PHP] downloading text files stored in database?

2002-02-25 Thread Lee P Reilly
Hi, I wonder if someone can point me in the direction of an example and / or some documentation for the following task: I have a DB table containing the name and contents of plain text files that users have uploaded. I have a facility which allows users to view these, but I would also like the

[PHP] Re: sometimes browser just recieves half the page

2002-02-25 Thread Gary
[EMAIL PROTECTED] wrote: Gary wrote: John Ericson wrote: Im programming a page where I have a java-tree-menu that gets generated from a db. The code works perfectly but sometimes when a browser reads the page I just get half of the page. I have noticed this behaivour on many different

[PHP] Apache is not parsing my php...sometimes...

2002-02-25 Thread Kevin Halverson
I've got an exceedingly wierd issue. I'm running a default installation of Linux Slackware 8.0. I've got the apache and mod_php modules installed. If I access my php document as follows, everything is parsed correctly: http://www.example.net/mypage.php However, if I access the page

[PHP] Re: SOAP status

2002-02-25 Thread Henrik Hansen
[EMAIL PROTECTED] (Robert Mena) wrote: Hi, I was wondering if anyone has developed web services using SOAP with php. I'd like to use it in a future project but was wondering which tools (classes, exemples) do we have and how stable are they. I think something is cooking in the PEAR

Re: [PHP] Converting arrays

2002-02-25 Thread Jason Lotito
$d = array(); $l = array(); $l[0] = array(1, -360, 1, CHICAGO); $l[1] = array(1, -420, 1, EDMONTON); $l[2] = array(1, -540, 1, FAIRBANKS); - Original Message - From: Gary [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 25, 2002 4:15 PM Subject: [PHP] Converting arrays

Re: [PHP] Converting arrays

2002-02-25 Thread Simon Willison
Gary wrote: Hi All, I am not too bad at building arrays in php but I need to convert a javascript form into php. How wuld I conver the small snippit here? var d = new Array(), l = new Array(); l[0] = new Array(1, -360, 1, CHICAGO); l[1] = new Array(1, -420, 1, EDMONTON); l[2] = new

[PHP] How many files can be in one directory?

2002-02-25 Thread Andy
Hi there, I am building a web application which is storing pictures. Is there a limit of files in one directory on LINUX systems? Perhaps it might end in a problem after having 3 files in the same dir? Performance issues ore something else. Has anybody got experiance on that? Thanx for

[PHP] Re: grab a file from location and save it to server

2002-02-25 Thread Henrik Hansen
[EMAIL PROTECTED] (Mike Krisher) wrote: Is there a way with PHP to grab a file from an external server (http://www.domain.com/image.jpg) and save/upload it onto my local server? use fopen() -- Henrik Hansen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] grab a file from location and save it to server

2002-02-25 Thread Lars Torben Wilson
On Mon, 2002-02-25 at 13:03, Mike Krisher wrote: Is there a way with PHP to grab a file from an external server (http://www.domain.com/image.jpg) and save/upload it onto my local server? Thanks in advance, __ Mike Krisher http://www.php.net/curl Cheers,

Re: [PHP] Converting arrays

2002-02-25 Thread Gary
Simon Willison wrote: Gary wrote: Hi All, I am not too bad at building arrays in php but I need to convert a javascript form into php. How wuld I conver the small snippit here? var d = new Array(), l = new Array(); l[0] = new Array(1, -360, 1, CHICAGO); l[1] = new Array(1, -420, 1,

Re: [PHP] How many files can be in one directory?

2002-02-25 Thread Thalis A. Kalfigopoulos
On Mon, 25 Feb 2002, Andy wrote: Hi there, I am building a web application which is storing pictures. Is there a limit of files in one directory on LINUX systems? Perhaps it might end in a problem after having 3 files in the same dir? Performance issues ore something else. The

[PHP] Freeing up locked table?

2002-02-25 Thread Jeff Lewis
Sometimes when using PHP/mySQL I have encountered a locked table. I have no idea why it occurs, I am not explicitly locking the tables but sometimes in phpmyadmin it says in use. Is there a way to unlock this table using PHP? Jeff -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] Freeing up locked table?

2002-02-25 Thread Hunter, Ray
This is mysql doing the locking, you will need to look into your mysql configuration. Ray Hunter Firmware Engineer ENTERASYS NETWORKS -Original Message- From: Jeff Lewis [mailto:[EMAIL PROTECTED]] Sent: Monday, February 25, 2002 2:41 PM To: [EMAIL PROTECTED] Subject: [PHP] Freeing up

Re: [PHP] downloading text files stored in database?

2002-02-25 Thread Ivan Balazs
In the download_file.php put a header() function which redirects the browser to the file, like header(Location: test.dat). After that it should show the dialog screen. Balazs On Mon, 25 Feb 2002, Lee P Reilly wrote: Hi, I wonder if someone can point me in the direction of an example and /

  1   2   >