Re: [PHP] Test the server.

2003-03-22 Thread Vincent M.
Sebastian wrote: put this in a .php file: it'll tell you what OS, (usually) check if safe mode is on.. if it's on then usually you can't "exec" anything. cheers, - Sebastian Yes I know but my aim is to make a php script which checks automaticly if the php and the shell functions I need are availa

[PHP] Protecting Code source.

2003-03-27 Thread Vincent M.
Hello, I'd like to sell an application to 24$ US and I have to protect my source code. But I don't want to make my customer install anything on the server to be able to run my application. So the Zend encoder seems good for me: http://www.zend.com/store/products/zend-encoder.php "Or, make it eas

Re: [PHP] Protecting Code source.

2003-03-27 Thread Vincent M.
John Wards wrote: On Thursday 27 Mar 2003 7:31 pm, Vincent M. wrote: The only trouble is the price (960$), it's a little expensive for the student I am :-/ Does anyone know any other less expensive way to protect my source code ? http://www.ioncube.com/ They have a web based version tha

[PHP] So many functions!

2003-04-02 Thread Vincent M.
Hello, There so many functions in php that I can't find the one I need. I have a table like that: $lang["english"]["category"]= "Category" ; $lang["english"]["backpage"]= "Go to the back page" ; $lang["english"]["nextpage"]= "Go to the next page" ; ... $lang["francais"]["category"]

[PHP] How to secure a download ?

2003-05-31 Thread Vincent M.
Hello, Is there any way to launch a download of a Zip file to the user without a link. The user must not know where the file is on the server. The transfert of the file must be made by a php file with special headers, no ? header("Content-type: zip"); or something... Thanks. -- PHP General

[PHP] Downloading a file.

2003-06-11 Thread Vincent M.
Hello, To download a file after a form like that: Do you want to download? 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

[PHP] undefined variable: action

2003-06-11 Thread Ryan M
Hows it goin?? Im pretty new to this, so I have a pretty simple question. I am running an apache server with php 4 on a win 2k machine. When I try to do something like this: Some Action"; if ($action == "someaction") { echo "Anything"; } ?> It says: Notice: Undefined variable: action in . Iv

Re: [PHP] undefined variable: action

2003-06-11 Thread Ryan M
Thanks for the advice... The link worked Now it is saying this: Notice: Undefined index: action in It only says this if there is no action...it goes away once I click the link and the action=someaction Is there a way to fix my php so that I dont have to change all of the web sites hos

Re: [PHP] Help me compose myself... I'm about to kill Microsoft....

2003-06-20 Thread Steve M
On Thu, 19 Jun 2003 13:21:07 +0200, Daniel wrote: > Okay, I think I'll have to kill myself... > I can't believe I am this stupid, but it turned out I was working on a copy > of the file, not the real one. D'OH!!! > Sorry, guys! > Daniel That's no reason no

[PHP] Re: Empty session directory

2003-06-24 Thread Neil M
IVáN DíAz wrote: Hi everyone! I would like to know if I need to empty from time to time the directory where the session files are stored. I'm running windows nt4.0 and Apache. Thanks in advance. Hi Ivan That would probably be a good idea yes. On linux and unix based OS's sessions are usually s

[PHP] problems compiling php-4.2.1 / solaris 2.6

2002-06-26 Thread Neil M
problems compiling php-4.2.1 / solaris 2.6 -- [root@sunnsr02] 240 /tmp > cd /export/php-4.2.1 [root@sunnsr02] 241 /export/php-4.2.1 > make Making all in Zend /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main-D_POSIX_PTHRE

[PHP] Re: problems compiling php-4.2.1 / solaris 2.6

2002-06-28 Thread Neil M
Neil M wrote: > problems compiling php-4.2.1 / solaris 2.6 > -- > > [root@sunnsr02] 240 /tmp > cd /export/php-4.2.1 > [root@sunnsr02] 241 /export/php-4.2.1 > make > Making all in Zend > /bin/sh ../libtool --silent --mode=compile

[PHP] module.so and php-directory!!!

2003-09-06 Thread m n
Hi!! I have writen a php_module.so but i havent access right to move my module to the php-directory!! Is the any other way to load php_module!!! BR

[PHP] Calling a function.

2003-09-12 Thread Vincent M.
Hello, Is there any way to call a function with a variable inside the call. ie: if($preferences != "") { dis_display$$preferences() ; } If $preferences = "menus" this will call the function dis_displaymenus() Thanks, Vincent. -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re: [PHP] Shopping Cart Solutions

2003-09-23 Thread pete M
loads at hotscripts.com http://www.hotscripts.com/PHP/Scripts_and_Programs/E-Commerce/index.html Adrian Teasdale wrote: Charles Try oscommerce.org - it's an open source app written in PHP that has a fantastic community and is incredibly feature-rich. I'm not associated with the project, but I ha

[PHP] Re: Users Online

2003-09-24 Thread pete M
I've dome this recently using a small in the top right corner. users_online.php has the tag set. pete Matias Hohl wrote: Hello php-Freaks I would like to display the number of users that are online on my page. Scripting that is not the problem... but how can I refresh this number all 2 min

[PHP] Re: Users Online

2003-09-24 Thread pete M
Does xml_HTTP work with Mozilla ??? ! pete al wrote: You can use XML-HTTP - works both Mozilla 1.x and I.E. 5.x and write it to a DIV. Pete M wrote: I've dome this recently using a small in the top right corner. users_online.php has the tag set. pete Matias Hohl wrote:

[PHP] Re: Problem with adding text to emails using the date function

2003-09-24 Thread pete M
$subject .= "\nBooking Commences: ".date("jS F Y")." at ".date("H\:i") Shaun wrote: Hi, using the folling line fo code i am trying to add some text to an email: $subject .= "\nBooking Commences: ".date("jS F Y \a\t H\:i", strtotime($booking_start_date)); However the output is: Booking Commen

Re: [PHP] PHP Editor - which to use?

2003-09-25 Thread pete M
I write my code with pencil and paper and then scan it.. Dont need an editor ! John Nichel wrote: I know we've discussed this numerous times, but I'll chime in again (mainly because I'm bored). By far, I have been totally satisfied with UltraEdit. Lightweight, just about any language you want

[PHP] Re: str_pad

2003-09-26 Thread pete M
$dbranch = str_pad($line->dbranch_no, 6, STR_PAD_LEFT); there's a aslo $dbranch = str_pad($line->dbranch_no, 6, STR_PAD_BOTH); and that pads it in the centre pete Chris Grigor wrote: This should be quite an easy task for some... say for example $line->dbranch has a value of 3 I know that 3 space

[PHP] Re: HTML mailing list

2003-09-26 Thread pete M
www.hotscripts.com Angelo Zanetti wrote: anyone know of a good HTML mailing list? sorry for the OT post. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: arrays and php

2003-09-30 Thread pete M
echo " "); might solve the problem pete hi I have a table with rows and each row contains a checkbox ( array) and a record. TD of the checkbox: echo(""); as you can see the array of checkboxes is called chkR. When the user clicks a submit button it calls the same page and the value of the array i

[PHP] help - with pdf downloads

2003-10-03 Thread pete M
I'm directing client via a link to a download page for pdf documents. This code works on mozilla + firebird but in IE however it pops up with a open/save dialog - with the filetype missing and then an error when open/save pressed saying "cannot find the site". As you can see below I've tried al

[PHP] Re: pad numbers

2003-10-10 Thread pete M
from php manual str_pad function pete Diana Castillo wrote: is there a function to convert a number that has less than two digits into a number with a leading zero? for instance, to convert a "5" to "05" but to leave a "11" as "11" thanks, Diana -- PHP General Mailing List (http://www.php.net/)

[PHP] Re: Max no of recipients in To field of mail function

2003-10-15 Thread pete M
I use phpmailer http://phpmailer.sourceforge.net/ Makes life much easier An example of mass mailing is here http://phpmailer.sourceforge.net/extending.html pete Binay wrote: Hi all! i need to email out newsletter to say 1000 recipients. I want to know what is the maximum number of recipients i ca

[PHP] ms word problems again !!

2003-10-15 Thread pete M
I'm trying to send the following header to force ms-word to open a html document header("Content-type: application/msword"); header('Content-Disposition: attachment; filename="invoice.doc"'); it works in Mozilla but NOT in IE.. any ideas as its driving me crazy.. tia pete -- PHP General Mai

Re: [PHP] ms word problems again !!

2003-10-16 Thread pete M
, it seems to work. All the caching supression seems to be important. header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT&q

[PHP] Re: 'Return values' from links

2003-10-17 Thread pete M
Some XML would do the trick pete [EMAIL PROTECTED] wrote: First of all, Hi! I just started getting into php a week ago, but already ran into a problem I can't seem to solve. The issue is this : I code 2 different websites, each has it's own mySQL-DB. Website A has a login-section, each time you s

[PHP] Re: Creating local vars from HTTP Post Array

2003-10-17 Thread pete M
try extract($_POST) pete Javier . wrote: I'm re-coding a fairly large multi step form which was written with PHP's register globals turned on. Since upgrading PHP this form has stopped working and needs editting. Rather than manually changing each var - $foo to$_POST['foo'] (there are

[PHP] Re: date for mysql

2003-10-17 Thread pete M
insert into table (date_created) values( now() ) ;-) pete Diana Castillo wrote: how can I format the current date and time so that I can insert it into a mysql table with an insert query? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: SQL security

2003-10-17 Thread pete M
take a look at this http://phpinsider.com/php/code/SafeSQL/ pete Jeremy Russell wrote: Hello list, I was just sitting here thinking how to secure my php code and thought I would run it by the pros. I don't know what the standard practice is to secure against sql injection and malformed infor

[PHP] Re: File Upload problem

2003-10-20 Thread pete M
It might be the script timing out - defaults to 20 seconds check set_time_limit() regards pete Grant Rutherford wrote: Hi there, I'm trying to get a file upload to work with PHP. The file I'm attempting to upload is a 742kB pdf file, but this will have to work for files up to 50Mb of all typ

[PHP] Re: Comments / Feedback script?

2003-10-22 Thread pete M
have a sniff around http://www.hotscripts.com/PHP/Scripts_and_Programs/index.html pete Mike Yrabedra wrote: Anyone know of a good 'comments/ feedback' creation script that writes to a static text file (no MySQL)? The user would enter their email, name and comment. They would then be displayed on

[PHP] Re: Simple array question

2003-10-23 Thread pete M
$array = array( 'fruit1' => 'apple', 'fruit2' => 'orange', 'fruit3' => 'grape', 'fruit4' => 'apple', 'fruit5' => 'apple'); // this cycle echoes all associative array // key where value equals "apple" while ($fruit_name = current($array)) { if ($fruit_name == 'apple') {

[PHP] Re: Create Popup Window using PHP

2003-10-23 Thread pete M
need a little bit of "Javascript" Here's a cut and paste from one of my projects
function confirmEdit()
{
var f = document.frmEdit;
if(confirm('Are you sure you want to save the changes. This operation CANNOT BE REVERSED'))
{
f.submit();
}


[PHP] Problem with SELECT statement and reference material wanted..

2003-10-23 Thread P M
eference available.. :-/ I also had an idea about the HTML form item names (such as text boxes) being required to be named as the column names in the MySQL table, but that failed miserably also (this is what I used in the examples below - substituting form item names doesn't change anythi

[PHP] doc_root question.

2003-10-26 Thread P M
Hello all! I need to host several websites from the same server (physical computer), and thus require PHP to be configured for more than one directory with PHP files. Does anyone know how to specify several target directories for the doc_root directive in the configuration file? Video Populare

[PHP] Re: Globals set to off - Sessions

2003-10-27 Thread pete M
function check_admin_user() { //global $admin_user; // if ( (session_is_registered("admin_user")) && (isset($admin_user)) ) if ( isset($_SESSION['admin_user']) ) return true; else return false; } Steve Jackson wrote: I am not sure what I have to do in order to control sessions in PH

[PHP] Re: Post variables and mysql queries

2003-10-27 Thread pete M
$query="Select * from users where userid='".$_POST['userid']."'"; ;-) pete Luis Lebron wrote: This may be a dumb question but here goes. I have been trying to use $_POST globals in sql queries. If I use the following query string it does not work $query="Select * from users where userid='$_POST

[PHP] Re: PDF File generation on Fly in PHP

2003-10-28 Thread pete M
on windows you need to comment out the php_pdf.dll (or similar) in php.ini and reboot apache/iis to enable the pdf extension. pete Vijay Killu wrote: Hello, I've just came through a function which generates PDF files on fly in a php script. On going through the documentation, I came to know th

[PHP] Re: Calendar Script

2003-10-29 Thread pete M
here's the calendar I use http://dynarch.com/mishoo/calendar/index.html pete Vijay Killu wrote: Dear PHP, Where can I find the Calendar script that has been used on the PHP.net site. I believe I can use it on my website since it is open source :-) Thanks & Regards, ___ P

[PHP] Re: $HTTP_SERVER_VARS["HTTP_PC_REMOTE_ADDR"] returns no value

2003-10-29 Thread pete M
its $HTTP_SERVER_VARS['REMOTE_ADDR'] or in php4+ $_SERVER['REMOTE_ADDR'] Randall Perry wrote: Want to grab the client IP after client agrees to a contract, but am getting no value from the $HTTP_SERVER_VARS["HTTP_PC_REMOTE_ADDR"] var. Anyone know why this might happen? -- PHP General Mailing List

Re: [PHP] Session for creating a unique shopping cart for each user

2003-10-31 Thread pete M
why use a cookie - the $_SESSION is itself a cookie I'd code it like if (!isset($_SESSION['cart_id'])) { // code to get cart_id $_SESSION['cart_id'] = $cart_id; } include(db) include(products) Tore E. Mackay wrote: Don't realy know. Here is what I have: 1. An index.php that inc

[PHP] Re: How to get the server information

2003-11-04 Thread pete M
print_r($_SERVER); pete K. Praveen Kumar wrote: Dear All, How can I get the Server Information which operating system the server is running? Using PHP. please let me know -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP script for mysql queries

2003-11-04 Thread pete M
web client http://www.phpmyadmin.net/home_page/ ;-) Joffrey L Leevy wrote: Hi: Going thru some teething problems. Does anyone have a simple PHP program that will enable mysql queries to be executed and displayed using internet explorer or another medium? thanks -- PHP General Mailing List (http

[PHP] Re: hard(?) syntax problem

2003-11-04 Thread pete M
unfortunately Constants are scalar only, arrays not allowed below is from the manual --- Constants do not have a dollar sign ($) before them; Constants may only be defined using the define() function, not by simple assignment; Constants may be defined and

[PHP] dictionary

2003-11-05 Thread pete M
q~Pr?Xhb^~{ikiF..CIC1( /7;{;e$zwv?xj)(8kkOg(61&[EMAIL PROTECTED]>` [EMAIL PROTECTED]'FCWL[w)fwe#5B^C`$P"lW rc&GSrVL _DlVM7KNnvOmp= Jk3]cqXR]{Qp;Y23`GPDjnP,Y6>M}z`7N LANGUAGE=English MONIKER={DE907F20-A4A0-11d2-A985-00104B70545A} PRODUCT=LiveUpdate PRODUCTNAME=LiveUpdate The

Re: [PHP] dictionary

2003-11-05 Thread pete M
Linux ;- Craig Lonsbury wrote: are you using windows or *nix? There is a good dictionary (I think it is called dict) built into most *nix distros,and have yet to find a good dictionary for windows. maybe someone else knows a good one =) Craig -Original Message- From: pete M

[PHP] Re: XML and PHP

2003-11-06 Thread pete M
http://www.zend.com/zend/art/parsing.php http://www.zend.com/zend/tut/tutbarlach.php in fact a google search for php,xml, expat, tutorial pete Victor spång arthursson wrote: Hi! I've been looking at the XML-parserfunctions in the manual, and they seems nice enough. But I'm currently in a proje

[PHP] Re: Concerning number_format()

2003-11-06 Thread pete M
$price = number_format( (int) $price, 2, '.', ''); Ed Curtis wrote: I'm using an example straight from the manual on the php site that doesn't seem to work. $price = "1234.567890"; $price = number_format($price, 2, '.', ''); echo $price; Returns 1234.567890 Should return 1234.57 correct? Than

[PHP] binary or text file

2003-11-06 Thread pete M
I'm doing a bit of data recovery using php as the scripting language.. Is there a way to determine is a file is binary or text ? all the files are recovered but the file names do not have extensions ! eg chkdsk.exe would be dgfhgj5767363874 as a file name pete -- PHP General Mailing List (http:/

[PHP] Re: How can i run DOS command from browser

2003-11-07 Thread pete M
from the manual '; // Outputs all the result of shellcommand "ls", and returns // the last output line into $last_line. Stores the return value // of the shell command in $retval. $last_line = system('ls', $retval); // Printing additional info echo ' Last line of the output: '.$last_line.' Return

[PHP] Re: trouble with forcing output to be cached

2003-11-07 Thread pete M
This posting has made me think.. Problem is server side because the script executes to create the image and the script runs every time.. Try writing out the image to a file and then send that to the browser >>psuedo code if image NOT exists create it write to file embed file pete Ilja Polivanov

[PHP] Re: PHP 4.3.2, HTML and MSSQL2000

2003-11-07 Thread pete M
echo ""; Rique Gresham wrote: Hi All, I'm having trouble with a input box disappearing when using php to generate the input box. I tested this script in a test.htm and worked fine. Does it have something to do with the script being inside the statement? Any help would be appreciated. Thanks

[PHP] Re: Send data Header Response

2003-11-07 Thread pete M
psuedo code index.php code to process form if(no_errors) redirect to another page ?> " > YOur submitting the form to itself so the $_POST variable is available in the form hope it help Pete Jonathan Villa wrote: I would like submit a form to a page, do some processing on that page, then

[PHP] Re: single quotes in database

2003-11-07 Thread pete M
also check magic_quotes_runtime in php.ini. This add's slashes to incoming Post/get variables You can change this at tun time with the ini_set() function pete Steve Buehler wrote: I am using PHP/MySQL and am having a problem. We have some names and addresses in the database that have single

[PHP] Re: newbie question about scope

2003-11-12 Thread pete M
things to check.. check the register_globals flag in php.ini - you can also set this using ini_set() Check the short_open_tags are either on/off - again this chan be changes in ini_set() pete News.Comcast.Giganews.Com wrote: I am an experienced web developer who is just getting into php. I h

[PHP] Re: Show total records based on criteria

2003-11-12 Thread pete M
Tim Winters wrote: select EyeColor, count(eyeColor) from males group by eyecolor ;-) Hello, Sorry for the probably newbie question. Is there a way to show the number of records in a recordset based on a specific criteria? For example, if I create a record set of all male employees regardle

[PHP] Re: index.php4 broken

2003-11-12 Thread pete M
Why not save the file as index.php Michael Seely wrote: HI -- I just broke something simple and I'm stuck. I've been using index.php3 as the start file in each directory for a long time. I just set up a new site using php4 and the index.php4 pages are not displayed as the default page for the

[PHP] ls as function.

2003-11-12 Thread Vincent M.
Hello, Is there any function to do: $thumb = exec("ls $dir/name*") ; without using the exec function and without making a while: $direc_src_obj = dir($dir) ; while($entry=$direc_src_obj->read()) { ... } So, i am looking for a function which return the result of the unix shell command: ls mydir/

[PHP] Re: wiki

2003-11-13 Thread pete M
tikiwiki.org me love it Pete Dennis Gearon wrote: I need a wiki, VERY simple. BUT OTOH, it'd be nice if it had the ability to display, or attache a picture to a topic. Any good stuff known to exist? MySQL background. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: ht

[PHP] Re: Remove HTML TAGS

2003-11-13 Thread pete M
strip_tags() function ;-) D. Jame wrote: HI, Is ther any way to remove HTML tags from Source File with PHP jame -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] session timeout

2003-11-13 Thread pete M
How do I set the session timeout - eg someone leaves a broweser for say half an hour then have to log in again.. As I'm on an intranet I want to increase ro 3 hours Pete -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] ls as function.

2003-11-13 Thread Vincent M.
John Nichel wrote: Chris Shiflett wrote: --- Marek Kilimajer <[EMAIL PROTECTED]> wrote: So, i am looking for a function which return the result of the unix shell command: ls mydir/name* www.php.net/glob I think you read that question wrong, or else I am. :-) Try the second user note on this

[PHP] Re: Headers Sent Message

2003-11-14 Thread pete M
If the files are included then one of the "catch me's" is when theres a space before or after the tags pete Mark Roberts wrote: Could someone help me out with this. I had this problem about a year ago with another site and I can't for the life of me remember what I had to do to fix it. I am in

[PHP] Unzip a file.

2003-11-15 Thread Vincent M.
Hello, Is there an easy way to unzip a zipped file which contains files (images), using a function from the zlib or any. To something like that: exec("unzip zipfile.zip -d /path/to/images") ; But without using the exec function. Thanks, Vincent. -- PHP General Mailing List (http://www.php.net/

Re: [PHP] Unzip a file.

2003-11-16 Thread Vincent M.
Kim Steinhaug wrote: on phpclasses.org there is a ZIP class that does all you need to do. Havnt got the time to give you the url right now, but look there. All I found are classes to extract tar/gzip files: http://www.phpclasses.org/search.html?words=zip&go_search=1&restrict=&method=and&sort=score

[PHP] rmdir withour rmdir function.

2003-11-17 Thread Vincent M.
Hello, I can't use the function rmdir: Warning: rmdir() has been disabled for security reasons But I do need to delete a directory with php. How can I do ? Is there any way to delete an empty directory without using the rmdir function ? I tried to use the unlink function on the directory, but I

Re: [PHP] rmdir withour rmdir function.

2003-11-17 Thread Vincent M.
I'm not lucky, there is no ftp access to the server. This can sound a little strange, but there is no... :( Marek Kilimajer wrote: ftp_rmdir() Vincent M. wrote: Hello, I can't use the function rmdir: Warning: rmdir() has been disabled for security reasons But I do need to delete a

[PHP] Re: [Q] Development Best Practices

2003-11-18 Thread pete M
definately take a look at smarty.php.net Might take a day or so to get used to the concept bit it makes maintaing and creating large sites (and small) a doddle. Main thing is that it seperated php code from html can't imagine not using it on any site anymore.. pete Adam wrote: All, I'm not

[PHP] Re: MS SQL Connectivity from Linux

2003-11-19 Thread pete M
I use PEAR db http://pear.php.net/manual/en/package.database.php http://pear.php.net/manual/en/package.database.db.intro-dsn.php this is included with the php distibution and makes swapping databases a doddle pete Fernando Melo wrote: Hi everyone, What is the quickest and easiest way to enable

[PHP] Re: HTTP Authentication thru PHP

2003-11-19 Thread pete M
its probably because its possible to authenticate with an url ? eg http://name:[EMAIL PROTECTED] Chandu Nannapaneni wrote: hello all , I'm able to get successfully http authenticated from my php scripts Ex : $header = "POST /myscript.php HTTP/1.0\r\nAuthorization: Basic "; $header .=

[PHP] Re: Session vars not echoing?

2003-11-20 Thread pete M
need to issue a session_start() at top of page Pete Jas wrote: Not sure why this is happening but I think it has something to do with an include statement... [Server environment] Apache/2.0.47 (Unix) DAV/2 PHP/4.3.3 register_globalsOnOn report_memleaksOnOn safe_modeOffO

[PHP] Re: Avoiding duplicate orders?

2003-11-20 Thread pete M
psuedo code session_start() if (incoming POST and $_SESSION['in_database'] != 1) { insert to DB $_SESSION['in_database'] = 1 } pete J J wrote: What is the simplest way to avoid duplicate order entry on a form? Some people aren't patient enough to wait for the SSL/credit card pr

[PHP] Usort an array.

2003-11-20 Thread Vincent M.
Hello, I have an array like that: $return[0]["photo"] = monuments_01.jpg $return[1]["photo"] = monuments_00.jpg $return[2]["photo"] = monuments_03.jpg $return[3]["photo"] = monuments_02.jpg $return[4]["photo"] = monuments_04.jpg If I use the sort function: sort($return) ; I get

[PHP] Re: Usort an array.

2003-11-20 Thread pete M
array_reverse() Vincent M. wrote: Hello, I have an array like that: $return[0]["photo"] = monuments_01.jpg $return[1]["photo"] = monuments_00.jpg $return[2]["photo"] = monuments_03.jpg $return[3]["photo"] = monuments_02.jpg $return[4][&quo

[PHP] Function disabled.

2003-11-21 Thread Vincent M.
Hello, How to test if a function has been disabled. I tried doing this: if(function_exists("rmdir")) { echo "rmdir Function exists" ; } else { echo "rmdir Function DOES NOT exists" ; } So the test says that the function exists, but if we use it, I get: rmdir() has been disabled for security r

[PHP] Re: Setting counter in variable name within foreach loop

2003-11-24 Thread pete M
Jake McHenry wrote: Is this possible? I've been messing with this for about an hour now, searching on google for about half hour. Here is what I want to do: foreach ($array as $key => $value) { $value = explode("|", $value); $counter = 0; if ($value[7] == "Yes") { $counter++; $date

[PHP] whaw

2003-11-24 Thread pete M
Even the pros systems crash sometimes http://www.php.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Locking mysql tables with PHP

2003-11-25 Thread pete M
On way to do it would be to create a table called flags and update the value in that psuedo code update flags set locked =1 get value to calculate otheruesrs would check the page select locked from flags if NOT locked then do query on the update page update table set calculation = result update

[PHP] Re: Locking mysql tables with PHP

2003-11-25 Thread pete M
Another idea would ne to use an "application" variable.. This is like a Session variable but is site wide http://0x00.org/php/phpApplication/ regards Pete Tony Crockford wrote: Hi bit confused! here's what I want to do: get a numeric value from a MySQL table, do a calculation, then on anoth

Re: [PHP] Locking mysql tables with PHP

2003-11-25 Thread pete M
UPDATE tblfoo SET value= (value+1) WHERE conditions Tony Crockford wrote: On Tue, 25 Nov 2003 07:15:10 -0600, Jay Blanchard <[EMAIL PROTECTED]> wrote: [snip] is there a way I can get a number and increment it all in one query then? [/snip] UPDATE tblFoo SET value = (value+1) WHERE conditions

[PHP] Re: IE download problem

2003-11-26 Thread pete M
thsi si a nighmare area. and loast days on same problem This works for me.. hope it does for you $file = $_GET['file']; $path = '/www/cgi-bin/docu/personal/'.$file; //force download dialog header("Content-type: application/octet-stream\n"); header("Content-disposition: attachm

[PHP] preg_replace Guru question

2003-11-27 Thread pete M
What Preg_replace code would I need to highlight all the code within the "

[PHP] Completely Daft Question

2003-12-03 Thread pete M
I have written and applicaiton in VB (yuck but that's what the client wants) and part of the application involves importing and processing text files. For that I turned to php;-) for all its processing power as a shell script. Now here is the daft question. How would I go about embedding the p

[PHP] Re: Need help

2003-12-03 Thread pete M
Mba wrote: How could I use this php code, in order to show the ip in a web page? thanks - Do you Yahoo!? Free Pop-Up Blocker - Get it now -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Completely Daft Question

2003-12-03 Thread pete M
For the exe part, check this list or > the internet for [PHP commandline]. Didn't think calling that from VB - ta - problem solved Pete Chris Hayes wrote: At 15:27 3-12-03, you wrote: I have written and applicaiton in VB (yuck but that's what the client wants) and part of the application involv

[PHP] preg_match

2003-12-05 Thread pete M
could someone explain what this bit of code does please... if (!preg_match("/^".$thumbname."/",$item)) { } tia PEte -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Age from birthdate?

2003-12-11 Thread pete M
have you looked at to_days() and to_years() in the mysql manual Dvdmandt wrote: How would I get the age of someone if I store the birthdate in a date field? I just realized FLOOR((UNIX_TIMESTAMP(NOW()) - UNIX_TIMESTAMP(birthdate))/60/60/24/365.25) wont work for persons born before 1970... :p I m

[PHP] Re: php special permissions

2003-12-18 Thread pete M
Have u looked at "sudo" and "sudoers" http://www.courtesan.com/sudo/ http://www.courtesan.com/sudo/man/sudoers.html regards pete Mat Harris wrote: Hi, I am building a web interface to the vacation autoresponder program on linux. I let users login, edit their message and enable the autoresponde

[PHP] Manage link.

2003-12-18 Thread Vincent M.
Hello, Is there any way to manage links in an array and transform them. For example, I have this text in the database: --- Software & Support Media, produc-ers of the International PHP Conference, are pleased to announce a new monthly version of their print publication. For more information, you

Re: [PHP] Manage link.

2003-12-18 Thread Vincent M.
This one is perfect: $text = preg_replace( "/(?\s]+)/i", "URL", $text ); :D Evan Nemerson wrote: On Thursday 18 December 2003 01:37 pm, Vincent M. wrote: Hello, Is there any way to manage links in an array and transform them. For example, I have this text in the

[PHP] debugger listener

2003-12-22 Thread Alberto M.
php 4.3.0 + apache + linux suse 8.2 I tried to install xdebug (http://www.xdebug.org/install.php) as an precompiled module, but it seems not running when I did reload apache. I mean, I can't see it in the module list in phpinfo() page. Also, I don't know how to catch up events sent by debugger,

Re: [PHP] debugger listener

2003-12-22 Thread Alberto M.
Alberto M. wrote: php 4.3.0 + apache + linux suse 8.2 I tried to install xdebug (http://www.xdebug.org/install.php) as an precompiled module, but it seems not running when I did reload apache. I mean, I can't see it in the module list in phpinfo() page. Also, I don't know how to catch

[PHP] Re: How can i build e-commerce site with php?

2003-12-22 Thread pete M
go and check out www.hotscripts.com - there's load of ecomerecce scripts there. regards Pete Pehepe Php wrote: Hello. How can i build e-commerce site with php. Do you know any source,documentation,e-book. Please help me. if you use msn messenger, please add me your contact list. messenger : [E

[PHP] Re: Newbie with sorting problem

2004-01-06 Thread pete M
Just add order by to the sql query instead eg "SELECT id, name, surname, address FROM addresses order by name asc"; or descending on surname eg "SELECT id, name, surname, address FROM addresses order by surname desc"; hope this helps Pete Bart Koppe wrote: Hi all, I'm quite a newbie ot php/mys

[PHP] Re: deamon / server

2004-01-09 Thread pete M
What you trying to achieve... Decapode Azur wrote: hello, Is it possible to make php scripts working like deamons and build something like a server? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: limit mysql connections

2004-01-09 Thread pete M
check out the mssql.max_links setting in php.ini There's a dew other settings in there 200 pete Diana Castillo wrote: Is there any way to limit the connections so that this error never happens? Warning: mysql_connect(): Too many connections at /home/local/global/php/libraries/dblayer_mysql.php li

Re: [PHP] PHP newbie question

2001-01-10 Thread Dave M.
If you don't assign a value for $a why would PHP assign it one? The statement if(!$a) should not assign a value to $a. Thus when print $a is executed, $a still has no value. BTW: 0 is false. Dave M. Online Services, USA - Original Message - From: "Neil Zanella" <[EM

[PHP] Quick Shipping

2001-01-22 Thread Dave M.
Does anyone have a piece of code that calculates shipping costs in real time, that could easily be placed into an existing e-commerce site? Thanks. Dave M.

<    1   2   3   4   5   6   7   8   9   10   >