[PHP] php and caching

2002-11-24 Thread Alex
Hi, I have a few pages on my site that contains dynamical content that must be "processed" each time the page is loaded. But I'd also want to allow the users to be able to use the back button of their browser to go back to forms and that these forms still contain the information they entered (inst

[PHP] Re: php and caching

2002-11-24 Thread Alex
his problem? Thanks alot! "Alex" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > I have a few pages on my site that contains dynamical content that must be > "processed" each time the page is loaded. But I'

[PHP] Re: php and caching

2002-11-24 Thread Alex
If the page itself is never cached to force dynamic php pages to always be "fresh", is there a way to cache only images to reduce bandwidth usage? Thanks, (and thanks for all your good advices!) "Alex" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">new

[PHP] Re: $object->function($parameter)->function();

2003-01-25 Thread Alex
If I am not mistaken, this feature is coming in php5, but is not yet in php4 "Chris McCluskey" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED].. . Hi there, I've been using PHP for about 2 years now and absolutely love it! Our company uses it as our main development

[PHP] Re: CRON?

2003-01-25 Thread Alex
Well, if you really wanted to, you could create a php script, and then have a meta refresh tag set to refresh the page whenever you want, and then just leave the page open in your browser :p "Nicole" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Does anyone ha

[PHP] Re: PHP vs Perl for system scripts (non-web)

2003-01-27 Thread Alex
If you like php better, i'd stick with it; however, for almost all of my un-web-related stuff, i use perl. i'm pretty sure they would run at about the same speeds/efficency. "Paul Chvostek" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > I have to write a swa

[PHP] perl regex help

2003-02-01 Thread Alex
I will be quick. if . matches any character except newline (by default) then what can i use to match any character INCLUDING newline? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] open_basedir

2003-03-12 Thread Alex
My host currently has open_basedir() enabled, and unfortunately, they don't know how to disable it :p I'd like open_basedir() disabled because it would make my life easier, I can hide certain files underneath the web root. So I've done some quick research. I'm looking at the ini_set() function: h

Re: [PHP] open_basedir

2003-03-12 Thread Alex
the php.ini file is also not user configurable. I think i found the place in my own php.ini file though where the open_basedir value would be changed though :/ "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > My host currently has open_basedir() enabled, and unfortu

Re: [PHP] Threading objects

2003-03-13 Thread alex
As i rember apache can not handle a threading php ... if you whant threads you need to run php from command prompt in a linux/unix enviroment(windows dosen't support threads i I'm not wrong).Look for a threads project in PEAR(http://pear.php.net/). Hope it helps, Best regards, Ale

[PHP] fsockopen/curl failure, ipv6 warning??

2003-07-06 Thread alex
8 install in /usr/local no matter what I do.) Thanks in advance... Alex - - - - - - - - - - af at ax-im dot com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[3]: [PHP] print vs heredoc

2003-07-08 Thread alex
Hi. I'm surprised you haven't been jumped on already for this one. Variables in double-quoted and heredoc-style strings are expanded; variables in single-quoted strings aren't. I refer you to the excellent PHP manual -- one of the first pages you should absorb... http://www.php.net/manual/en/l

[PHP] ftp_rawlist problems

2002-11-01 Thread Alex
you have to say :). - Alex -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] about @ in php

2002-11-04 Thread Alex
this day ,I read somebody else's program in php,found that in that one's page ,with such as "if (!($recordnum=@pg_numrows($rs))){ echo 'ÃüÁî´¦ÀíÍê±Ï£¡'; " using,I don't know how the @ refer to.somebody help me?thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vis

[PHP] Re: Php search results

2002-11-22 Thread Alex
you could also use regular expressions, but php isn't perl, so good luck on that one :p. "Philip Hallstrom" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > You could use strstr() to find the index location of the > string searched for in FIELD. Then use substr

[PHP] LWP::Parallel in PHP

2003-08-28 Thread Alex
cript 5 times. I am looking mostly for PHP solutions. (Hope they exist :) Have anybody faced with such problem? Any ideas/suggestions will be appreciated. Alex. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] dl() problem

2003-09-05 Thread Alex
n , i've tried setting the extension_dir in a .htaccess file.. still , the same result.. i have developed a small module , but I can't use it.. my site is hosted on an service provider , and they don't allow me to copy the module to extension_dir or to change the php.ini.. what should I do ? Thanks Alex

[PHP] download queue

2003-09-29 Thread Alex
I'm considering start up a small download site with the large amount of excess bandwith I have on my site, however I thought it would be cool to put some sort of download queue up (you know, so all my bandwith doesn't get eaten up when 500 random people suddenly decide to download a 500meg fil

[PHP] Re: Random Numbers..

2003-12-06 Thread Alex
Theheadsage wrote: Hey, I've got a script which used to generate a random quote. It worked fine untill this problem occurred.. Say we have 4 quotes with QuoteID's of 1 through to 4 The script would grab a number of rows, and generate a random number between 1 and this value (being 4 in this case)

[PHP] Re: Export MySQL

2003-12-31 Thread Alex
Sheawh wrote: it may be a bit out of topic, but can anyone teach me how to export a MySQL database? phpmyadmin does a very nice job of dumping a mySQL database. in phpmyadmin, go to the database you want to dump and click on Export (that's what it's called in 2.5.4 anyway) -- PHP General Mailing

[PHP] Re: PHP New Year

2004-01-01 Thread Alex
Larry Brown wrote: Happy New year all! Looking forward to bigger better things this year. Larry yep, like php5 :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Extended characters passed in URL

2004-01-20 Thread Alex
Hi people, I've installed Apache2, php 3.0.17 on Windows 2000 machine. Everything works fine except when I call my script with some extended characters (from Central European charset - ones with diacritics which should be encoded) in variable values in URL, I get "Internal Server Error" message. I

[PHP] Re: Extended characters passed in URL

2004-01-21 Thread Alex
One more note - the script is called from a classic hyperlink cannot change that. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] I want this magic directory

2001-03-14 Thread Alex
I just want every customer on my site get his own unique id as his directory name but the pages requested are all processed by the root. Such as: customer1's url is http://www.mysite.com/2000123/ customer2's url is http://www.mysite.com/2000124/

[PHP] session & obect : session_start and require_once - Incomplete object

2002-01-08 Thread Alex
*** Any idea about standard object casting in PHP ? The process between class def and session starting if my session is auto started (change in my php.ini) results in an error. Thus I can affirm there is a bug in the session handling of PHP :"It is not possible to store object in session if we u

[PHP] format date

2002-04-16 Thread Alex
I just started with php and am trying to display a query result for a date field as mm/dd/ instead of mysql's -mm-dd. I looked through some books and found the use of DATE_FORMAT to covert the dates. Is there any other way to format the date? Thanks My script looks like this: $mont

[PHP] can't get it to work

2002-04-03 Thread Alex
I'm trying to write code that will return all records found between certain dates(e.g. 2001-01-30 through 2002-01-30). I created a html form with pull down menus for both dates but when I try to run it I get a parse error and can't figure out what's wrong. Thanks, Alex Here

Re: [PHP] can't get it to work

2002-04-03 Thread Alex
That did the trick. Thank you "Miguel Cruz" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Wed, 3 Apr 2002, Alex wrote: > > I'm trying to write code that will return all records found between certain > >

Re: [PHP] Formatting timestamp date in MySQL

2002-04-09 Thread Alex
Hello, I just started with php and I'm also trying to format mysql date -mm-dd into mm/dd/. I looked through some books and they describe the use of DATE_FORMAT to covert the dates. Is there any other way to format the date? Thanks Alex My script looks like this: $mo

[PHP] Patch: Specify temp directory

2013-01-18 Thread ALeX
would really appreciate if the patch would be included and hopefully also some other people. Regards, ALeX. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Sorting an array

2011-03-01 Thread Alex
That or do it in mysql before you get the data back, its also pretty good at sorting, you know ;) -- Sent from my Android phone with K-9 Mail. Please excuse my brevity. FeIn wrote: Also check http://www.php.net/manual/en/function.natsort.php On Tue, Mar 1, 2011 at 1:39 PM, David Robley wrote

Re: [PHP] executing external php script

2011-03-02 Thread Alex
The exec function should help you there -- Sent from my Android phone with K-9 Mail. Please excuse my brevity. "ƒAƒ‹ƒxƒ‹ƒg" wrote: hi! what I want to do is execute php script and don't wait for output. found something like this_ > /dev/null 2>&1 &`;

Re: [PHP] Help needed with mysql import

2011-03-02 Thread Alex
You shouldn't have a default value in an auto increment field. You can set AUTO_INCREMENT to 0 and start with 1, but as auto increment is a unique field and its automagically incremented, you should not set a default value on it... -- Sent from my Android phone with K-9 Mail. Please excuse my br

Re: [PHP] something about dates in mysql

2011-03-03 Thread Alex
Just a correction, dates in mysql are not strings by any means, they are stored in 3 bytes (date and time or 8 bytes for datetime) and that's nowhere enough for a string, however the representation of the date is a formatted string, so for all intents and purposes any comparison to a date field

Re: [PHP] Double method access (Hi everyone! :))

2011-03-04 Thread alex
, but two?. I mean I have been trying but I got an error* * Fatal error: Call to a member function ... on a non-object in ... I think the problem is $this->getTable() returns non-object. There is nothing wrong with using multiply "->" as long as return-value from previous

Re: [PHP] imap_search ?

2011-03-07 Thread Alex
Imap remains open after you search and doesn't close until you call imap_close. Firstly the code shouldn't be written like that, while should not operate on a fail condition of a function exec, that's just bad coding practice and that's what causes a loop here. If there are no messages in the em

Re: [PHP] String eval assistance

2011-03-16 Thread Alex
I'm not sure as to why strpos does what it does here, at least its not immediately obvious, but, a solution to this would be to use a regular expression search, it would be more exact, it has never failed me, and it will be faster; I recall reading that preg functions were faster at then str one

Re: [PHP] A Review Request

2011-05-21 Thread Alex
- From: "tedd" To: "Joshua Kehn" , "PHP General" Subject: [PHP] A Review Request Date: Sat, May 21, 2011 9:26 am At 2:49 PM -0400 5/19/11, Joshua Kehn wrote: >On May 19, 2011, at 2:44 PM, Andre Polykanine wrote: > >> Hello Alex, >> >>

Re: [PHP] mysqli_query() returns NULL?

2011-06-18 Thread Alex
If you were to use the proper object form of it, you'd spot the mistake, as it will tell you that you are trying to perform an action on a non-object. It might be a bug, or the developers might not have cared figuring that if you threw it in an if(!...) it would validate as false anyways. But i

[PHP] GD error on 4.3.7: fatal libpng error

2004-06-07 Thread Alex
; '--enable-mbstr-enc-trans' '--enable-mbregex' '--with-mcrypt' '--with-mhash' '--enable-magic-quotes' '--with-mysql' '--with-openssl' '--enable-discard-path' '--with-pear' '--enable-sockets' '

[PHP] phpMyAdmin--resetting auto increments to 0

2006-04-15 Thread alex
somehow reset the value to zero... it is of int type and auto_increment i have a few db's which id like to reset to zero i have tried placing a zero enrty after deleting the lot but it only jumps to its next increment. does anyone know what i mean...? any help will be grateful regards

[PHP] XPath avg(), min(), max() functions not found

2006-06-08 Thread Alex
OMXPath::evaluate(): Unregistered function in /tmp/test.php on line 23 Warning: DOMXPath::evaluate(): Unregistered function in /tmp/test.php on line 23 object(DOMNodeList)#5 (0) { } float(75) [EMAIL PROTECTED]:/tmp$ Someone can help me? Thanks in advance Alex -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: XPath avg(), min(), max() functions not found

2006-06-09 Thread Alex
Rob Richards wrote: > min(), max() and avg() don't exist in XPath 1.0 which is the version > implemented in libxml2. You need to calculate these yourself. For example: Thanks for your help. Alex -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://

[PHP] Unique ID - again

2004-02-12 Thread Alex
eturn same number when seed is microtime()? It is very important as the number will identify a bank transfer... Is there any other way than checking with all previous IDs? Or some MySQL function to do this for me? thank you Alex -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

[PHP] php5.0.5 include() terminates script BUGBUGBUGBUG

2006-01-19 Thread alex
i have altered this comment to require but still the samethe file tree seems to be in order too regards alex -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php5.0.5 include() terminates script BUGBUGBUGBUG

2006-01-25 Thread alex
thanks all for your help.. i have upgraded to php5.1.2 and the problem has resolved itself...as it stands for me php5.0.5 cannot handle multiple include statments.. regards alex "Jochem Maas" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > David Hall wrote: &

[PHP] notice prevents setting cookie in 4.3.0RC2?

2002-12-15 Thread Alex Pukinskis
make sure error_reporting is set to E_ALL). If this has been fixed in RC3, it should say "Cookie set". If it says "Could not set cookie", it seems to me like this bug should be reported. By the way, is there any easy way to see what's changed in pre-release version

[PHP] easy spliting

2002-12-18 Thread Alex Ciurea
Hi, I know it is easy but I can't figure how I should do I want to split a string from position 1 to 9, from 10 to 36, from 37 to 54 and so on... how can I do this? is there a function who does this? Regards, Alx

Re: [PHP] mcrypt

2002-12-23 Thread Alex Piaz
As far as I know, there is no mcrypt windows version. You´ll have to try to compile it yourself. And don´t ask me how because I don´t know:-) A sugestion: If you can, change to linux. It´s better and it´s Free. Regards Alex At 18:33 23/12/2002 -0500, Ysrael Guzmán wrote: Hi, my server is win

[PHP] Can I Copy a directory using PHP?

2003-01-13 Thread Alex Ciurea
Hello, I want to write a script that makes a backup of a database directory. Actually, to copy all database files to another directory. I've figured that I have to use the "copy" function of the PHP, but the function doesn't works only with files? Is it possible to copy the entire directory to

[PHP] Need some help in "exec"-attack

2003-01-13 Thread Alex Ciurea
Hi all, this is my situation: I want to execute some comands using 'shell_exec': $command=shell_exec("ls -la /usr/dest_dir;cp -R /usr/source_dir/1.php /usr/dest_dir;cd /usr/dest_dir;ls -la"); echo "$command"; Actually, these commands: 1)ls -la /usr/dest_dir 2)cp -R /usr/source_di

Re: [PHP] Need some help in "exec"-attack

2003-01-13 Thread Alex Ciurea
Hi, I think I've solved the problem group owner of the dest_dir must be apache !!! - Original Message - From: "Alex Ciurea" <[EMAIL PROTECTED]> To: "php mailing" <[EMAIL PROTECTED]> Sent: Monday, January 13, 2003 1:53 PM Subject: [PHP] Need

Re: [PHP] Need some help in "exec"-attack

2003-01-13 Thread Alex Ciurea
ty reasons. - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, January 13, 2003 3:08 PM Subject: Re: [PHP] Need some help in "exec"-attack > On Monday 13 January 2003 19:53, Alex Ciurea wrote: > > Hi all, >

Re: [PHP] Need some help in "exec"-attack

2003-01-13 Thread Alex Ciurea
, 2003 3:27 PM Subject: Re: [PHP] Need some help in "exec"-attack > On Monday 13 January 2003 21:13, Alex Ciurea wrote: > > Hi, > > > > I think I've solved the problem > > > > group owner of the dest_dir must be apache !!! > > NB if mysql is

[PHP] PHP 4.1.2 session problem

2003-01-29 Thread Alex Shi
to be fixed... Thanks for any help in advance! Alex Shi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] text to image

2003-02-14 Thread Alex Shi
pe verdana font, can I just upload the windows font file to the web server (linux) and use php to load the font? Thanks in advance! Alex Shi -- == Cell Phone Batteries at 30-50%+ off retail prices! http://www.poce

Re: [PHP] text to image

2003-02-14 Thread Alex Shi
/www/current_time.php on line 7 I checked the phpinfo but failed to find which variable I should turn on. Alex > Alex, > Easy to do what you want. Check out the "image" functions in the php > manual. There are some font limitations, specifically dealing with > alternate

Re: [PHP] text to image

2003-02-14 Thread Alex Shi
forgot somethingwhen try following script in another server I got 500 internal server error. Alex again > > I got following error msg when ran it: > > > Warning: ImageTtfText: No TTF support in this PHP build in > /home/dotkard/www/current_time.php on line 6 > >

[PHP] recursion?????

2003-02-14 Thread Alex Davis
go back and try again, it will be there in front of them. Basically, have the form action call itself hince the recursion. Any suggestion/examples? Thanks, -Alex -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] redirect

2003-02-14 Thread Alex Davis
What is the syntax to have php redirect to another web site? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] again, dynamic image of text string

2003-02-15 Thread Alex Shi
indows and uploaded them to the server. I don't if the Windows fonts could work for Linux. Alex Shi -- == Cell Phone Batteries at 30-50%+ off retail prices! http://www.pocellular.com == Traffic

[PHP] Is this an unique user name???

2003-02-18 Thread Alex Davis
whole script I would be glad to supply on demand. Thank for your time, -Alex -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Post method

2003-02-28 Thread Alex Shi
Hi, Any one know in a php script, if it is possible to simulate a post method? I mean I want to header() to an url but don't like to embed the parameters into that url. Thanks in advance! Alex Shi -- == Cell Phone Batteries at 30-50%

Re: [PHP] Post method

2003-02-28 Thread Alex Shi
gt; a look at the script repositories, hotscripts.com and you might try > phpclasses.org as well. ^^ Thanks! I found a great class in phpclasses.org. Alex > > Jason > On Fri, 2003-02-28 at 14:09, Alex Shi wrote: > > Hi, > > > > Any one know in a php script, if

[PHP] PHP WEB module doesn't execute php console scripts?

2003-03-05 Thread Alex Ciurea
the first time when I heard about php web module (can you imagine?) and I have no idea Anyone coould help me ? Thanks alot, Alex

[PHP] PEAR AUTH :: Need some advice

2003-03-08 Thread Alex Piaz
ling list archives, but find nothing about it. Any tips? Thanks in advance. Alex -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] ob_start -- output buffer problem

2003-03-09 Thread Alex Lance
g_file); fclose($fp); } } ?> But if ob_end_flush() IS called then the error log WILL have the "GOT TO FINISH" message. Any ideas on why the output is not being flushed automatically? thanks Alex -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How to set a timeout limit for a call of a connection?

2003-03-10 Thread Alex Shi
st this), so that it won't stay very long to wait for a result, but just quit if the call take a time longer than timeout limit, and then go on for next steps. Thanks in advance! Alex Shi -- == Cell Phone Batteries at 30-50%+ off retail prices!

Re: [PHP] How to set a timeout limit for a call of a connection?

2003-03-10 Thread Alex Shi
ontrol the timeout with fopen(). Try looking at fsockopen(). > You can set a timeout for that. I checked the manual. From the example, it is apparently that timeout only works for the handle setup by fsockopen, but not for fsockopen itself. Alex > > ---John W. Holmes... > >

Re: [PHP] How to set a timeout limit for a call of a connection?

2003-03-10 Thread Alex Shi
control the timeout with fopen(). Try looking at fsockopen(). > You can set a timeout for that. Oh, yes, you are right! there is a parameter for timeout! Thanks a lot! alex > > ---John W. Holmes... > > PHP Architect - A monthly magazine for PHP Professionals. Get your cop

RE: [PHP] What do I do wrong?

2003-03-13 Thread Alex Piaz
At 20:39 13/3/2003 -0500, John W. Holmes wrote: I'm not very good at PHP, but I'd have to say the problem is that you've got an undefined variable called $msg on line 202 in script.php... but I could be wrong. LOL:-) Alex -- PHP General Mailing List (http://www.php.net/)

[PHP] Software Testing and Internationalization - Free book by LISA/Lemoine International

2003-06-06 Thread Alex Lam
Dear colleague, LISA, in collaboration with Lemoine International has made "Software Testing and Internationalization" by Galileo Computing freely available for download. This 330 page book will transform how you view testing methodologies and procedures. It introduces the reader to essential co

Re: [PHP] how to read the stuff that got piped (

2003-05-27 Thread Alex Earl
> hi, > > i've a simple question: > > how can i read the stuff that got piped ("|") to the php-script? > > i.e. "ls -l | /home/myuser/phpscript.php" [snip] It is the stdin of the script, you can open that file handle with fopen( "stdin", "r" ); i believe Slide -- PHP General Mailing List (http:

RE: [PHP] sound

2003-05-30 Thread Alex Earl
I'm guessing perhaps you didn't upload the sound to the server when you uploaded the webpage? Slide -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to secure a download ?

2003-06-01 Thread Alex Earl
filename in the content-disposition header. header( "Content-tpye: application/zip" ); header( "Content-Disposition: attachment; filename=\"yourfile.zip\" ); readfile( "/path/to/yourfilname.zip" ); the reason I say this is because without the quotes, some browsers ins

Re: [PHP] This line does not execute...

2003-06-04 Thread Alex Ciurea
did u made copy&paste with your code? yes? then why don't you try to use the path='image.php?blahblahmoreblah' no? then please give us more details about the error you're getting... good luck, Alex - Original Message - From: "Todd Cary" <[EM

Re: [PHP] This line does not execute...

2003-06-04 Thread Alex Ciurea
oh I see, you want to execute that image.php script ? - Original Message - From: "Alex Ciurea" <[EMAIL PROTECTED]> To: "php mailing" <[EMAIL PROTECTED]>; "Todd Cary" <[EMAIL PROTECTED]> Sent: Tuesday, June 03, 2003 6:07 PM Subject: Re: [P

Re: [PHP] This line does not execute...

2003-06-04 Thread Alex Ciurea
probably don't run. try to see, from your shell (i think you use linux) if u can run a php script. e.g.: ./myscript.php - Original Message - From: "Todd Cary" <[EMAIL PROTECTED]> To: "Alex Ciurea" <[EMAIL PROTECTED]> Cc: "php mailing" <[E

Re: [PHP] Downloading a file.

2003-06-11 Thread Alex Earl
> > If he wants to download, in the file downloadit.php, there is: > header("Content-type: application/octet-stream\n"); > header("Content-Disposition: attachment; filename=mysoft-1.0-truc.zip"); > header('Cache-Control: public'); > header("Content-transfer-encoding: binary\n"); > header("Content-l

Re: [PHP] getting file contents

2003-06-11 Thread Alex Earl
am using the > file_get_contents() function to do this, but it seems to have trouble > because it looks like it is trying to execute the php code in the file I > am trying to get. Anyone know of a better way to go about this? Thanks. > > Matt $file_data = join( '', file( '/

Re: [PHP] form name and submit test

2003-06-11 Thread Alex Earl
ch one is set to see which form was submitted. Alex -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] slash trouble when editing text

2003-06-11 Thread Alex Earl
Sounds like you have magic quotes turned on in your php.ini. I would check that out. Alex > Will the stripslashes() remove the slashes that are supposed to be in the > file? Because often times there are slashes in the file that need to be > there. > > Matt >

Re: [PHP] How to find if a string is an integer?

2003-06-12 Thread Alex Earl
"is int"; > Why not just use the is_int() function? www.php.net/is_int Alex -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to find if a string is an integer?

2003-06-12 Thread Alex Earl
Also, in the beginning of this thread, the OP already said that is_int() > had > been tried. > > ---John Holmes... > I guess I missed the first part of the thread then. Thanks for the info. Alex -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to find if a string is an integer?

2003-06-12 Thread Alex Earl
is_numeric() is that something like "4e4" comes up as true, because it could be construed as a HEX value. Alex -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Error display

2003-06-12 Thread Alex Earl
> I have error reporting set to E_ALL, but no matter what I do, no errors > display. Is there somewhere else in the .ini that I have to set > something? > I believe there is a print_errors or show_errors directive in the php.ini file. Check on php.net for sure. Alex -- PHP Gen

Re: [PHP] make a variable not exist?

2003-06-12 Thread Alex Earl
php.net/unset but also I would recommend using if(!isset($variable)) instead of just if(!$variable) its a little more clear as to what you are really trying to see I think. Alex -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] stumped on mysql_num_rows

2003-06-13 Thread Alex Earl
Can you give us the query too? Alex > Hello List, > The issue appears to be that no rows are being found with mysql_num_rows > using the SQL LIMIT offset. There should be rows found. Further, all > processing just halts, and no query is shown as per the code here: > > >

Re: [PHP] create a chmod'd file

2003-06-13 Thread Alex Earl
creating the file? fopen()? touch()? Give a little more information please. Alex -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Will this work right?

2003-06-13 Thread Alex Earl
40) % 7; > if($days > 0) $array[] = $days . ' day' . ($days == 1 ? '' : 's'); > $hours = intval(intval($min) / 60) % 24; > if($hours > 0) $array[] = $hours . ' hour' . ($hours == 1 ? '' : 's'); > $minute

Re: [PHP] PLEASE STOP SENDING ME MAIL!!! PLEASE UNSUBSCRIBE NOW!!!

2003-06-13 Thread Alex Earl
Read the bottom of the email messages, it tells you how to unsubscribe. Alex > --- gregory landry <[EMAIL PROTECTED]> wrote: >> I figured it out. Yipppee.. >> >> Thanks >> >> -Original Message- >> From: Gregory Landry [mailto:[EMAIL PROT

Re: [PHP] is my server working

2003-06-15 Thread Alex Ciurea
try to use echo instead of print() : >>>>>> echo $myString; >>>>>> or, if u realy want to use the print function, try this: >>>>>> print("$myString", %s); >>>>>> maybe will work A

Re: [PHP] is my server working

2003-06-15 Thread Alex Ciurea
f your php files. it should work if your apache/php server is configured properly. Good luck! Alex Ciurea Greets You www.netonwave.com - Original Message - From: "Lars Torben Wilson" <[EMAIL PROTECTED]> To: "Alex Ciurea" <[EMAIL PROT

[PHP] Software Testing and Internationalization - Free book by LISA/Lemoine International

2003-06-16 Thread Alex Lam
Dear colleague, LISA, in collaboration with Lemoine International has made "Software Testing and Internationalization" by Galileo Computing freely available for download. This 330 page book will transform how you view testing methodologies and procedures. It introduces the reader to essential co

[PHP] convert Excell to MySQL table

2003-06-17 Thread Alex Shi
Hello, Does any one out there happend to know a php solution to directly (without CSV) transfer an Excell spreadsheet into MySQL table? Thanks in advance! Alex -- == Cell Phone Batteries at 30-50%+ off retail prices! http://www.pocellular.com

Re: [PHP] convert Excell to MySQL table

2003-06-17 Thread Alex Shi
Yes I believe this is an excellent solution for MS planforms... But how about UNIX/Linux/FreeBSD based applications? Alex :[EMAIL PROTECTED] > If it doesn't have to be automatic, I believe you can open > an ODBC connection to the MySQL database and use the export > functionality o

RE: [PHP] Software Testing and Internationalization - Free book by LISA/Lemoine International

2003-06-18 Thread Alex Lam
003/swtestregister.html > >How about a privacy statement on the page where you collect all of our >info? John, A privacy statement has been placed on the page. We will also be putting up a statement on the other pages. Thank you. Alex Lam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] conditional image generation problem

2002-07-25 Thread Alex Maslov
advance, alex P.S. I am generating a hit-counter image. The set-up is very basic: if admin looks at the page, then image should be generated and displayed if anyone else loads the page, no image should be generated. my code goes smth like this: -- PHP General Mailing List (http

[PHP] Preg replace & Query Problem

2002-07-29 Thread Alex Beauclair
and [title] with the relative id and name from $table_categories, however when it is run, it gives out : PHP PHP I'm really not sure what's going on, can anyone help me ? Alex -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Update of the problem w/ code - conditional image generation problem?!

2002-07-29 Thread Alex Maslov
Thank everyone for suggestions. I followed through on them but unsuccessfully. I looked for any mistake but couldn't find it. I tried commenting out lines in chunks and one by one, without any effect. the problem stays the same, if the conditional statement is present then image is not generated

  1   2   3   4   5   6   7   8   9   >