Re: [PHP] voting using text files

2002-05-22 Thread Miguel Cruz
hing. Still can be defeated by the determined ballot-box stuffer, but so can everything else that doesn't require human verification of identity. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problem with install php 4.2.1

2002-05-22 Thread Miguel Cruz
clipped too soon - what was the actual error? (it'll be just before the beginning of what you pasted there) miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] UTF-8/FormMail headaches

2002-05-22 Thread Miguel Cruz
For detection of encoding, perhaps you could include a hidden field with some shibboleth characters. Research how they are transformed by various encodings, and then just look at them to figure out what for that the rest of the data is in. miguel On Wed, 22 May 2002, Peter Johansson wrote

RE: [PHP] Using the pdf tags.

2002-05-22 Thread Miguel Cruz
re back to normal. You can nest those as much as necessary, too. miguel On Wed, 22 May 2002, Jeff Hatcher wrote: > I understand the rotating of the page. So this is what I am doing: I am > building a page $pdf. If I rotate the page then everything on the page > rotates also. I need to

Re: [PHP] PHP version 4.2 and above

2002-05-23 Thread Miguel Cruz
hard to guess what you might have to do in order to get things going. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Can I delete / update line inside the file ?

2002-05-23 Thread Miguel Cruz
so they're all the same length (for instance, 100 characters). Then you can fseek() to $recordNum * 100 and write over records in place without having to rewrite the entire file. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] R: [PHP-WIN] Re: [PHP] PHP version 4.2 and above (fwd)

2002-05-23 Thread Miguel Cruz
-- Forwarded message -- Date: Thu, 23 May 2002 09:23:03 +0200 From: Alberto. Sartori <[EMAIL PROTECTED]> To: Miguel Cruz <[EMAIL PROTECTED]> Subject: R: [PHP-WIN] Re: [PHP] PHP version 4.2 and above In the extensions folder there's a file called "php_gd2.

Re: [PHP] tmpfile() errors?

2002-05-23 Thread Miguel Cruz
On Wed, 22 May 2002, Jas wrote: > $tmp_image = tmpfile(); > $output = fopen($tmp_image, "wb"); tmpfile() opens the file, so you don't need the fopen call. Just do $output = $tmpfile(); miguel -- PHP General Mailing List (http://www.php.net/) To uns

Re: [PHP] creating Image to display without saving it.

2002-05-23 Thread Miguel Cruz
#x27;Content-Type: image/png' or whatever) and output the image data. As for that hateful little popup thing, I think you can get rid of that by adding the attriute GALLERYIMG="NO" to your IMG tag. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php/mysql join query help

2002-05-23 Thread Miguel Cruz
The sooner you fix it, the less work you have to do down the road! miguel On Thu, 23 May 2002, ROBERT MCPEAK wrote: > I appreciate you help. I inherited the pipe-delimited data. I would > have done it as you suggested. > > Thanks. > > -Bob > > >>> "

Re: [PHP] Create table with varying results

2002-05-23 Thread Miguel Cruz
etter way to determine whether or not your program is generating the correct data. miguel On Thu, 23 May 2002, Tim Greenleaf wrote: > I have a search page that creates a dynamic table of results from MS SQL > Server. The table created on the web page does not always get created > properl

Re: [PHP] Unix time

2002-05-23 Thread Miguel Cruz
table; Not really sure where you've gone wrong because you show no code and don't say what the problem is. "something is not functioning" doesn't give us very much to go on. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] passing arrays

2002-05-23 Thread Miguel Cruz
in whatever.php: $myarray = unserialize($_GET['myarray']); miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Create table with varying results

2002-05-23 Thread Miguel Cruz
What is the specific nature of the errors in the HTML? Are random characters missing/inserted, or does it look like something that could happen as a result of unexpected program behavior at a higher level? miguel On Thu, 23 May 2002, Tim Greenleaf wrote: > The source HTML (PHP Output)

Re: [PHP] Annoying display problem

2002-05-23 Thread Miguel Cruz
The obvious answer would be a table. miguel On Thu, 23 May 2002, Andre Dubuc wrote: > PHP 4.1.2 + Apache 1.3.23 + PostgreSQL 7.2 > > I've put off trying to figure out how to accomplish a fairly simple display > problem. It's probably so simple, that I keep missing it

Re: [PHP] Create table with varying results

2002-05-23 Thread Miguel Cruz
Like John, I tried several times (both Mac and Windows IE) and never got anything funny. How many times do you usually have to refresh before you see the problem? (I think I viewed it 4 times). miguel On Thu, 23 May 2002, Tim Greenleaf wrote: > The errors appear to be the result of stri

Re: [PHP] Full-Duplex communication

2002-05-23 Thread Miguel Cruz
P and redirect to it? It's basically no work. Handcrafting packets for this purpose is like building a car out of paper clips and cat hair because the car that's freely available to you is red - and you don't like the color red because your old girlfriend used to wear it a lot. migu

RE: [PHP] How to implode with carraige return ?

2002-05-23 Thread Miguel Cruz
then you'll have to convert the line breaks yourself (or view the file using a tool that's smart enough not to care, such as most programmer's editors). miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Client user info

2002-05-24 Thread Miguel Cruz
ser version, platform, preferred language and encoding, IP address, etc.) but not anything more personal than that. With JavaScript you might be able to fish out a bit more and send it back to your PHP program. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://

Re: [PHP] Update SQL

2002-05-24 Thread Miguel Cruz
se, and I doubt this in particular will be the straw that breaks the camel's back. Just make sure you have a plan for moving to multiple database servers, and that plan is ready long before the traffic has built up to that level - or you're going to be in real trouble. miguel

Re: [PHP] sorting array in predefined order - uksort

2002-05-24 Thread Miguel Cruz
Your comparison function doesn't compare anything. You should look at $a and $b and return an answer indicating which one comes first. If you want $a to come before $b, return -1. If they're the same, return 0. If you want $a to come after $b in the sorted list, return 1. miguel

Re: [PHP] Confusion with UNIX date/time

2002-05-24 Thread Miguel Cruz
On Fri, 24 May 2002 [EMAIL PROTECTED] wrote: > What php functions should I use to convert a UNIX timestamp to a human - > legible format and back again? Human -> Unix: strtotime() Unix -> Human: date() miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] type="file"

2002-05-24 Thread Miguel Cruz
owse button. By developing a browser that sends it to the server. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re: [PHP] Full-Duplex communication

2002-05-24 Thread Miguel Cruz
with Apache (at least on Unix). miguel On 24 May 2002, Vinod Panicker wrote: > Let me explain my project more in detail. > > This system is an Instant messaging system, with the backed > running on apache / php / mysql. The front end client is a COM > component that comm

Re: [PHP] Using php to parse mail

2002-05-24 Thread Miguel Cruz
it(99); that tells qmail that you're done with the message and never want to see it again. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] image_create(), header.....

2002-05-24 Thread Miguel Cruz
You need to put the ob_start() call at the very beginning of your script, not inside that function. You have to turn output buffering on before ANY output is generated, if you want to be able to send headers later on. miguel On Fri, 24 May 2002, Gerard Samuel wrote: > Im trying to use dyna

Re: [PHP] Problem with if statement and while loops

2002-05-24 Thread Miguel Cruz
y for any number of queries so long as they are directed at the same server and rely on the same user credentials. You can query different databases, etc., on the same server with the same link identifier, for instance. miguel -- PHP General Mailing List (http://www.php.net/) To unsub

Re: [PHP] IMPORTANT, wanna know about MY PROJECT SALE !!!

2002-05-24 Thread Miguel Cruz
exchange of projects I think you're confusing this with the ASP world, where every collection of three lines of buggy code is available for sale. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] adjusting time() to correct for time zones

2002-05-24 Thread Miguel Cruz
lled l_time() that does the calculation for you? Stick it in an include file, do a little searchin'-and-replacin', and you're set. One day when you get ambitious you can enhance the l_time() function to look for a cookie that identifies the current user's time zone and calculates

Re: [PHP] HTML and Text emails

2002-05-24 Thread Miguel Cruz
text/enriched, what have you. The MUA decides which format it prefers. Bear in mind that some fairly-common MUAs (either Lotus Notes or Groupwise springs to mind) can't decipher these messages and just show the whole thing. So make sure the text/plain part comes first. miguel -- PH

Re: [PHP] adjusting time() to correct for time zones

2002-05-24 Thread Miguel Cruz
- it doesn't help you very much to know that someone's coming from a Cable & Wireless IP. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Using php to parse mail

2002-05-24 Thread Miguel Cruz
On Fri, 24 May 2002, Cedric Fontaine wrote: > MC> qmail uses the exit code to determine what happened to the message. Try > MC> ending your script with exit(99); that tells qmail that you're done with > MC> the message and never want to see it again. > > MC> mig

Re: [PHP] IMAGE CREATE() header problem

2002-05-24 Thread Miguel Cruz
On Sat, 25 May 2002, Dani wrote: > I have got this script : > //setup image > $height = 200; > $width = 200; > > $im = ImageCreate($width,$height); > $white = ImageColorAllocate($im, 255, 255, 255); > $black = ImageColorAllocate($im, 0, 0, 0); > > //Draw on image > ImageFill($im, 0, 0, $black);

Re: [PHP] How is SESSION_ID passed?

2002-05-25 Thread Miguel Cruz
are thinking incorrectly; there's no particular difference. It's prettier by cookie, but doesn't work for everyone, so it's easiest to just use the built-in transparent session ID functionality as described in the manual. Most people get cookies, and those for whom that doesn't

Re: [PHP] Fwd: Popup window from form on php page

2002-05-25 Thread Miguel Cruz
On Fri, 24 May 2002, David Bourne wrote: > The code (in Page1.php): > > > > > > > seems to work with the OpenWindow function in a JS header. > > Any obvious problems with this? Seems pretty sensible. miguel -- PHP General Mailing List (http://www.php.net

Re: [PHP] Need some advice concerning forms (multi select pulldown)and arrays

2002-05-25 Thread Miguel Cruz
SELF']" to "$PHP_SELF". --- 'dog', 2 => 'cat', 3 => 'mouse', 4 => 'frog'); if (is_array($_REQUEST['animals'])) { print 'You chose:'; foreach ($_REQUEST['animals

Re: [PHP] Adding Sessions Secretly....

2002-05-25 Thread Miguel Cruz
atelite icon to > download an mp3. I'm pretty sure they just have a JavaScript that sends a request to the server. The page that it requests can of course do anything it wants with session data. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Need some advice concerning forms (multi select pulldown)and arrays

2002-05-25 Thread Miguel Cruz
look like this: foreach ($choices as $id => $name) print '$name"; (I added an is_array to make sure we don't send a null value as the second argument to in_array). miguel On Sat, 25 May 2002, Miguel Cruz wrote: > Have a play with this little program - it should demon

Re: [PHP] Need some advice concerning forms (multi select pulldown)and arrays

2002-05-26 Thread Miguel Cruz
On Sun, 26 May 2002, Victor SpÄng Arthursson wrote: > change this to: > and this to: because you want animals[2] and animals[4] to be arrays, not scalar values. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.p

Re: [PHP] regex help

2002-05-26 Thread Miguel Cruz
except the final one) to end with a dash (e.g., "test-.example.com"). 2) It will not allow a one-character final component. miguel On Sun, 26 May 2002, Jeff Field wrote: > This is not really specific to PHP (although the information might be useful > for all that form v

Re: [PHP] Parse Error(Newbie)

2002-05-26 Thread Miguel Cruz
your line could have been written in any of the following ways: $query = "select * from news WHERE id = '{$_get['id']}'"; $query = "select * from news WHERE id = \"{$_get['id']}\""; $query = 'select * from news WHERE id = "' . $_get['id'] . '"'; miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Ora_Fetch_Into function problem

2002-05-26 Thread Miguel Cruz
Check the return values from your ora_logon, ora_open, ora_parse, and ora_exec calls to see whether they worked. That way you can know at which stage it stopped working. miguel On Mon, 27 May 2002, Michael P. Carel wrote: > Finally i've set-up my AIX server with PHP and oracle support

Re: [PHP] 'ucfirst' function for text area strings?

2002-05-28 Thread Miguel Cruz
; reading a string and breaking it apart at punctuation marks? What are you going to do about abbreviations? "The General Electric Corp. was represented at the meeting." miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Dates

2002-05-28 Thread Miguel Cruz
On Tue, 28 May 2002, Jeroen Timmers wrote: > 2002-10-9 and 2002-11-16 > > Is there a function to see how many day's between thore date's is? (strtotime($date1) - strtotime($date2)) / 86400 miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Re: mail() source code

2002-05-28 Thread Miguel Cruz
ot; address, or the "return-path" address, etc. that are included >> with mail()'s 4th parameter. > > The 4th parameter is not for putting headers but rather to pass > arguments to sendmail. That's the 5th parameter, I think. The 4th is for headers. miguel

Re: [PHP] Variable vs Constant

2002-05-28 Thread Miguel Cruz
Wouldn't it be a lot easier to do that with arrays? miguel On Tue, 28 May 2002, HPS wrote: > i am now working on a project which was developed by some others b4. > As the project is a multi-language enabled, there is a PHP file (language > file) which has all the

Re: [PHP] (Unlink(file) == rm file) ? (ignore this mail):(explaindiffs);

2002-05-28 Thread Miguel Cruz
in any different way? It just calls the OS unlink() function, which is presumably what rm does. Actually I just did a trace and that's exactly what rm does. rm of course has a whole lot of extra options, but they just affect which files it acts on. miguel -- PHP General Mailing

Re: [PHP] function return

2002-05-28 Thread Miguel Cruz
rn array($some_value, $max); } list($x, $y) = myFunction($_SERVER); echo "returned $x and $y"; miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Thread safe

2002-05-28 Thread Miguel Cruz
the table the new cno plus my name) > insert into mytable ($r,'myname'); > } > How to do this and make sure its thread safe? More of a database issue. "select ... for update" is a good starting point as you search the manual of your particular database platform.

Re: [PHP] Mailing Archieve

2002-05-28 Thread Miguel Cruz
ith? miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Missing functions??

2002-05-28 Thread Miguel Cruz
> > I'm getting some base php functions that seem to be missing, such as: > > bindtextdomain > textdomain Those are only available if PHP was built with gettext support, which is optional. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php's variables & javascript

2002-05-28 Thread Miguel Cruz
> > (I am calling that php file as below) > http://localhost/Aksu/web/getimage.php?resim=K00.jpg > > But explore gives me an javascript error that syntax error. Why? and how can > do my purpose? For one thing, "wdth" is a misspelling of "width". What do you

Re: [PHP] Multiple variables

2002-05-28 Thread Miguel Cruz
gt; > for($i=1;$i<10;$i++) > { > if(empty("Text"+$i)) > { > do something... > } > } The easiest approach would be to name your boxes like this: and so on. Then you can just loop through the $_REQUEST['tex

RE: [PHP] Efficient PHP

2002-05-28 Thread Miguel Cruz
But I wouldn't bet my children on advice found there. I just glanced at it quickly but it was riddled with errors large and small. miguel On Tue, 28 May 2002, SP wrote: > Here's an article you might want to read > http://phplens.com/lens/php-book/optimizing-d

RE: [PHP] Efficient PHP

2002-05-28 Thread Miguel Cruz
Though on further examination the tweaks section at the end seems good and solid. I'd only gotten to the OS portion when I barked out my complaint. miguel On Tue, 28 May 2002, Miguel Cruz wrote: > But I wouldn't bet my children on advice found there. I just glanced at it > qu

Re: [PHP] Thread safe

2002-05-28 Thread Miguel Cruz
If you use the database mechanism to lock the table during the transaction, then the second simultaneous invocation of your PHP program will wait (a tiny fraction of a second) until the first one is done. miguel On Wed, 29 May 2002, r wrote: > since only my one program was accessing

Re: [PHP] .php extension

2002-05-28 Thread Miguel Cruz
On Tue, 28 May 2002, Luis Miguel N. Tavora wrote: > As far as I understood it, for a server process the php > code, the file must have the extension .php > > But then, the apache server (for example) requires a file > index.html to be placed in the directory public_html/ ...

Re: [PHP] PHP new super globals or something else??

2002-05-28 Thread Miguel Cruz
ause the script is still looking for 'foo' and 'bar' in > the $_GET array. So in my case, it seems as if php is not behaving as > it should. You could use $_REQUEST, which include both get and post variables (as well as cookies, but that shouldn't matter unless you

Re: [PHP] eregi() against a binary file?

2002-05-29 Thread Miguel Cruz
According to the manual, the ereg functions are not binary safe. The superior-in-every-way preg functions are. Perhaps you could try using preg_grep instead. $result = preg_grep('/' . preg_quote($imagename) . '/', $file); You may find that strstr or something is even simp

Re: [PHP] Login determines content on page

2002-05-29 Thread Miguel Cruz
well as on PHP development web sites from here to Vladivostok. Then all you have to do is fall through from your login function to your main page, which looks at the login credentials to determine which data to display. miguel -- PHP General Mailing List (http://www.php.net/) To unsubsc

Re: [PHP] PHP command for redirect?

2002-05-29 Thread Miguel Cruz
7;t want to generate any output if you're going to redirect the user to another page. Do all your checking silently, then either redirect them somewhere else, or start sending output as normal, depending on the result of your checks. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] can I use regex for this?

2002-05-29 Thread Miguel Cruz
If it's just a date you want to convert, why not use the functions already provided? $output = date('d-m-y', strtotime($input)); miguel On Wed, 29 May 2002, Martin Towell wrote: > I have a string which is a date - eg "01-JUL-02" > I want to convert the month b

Re: [PHP] Searching Many Text Documents

2002-05-29 Thread Miguel Cruz
there's something already written that can do it for you. For starters, have a look at: http://www.mnogosearch.ru/ miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Periods with UNIX timestamps

2002-05-29 Thread Miguel Cruz
ecades in a century. Remember, this information is all very confidential, which is probably why you couldn't find it anywhere and were never taught it in school and don't own any clocks or calendars. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] unsetting function

2002-05-29 Thread Miguel Cruz
a variable, and just change that when you want the function called to change. ' . $mathfunc(5, 3); // now we want to replace mathfunc so it subtracts instead of adds: $mathfunc = 'subtract'; print '' . $mathfunc(5, 3); ?> miguel -- PHP General Mailing List

Re: [PHP] Warning: Cannot add header information - headers alreadysent by

2002-05-29 Thread Miguel Cruz
This is the number one FAQ in this list. Check the archives from any day you like and you'll see the answer. miguel On Thu, 30 May 2002, Anton Heryato wrote: > i have one function name deleteCookees that have this error message > > Warning: Cannot add header information - header

Re: [PHP] using stdin in php

2002-05-29 Thread Miguel Cruz
ctly > > $cmd = "echo $newpassword | passwd --stdin $user"; > return(exec($cmd)); In order to feed to stdin on another process, I think you need to use this: http://php.net/popen miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Warning: Cannot add header information - headers alreadysent by

2002-05-29 Thread Miguel Cruz
Lines 1, 2, and 3 are sending text to the browser. You need to do your header operations first, THEN output the HTML. Or put at the VERY beginning of the file (before any HTML, before any blank space, before anything else). miguel On Thu, 30 May 2002, Anton Heryato wrote: > this scr

Re: [PHP] Undefined variables

2002-05-30 Thread Miguel Cruz
On Thu, 30 May 2002, Crane, Christopher wrote: > if ($Task == "ShowVersion") { function ShowVersion(); } > elseif ($Task == "GetData") { function GetData(); print "$DataOutput"; } > elseif ($Task == "CreateImage") { function CreateImage(); } > else { print "Incorrect Variable or no Variable Suppli

Re: [PHP] Slow Access to SMTP is Causing Slow mail()

2002-05-30 Thread Miguel Cruz
your machine's IP address has a PTR record. It's probably trying to look up your machine's name to stick in the Received: headers, and timing out. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] fdup & Pipes? (New Thread)

2002-05-30 Thread Miguel Cruz
d a combination of pipes & the fdup function. > > Is it possible to emulate this behavior in PHP? You may be able to get a bi-directional pipe out of popen. Depends on your particular OS. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP commands inside a MySQL Database

2002-05-30 Thread Miguel Cruz
On Thu, 30 May 2002, Taylor York wrote: > I am inserting html/php code into a database that would look something like > default page > > now the problem is, I am getting the field, title, and echoing as so (after > using mysql_fetch_array and extract > > echo "$title\n"; > > the acual title of

Re: [PHP] Newbie redirect problem

2002-05-30 Thread Miguel Cruz
, just not very practical. > > Is there any way to do this? The easiest thing is probably to rework your login mechanism so that it can just be included at the top of each PHP file. That way all your variables remain in context - you can just post them from page to page in a big serialized array,

Re: [PHP] Creating IMAP accounts

2002-05-30 Thread Miguel Cruz
easons, but it's probably not an open choice at this point. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Design Problem

2002-05-30 Thread Miguel Cruz
On Thu, 30 May 2002 [EMAIL PROTECTED] wrote: > search engine spiders will usually disregard the search string of a URL, > i.e. everything after and including the "?" character. Not sure about the others, but Google does follow GET args. miguel -- PHP General Mailing List (ht

Re: [PHP] newbie: cron jobs

2002-05-30 Thread Miguel Cruz
crontab -e You'd have to write a pretty clever script. SSH in (or telnet if you absolutely must). miguel On Thu, 30 May 2002, Edgard Berendsen wrote: > but how can I acces cron -e? > with a php script or I have to use telnet? > > "Cal Evans" <[EMAIL PROTECT

Re: [PHP] user auth

2002-05-30 Thread Miguel Cruz
on variable at the top of each page. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] pdf with POST

2002-05-31 Thread Miguel Cruz
; solution) to use a POST method to get a pdf made on the fly ? This isn't very helpful, but I can tell you that I have a lot of little programs that generate PDFs from POSTed form data (one I use to print my personal envelopes, things like that) and they all work fine. So it's de

Re: [PHP] Is PHP used by U.S. Government? By U.S. DoD?

2002-05-31 Thread Miguel Cruz
y_doc.php?docid=2129&group_id=1 http://housing.cnfj.navy.mil/waitinglist.php miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Decisions and Issues

2002-05-31 Thread Miguel Cruz
emulated in the abstraction layer). As for Linux, Apache, and PHP, there's no limit to the transaction volume you can handle with even rudimentary load-balancing tactics, so that's nothing to worry about. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] bzip/zlib question

2002-05-31 Thread Miguel Cruz
s & ease of use? File size: bzip2 wins, hands down Client availability: zlib wins, hands down Easy of use: tie. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Run php function with user click

2002-05-31 Thread Miguel Cruz
rogram on your server. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] gd project question

2002-05-31 Thread Miguel Cruz
this? http://www.google.com/search?hl=en&lr=&q=%22trigonometry+tutorial%22 miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Data from "multipart/form-data" goes missing

2002-03-14 Thread Miguel Cruz
gth of the string I type into the text box. The build on this server (PHP 4.1.2) is extremely simple: ./configure --with-apache=../apache_1.2.23 --with-mysql Apache is built with PHP and mod_rewrite. Any ideas? miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

[PHP] Data from "multipart/form-data" discarded

2002-03-14 Thread Miguel Cruz
all other servers, with apparently identical configuration, form data appears normally. The build on this server (PHP 4.1.2) is extremely simple: ./configure --with-apache=../apache_1.2.23 --with-mysql Any ideas? miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

Re: [PHP] how to seek and convert an email address to mailto link

2002-03-19 Thread Miguel Cruz
; Foobar foobar mailto:[EMAIL PROTECTED]";>[EMAIL PROTECTED] foobar foobar. (warning: untested) $newstr = preg_replace('/\b(\S+@\S+)\b/', 'mailto:\1";>\1', $oldstr); Take the time to learn Perl-style regular expressions. You can practically write

Re: [PHP] Problem with strtotime() and 2002-03-31

2002-03-19 Thread Miguel Cruz
ale that's a daylight savings time transition, resulting in a 25-hour day, so that adding 24 hours to midnight doesn't bring you into the next day? Try explicitly setting the time to noon and then working from there. miguel -- PHP General Mailing List (http://www.php.net/) T

Re: [PHP] building a control panel in php

2002-03-19 Thread Miguel Cruz
download Webmin from here (http://www.webmin.com/), then change all the comments so it says you wrote it. Seriously, you might want to look into that because a lot of people have already put a lot of work into making something fairly comprehensive. miguel -- PHP General Mailing List (http://ww

Re: [PHP] Escaping Quotes in a String and Ending With A Quote

2002-03-19 Thread Miguel Cruz
> > I get a parse error on the line where the string is. Very simple problem, I > just can't seem to solve it though. Maybe I'm going crazy =) There's nothing wrong with that PHP code. Are you sure you really copied and pasted it directly from the problem code - or th

Re: [PHP] PHP - Forced header downloads

2002-03-19 Thread Miguel Cruz
olen liberally from yours): miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Escaping Quotes in a String and Ending With A Quote

2002-03-19 Thread Miguel Cruz
On Tue, 19 Mar 2002, Dr. Shim wrote: > Hmmm. How about this? > > echo " . "\">"; You're concatenating "echo $PHP_SELF" rather than just $PHP_SELF, which isn't necessarily helping. But just between me and you, life would be a lot easier if

Re: [PHP] Escaping Quotes in a String and Ending With A Quote

2002-03-19 Thread Miguel Cruz
Are you inside a function, having neglected to do global $PHP_SELF; ? miguel On Tue, 19 Mar 2002, Dr. Shim wrote: > Strangley enough, $PHP_SELF is empty. Nothing appears when I do it the way > Bob and you suggested, the "action" property equals "". > >

RE: [PHP] Case non-sensitive replacing with str_replace?

2002-03-19 Thread Miguel Cruz
stead of: preg_replace('/abc/', 'def', $x); use preg_replace('/abc/i', 'def', $x); miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mail()

2002-03-19 Thread Miguel Cruz
e's a problem with the default configuration of sendmail on OSX 10.1.3. Either chmod g-w / or uncomment your DontBlameSendmail line in /etc/mail/sendmail.cf and make it look like this: O DontBlameSendmail=GroupWritableDirPathSafe miguel -- PHP General Mailing List (http://www.ph

Re: [PHP] mail()

2002-03-19 Thread Miguel Cruz
om line is also mangled. You should have: $from = "From: [EMAIL PROTECTED]"; That's going in the additional headers section, in which you need to explicitly label the fields, so you need the "From:" part. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problem with posting

2002-03-20 Thread Miguel Cruz
at provides the voting form, generate a unique random number and store it in your database. Send that number as a hidden variable on the voting form. When the form is submitted, look up the number in the database and store their vote alongside it. That way, if they resubmit, it just replace

Re: [PHP] Accessing form variables

2002-03-20 Thread Miguel Cruz
you'll get it back as an array with one element for each item the user selects: blah blah Will get you an array in $_REQUEST['colors'] . miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Multipage form

2002-03-20 Thread Miguel Cruz
st time, but well worth it, because your complex forms will be more robust than most. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] for loop problem

2002-03-20 Thread Miguel Cruz
$t = mysql_query("SELECT * from AddExisting"); while ($r = mysql_fetch_assoc($t)) { $message = "Dear {$r[name]},\n{$message}"; mail ($r[email_address], 'hello', $message, 'From: [EMAIL PROTECTED]'); } } miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql update help needed

2002-03-20 Thread Miguel Cruz
x27;. $sql = "update mytable set img_url='$img_url', etc. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

<    2   3   4   5   6   7   8   9   10   >