[PHP] Regex Help

2002-12-19 Thread Jim
Could someone show me how to use preg_replace to change this: test test test into: anotherword test anotherword basically, I want to change a value only if it is not in an option tag. I also want to account for situations like : test, something test test! My thoughts were to do the repla

Re: [PHP] Regex Help

2002-12-19 Thread Jim
anotherword' only if it is not within the option tag. Thanks! - Original Message - From: "Rick Emery" <[EMAIL PROTECTED]> To: "Jim" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, December 19, 2002 12:42 PM Subject: Re: [PHP] Regex Help

Re: [PHP] Regex Help

2002-12-19 Thread Jim
Thanks for helping. Unfortunately, that doesn't quite accomplish the task either. The other example for my first post would be mangled with that. - Original Message - From: "Rick Emery" <[EMAIL PROTECTED]> To: "Jim" <[EMAIL PROTECTED]>; <[EMAIL

Re: [PHP] Regex Help

2002-12-19 Thread Jim
Whoops, sorry post aborted prematurely. What I was going say say was that: test, something test test! should become: anotherword, something test anotherword! Thanks again for helping! - Original Message - From: "Jim" <[EMAIL PROTECTED]> To: <[EMAIL PROTECT

[PHP] Error handling with multiple file uploads and sql

2003-01-06 Thread Jim
27;t known as it hasn't been created yet. Ahh!! My next thought was to upload the files first, then insert the 'Items' record, then insert the multiple 'Pictures' records.I figure if the 'Items' insert works, the likelihood is that the 'Pictures'

Re: [PHP] Error handling with multiple file uploads and sql

2003-01-06 Thread Jim
wever its fair to assume though that if the first -- insert worked, these will too. Opinions? Thanks, Jim. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MySQL vs PostgreSQL

2003-01-06 Thread Jim
re and how they compare to true transactions. Jim. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Column size, user input and htmlspecialchars

2003-01-10 Thread Jim
ow do you guys go about resolving this situation? Thanks for any input, Jim. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Help on preg_split

2003-03-26 Thread Jim
20202 " Then I thought that $date = preg_split("/[\D]+/",trim($datestring)) whould do the job, but it didn't. Why? and how should it be? Many thanks in advance! br Jim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Mod function

2002-01-18 Thread Jim
I am looking for a mod() function in PHP but unfortunately I am unable to find one. Please help... ( °> Jim-Christian Flatin //\\ Skien / Norway / \/ ) [EMAIL PROTECTED] '-<< http://niteshift.d2g.com

Re: [PHP] Why is imageTTFtext function useless?(again)

2002-04-26 Thread Jim
Your problem doesn't have anything to do with PHP. The error says that libgd doesn't offer freetype support, so you need to get a more current version of gd. Regards, Jim Heffner >No idea, check your config.log and see why it is failing. > >On Thu, 25 Apr

[PHP] Issues displaying data from database & organizing by category

2002-03-15 Thread Jim
I'm new to PHP so bare with me please. I'm collect data fine from mySQL into an accociative array. I can display it fine. Here's the issue: ** Looks like this: GALLERY 1 Item Name Item Desc GALLERY 2 Item Name Item Desc GALLERY 2 Item Name Item Desc GALLERY 3 Item Name I

[PHP] run php in commandline

2001-10-31 Thread JIM
hi all, i want to know how i can feed a parameter into a php script in commandline? eg. php getdata.php apple orange so, i want to get use of "apple" and "orange"... any help pls! jim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTE

[PHP] run php in commandline

2001-10-31 Thread JIM
hi all, i want to know how i can feed a parameter into a php script in commandline? eg. php getdata.php apple orange so, i want to get use of "apple" and "orange"... any help pls! jim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [

[PHP] fto_connect() failed??

2001-11-01 Thread JIM
hi all, i was developing in redhat 7.2. with php/4.0.4pl1. iwas able to use ftp_connect(). but, in a freebsd with php/4.0.6, it returns error that "call to undefined function"... anyone can help? thanks. im -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROT

Re: [PHP] ereg help

2001-12-03 Thread Jim
Pes, http://zliypes.com.ua >> >> > > > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Jim Mu

Re: [PHP] RealMedia

2001-12-03 Thread Jim
t; >Can anybody advise me on what to do please? > >Randum Ian >DJ / Producer / Web Designer >[EMAIL PROTECTED] - 07903 067339 >Webmaster: http://www.randumian.co.uk >Webmaster: http://www.danceportal.co.uk -- Jim Musil - Multimedia Programmer Nettmedia -

Re: [PHP] problem with ImageCreateJPEG ...

2001-12-03 Thread Jim
> >what is my problem???? > >-- >Best Regards >Miguel Joaquim Rodrigues Loureiro > > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contac

Re: [PHP] Session_start() issue??

2001-12-03 Thread Jim
the php.ini I >should change? > >Any thoughts would be greatly appreciated. > >Chris > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list adm

Re: [PHP] Session_start() issue??

2001-12-03 Thread Jim
greatly appreciated. > >Chris > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Jim Musil - Mult

[PHP] Duplicating a mySQL row

2001-12-03 Thread Jim
What's the best way to duplicate a mysql row with PHP and MYSQL? -- Jim Musil - Multimedia Programmer Nettmedia - 212-629-0004 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

[PHP] Re: Duplicating a mySQL row

2001-12-03 Thread Jim
; > >-- > >Julio Nobrega > >Don't eat the yellow snow. > > >"Jim" <[EMAIL PROTECTED]> wrote in message >news:p0510100fb8318736de56@[192.168.1.17]... >> >> What's the best way to duplicate a mysql row with PHP and MYSQL? >> &g

Re: [PHP] Uploading to Apache server from VB

2001-12-03 Thread Jim
>If not, could somebody please explain why not? > >Thanks in advance for your help, > >henk sandkuyl > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the li

RE: [PHP] Multidimensional array construction

2001-12-03 Thread Jim
,"c","d",array("a","b","c","d")); $i = 1; extract($my_array,EXTR_PREFIX_ALL,"SOMEVAL".$i++); print ""; print $SOMEVAL_1; print $SOMEVAL_2; print $SOMEVAL_3; print $SOMEVAL_4; print $SOMEVAL_5; print "";

RE: [PHP] Multidimensional array construction

2001-12-03 Thread Jim
> >print $SOMEVAL_1; >print $SOMEVAL_2; >print $SOMEVAL_3; >print $SOMEVAL_4; >print $SOMEVAL_5; > >print ""; > >... will produce: > >a >b >c >d >[Array] > >Which is cool. Not quite what you wanted, but maybe you could run with it. >

Re: [PHP] Dynamically created dropdowns

2001-12-04 Thread Jim
ROTECTED] >[EMAIL PROTECTED] >http://openlearningcommunity.org > > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL P

Re: [PHP] sizeof($array) with a twist

2001-12-04 Thread Jim
function >that does this? Sizeof() appears to lack condition parameters... > >...Rene > >--- >René Fournier >[EMAIL PROTECTED] > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail:

Re: [PHP] ASP to PHP ...

2001-12-04 Thread Jim
e, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Jim Musil - Multimedia Programmer Nettmedia - 212-629-0004 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.n

Re: [PHP] Extract data

2001-12-04 Thread Jim
the $ in front of your variables in your list constructor Jim >Content-type: text/plain; >Content-encoding: base64 > >Hello guys > >I'm making poll script that stores data like this: > >0|0|0|0|0 > > > > >But i'm getting this error all the ti

Re: [PHP] header("Location:blah...") - passing variables

2001-12-04 Thread Jim
will work, but the bad password will be visible in the query string. 3. Start a session at the login page and register the variables you need to use on the login page. Jim >Hi, > >I wonder if someone could tell me whether or not the following is >possible? > >I have an HTML

Re: [PHP] Extract all fields of a table to vars of same name

2001-12-04 Thread Jim
I do this ... $query = mysql_query("SELECT * FROM foo"); $data = mysql_fetch_assoc($query); extract($data); if you need all the rows from the query, do ... $query = mysql_query("SELECT * FROM foo"); while($data = mysql_fetch_assoc($query) { extract($data); }

Re: [PHP] session in https

2001-12-04 Thread Jim
; > >I receive blanks ... although the session is set in the /temp directory. It >has a value in it but I don't have permission to read the value of my sess. > >By the way... I use php4.06 > >Please help > >THX > >Luc > > > > > >-- >PHP Gene

Re: [PHP] How to resize a jpeg?

2001-12-04 Thread Jim
>-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Jim Musil - Multimedia Programmer Nettmedia -

Re: [PHP] How to resize a jpeg?

2001-12-04 Thread Jim
-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Jim Musil - Multimedia Programmer Nettmedia - 212-

Re: [PHP] Column name not liked by PHP/ODBC and Access

2001-12-04 Thread Jim
I've searched high and low for _good_ PHP/MSACCESS info, but the fact is not that many people use it. What I've found very helpful is to use MS ACCESS' SQL builder to test out my queries. Fairly reliably, if it works there, it'll work in PHP. Jim >On Tuesday 04 Dece

Re: [PHP] Column name not liked by PHP/ODBC and Access

2001-12-04 Thread Jim
quire some input, then it will error out if you don't supply any. Jim >On Tuesday 04 December 2001 23:25, Jim wrote: >> I've searched high and low for _good_ PHP/MSACCESS info, but the fact >> is not that many people use it. > >I know. It's not my choice, be

Re: [PHP] delete array item and resort

2001-12-05 Thread Jim
$array = array("a","b","c"); print_r($array); unset($array[1]); print_r($array); $array = array_values($array); print_r($array); -- produces Array ( [0] => a [1] => b [2] => c ) Array ( [0] => a [2] => c ) Array ( [0] => a [1] =&

Re: [PHP] possible to override session.auto_start in php.ini

2001-12-05 Thread Jim
ist (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Jim Musil - Multimedia Programmer Nettmedia - 212-629-0004 [EMAIL PROTECTED]

Re: [PHP] How do I pass variables from a PHP script to an HTMLdocument?

2001-12-05 Thread Jim
Why don't you try sessions? They make this sort of thing easy by letting you store all the data in $form and making it available on subsequent requests to this or other scripts. http://php.net/sessions Jim >Hi, > >I currently have a form that calls a PHP script when submi

Re: [PHP] What is causing duplicate keys?

2001-12-05 Thread Jim
You should specify the column names to prevent this from happening. Such as ... INSERT INTO rcensioni (col1,col2,etc) VALUES ('value','value','etc...') Just make sure you don't specify the column that is autonumbering. Jim >Hello, > >Always st

Re: [PHP] Is php safe for e-commerce applications?

2001-12-05 Thread Jim
kids waiting to graduate/degradate to Java! >Tell me the techno-geeks haven't won! > >Hell.. > > >George > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROT

[PHP] require_once

2010-10-18 Thread jim
I'm having a problem including files using Zend Framework. I have in a controller file this require_once "models/Member.php"; and it doesn't work ,nor does require_once "../models/Member.php"; Anyone know what's going on with this? Jim W. -- PHP Gener

Re: [PHP] require_once

2010-10-19 Thread jim
I am following an example. Also, doesn't that require the class name to be something like models_members? Jim On 10/19/2010 09:40 AM, chris h wrote: I'm having a problem including files using Zend Framework. I have in a controller file this Jim why not use the Zend

[PHP] Can't find .php3 files

2008-01-08 Thread Jim
riate documentation or give me a hint as to what is going on here? Thanks, Jim. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Can't find .php3 files

2008-01-08 Thread Jim
ssing. Apache or php but I don't know which. The old server is a Linux system, while the new one is a bsd system (OS X). Both systems have the AddType application/x-httpd-php .php3 Line in their configuration. Thanks, Jim. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Can't find .php3 files

2008-01-08 Thread Jim
d Both systems have the AddType application/x-httpd-php .php3 Line in their configuration. And the new one has been restarted more than once. In fact that line was in there from the start, I didn't add it. I'll have to look to see what config file it's in to be sure it's

Re: [PHP] Can't find .php3 files

2008-01-09 Thread Jim
ache, just the file systems. We did look at the php.ini file in /etc and it was pretty much innocuous. Looked like a default from when the system was installed. I'll have a closer look today. Thanks. Jim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Can't find .php3 files

2008-01-09 Thread Jim
Ford, Mike wrote: On 09 January 2008 12:18, Anup Shukla wrote: Jim wrote: Hi, Mike, The include is more like require "../admin/admin.php3" I don't know exactly how Apache performs its magic so I wasn't sure that the request for an include file would even pass th

Re: [PHP] PHP Testing

2003-01-02 Thread Jim Lucas
p code in the sent page. Is this possible, can it be done, and if so, how? Jim - Original Message - From: "Paul Marinas" <[EMAIL PROTECTED]> To: "Jim Lucas" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, January 02, 2003 4:33 PM Subject

[PHP] Limit to size of autoindex in MySQL/PHPMyAdmin?

2003-01-03 Thread Jim MacCormaic
t by reaching an id of 255? If so, can I fix this? Any help would be appreciated, as my database has to all intents and purposes lost its functionality once I cannot add further records. Jim MacCormaic Dublin, Ireland iChat/AIM : [EMAIL PROTECTED] -- PHP General Mailing List (http://www.p

Re: [PHP] Limit to size of autoindex in MySQL/PHPMyAdmin?

2003-01-03 Thread Jim MacCormaic
s. In my defence all I can say is that I'll remember it better this way ;-) Jim MacCormaic Dublin, Ireland iChat/AIM : [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Windows PHP vs Linux PHP

2003-01-15 Thread Jim Lucas
it has to do with declaring all php variables before using them in the script. $var=''; then do something with the variable. Jim - Original Message - From: "Beauford.2002" <[EMAIL PROTECTED]> To: "PHP General" <[EMAIL PROTECTED]> Sent: Wednesd

Re: [PHP] $HTTP_GET_VARS

2003-01-17 Thread Jim Lucas
checkout the most recent version of the help documents from php.net. it will tell you. something to do with $_GET, i think... Jim - Original Message - From: "Mike Tuller" <[EMAIL PROTECTED]> To: "php mailing list" <[EMAIL PROTECTED]> Sent: Friday, Januar

Re: [PHP] Loop inside a table

2003-01-20 Thread Jim Lucas
instead of doing that your should do this $message = " title goes here "; for ($x = 0; $x < $num_rows; $x++) { $message .= "some stuff"; } $message .= " "; you were also missing your last double quote. Jim - Original Message - From: "

Re: [PHP] Cannot show reuploaded image file on page unless manual refresh

2003-01-20 Thread Jim Lucas
I would add the modification time of the file in question with filetime($filename); that way you will be sure to get a unique argurment. Jim - Original Message - From: <[EMAIL PROTECTED]> To: "Chris Shiflett" <[EMAIL PROTECTED]> Cc: "Phil Powell" <[E

Re: [PHP] Re: Cannot show reuploaded image file on page unless manual refresh

2003-01-20 Thread Jim Lucas
. if someone looked at the file 2 seconds apart and it didn't change, it was waisted time and bandwidth down loading the file again. Jim - Original Message - From: "Philip Hallstrom" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, January 20, 2003 4:11 P

Re: [PHP] pop-up problem

2003-01-20 Thread Jim Lucas
more then one copy of netscape or mozilla at a time. Jim - Original Message - From: "Step Schwarz" <[EMAIL PROTECTED]> To: "Mark McCulligh" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, January 20, 2003 4:07 PM Subject: Re: [PHP] pop-up problem

Re: [PHP] DOWNLOAD

2003-01-21 Thread Jim Lucas
People often for get about a little problem that happens with the I found a bug when developing a download script a year or so ago. You can't have the 'attachment;' part in IE. It did some funky stuff and netscape 4 would die without it. Jim - Original Message -

Re: [PHP] Detecting posts from outside site

2003-01-21 Thread Jim Lucas
what about checking the checking the remote ip address? Jim - Original Message - From: "Chris Shiflett" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, January 21, 2003 10:45 AM Subject: Re: [PHP] Detecting posts from outside s

[PHP] Quick Question about Template Parsers

2003-01-22 Thread Jim Lucas
... more questions to come... Jim

Re: [PHP] Select value for driopdown box

2003-01-22 Thread Jim Lucas
function DrawOptions($options, $active='') { $str = ''; foreach($options AS $key=>$value) { $sel = ($active==$key?" SELECTED":""); $str .= "".$value."\n"; } return($str); } Try this array needs to be a key-value pair that has the value that you are looking for as the key and

Re: [PHP] Reading Directory in reverse

2003-01-22 Thread Jim Lucas
you'll have it. Jim - Original Message - From: "Bob Irwin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 22, 2003 3:03 PM Subject: [PHP] Reading Directory in reverse > Hi Guys, > > Does anyone happen to know why the below

Re: [PHP] a simple getenv question....

2003-01-22 Thread Jim Lucas
just copied your code and it worked fine for me. system: Apache 1.3.26 PHP 4.2.2 I would look into apache 2.0 and the env vars that are available from it. - Original Message - From: "Bruce Douglas" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 22, 2003

Re: [PHP] total file size

2003-01-23 Thread Jim Lucas
yes, it is possible, but not with php. Jim - Original Message - From: "Victor" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 22, 2003 8:10 PM Subject: [PHP] total file size > Is there a way to find out total upload file size from a file

Re: [PHP] why is mv copying ??

2003-01-24 Thread Jim Lucas
om its original point, then you can't do an mv command successfully. Check your permissions on the original file, find out if apache is the owner. that will tell you if you can delete the file. Jim - Original Message - From: "Christian" <[EMAIL PROTECTED]> To: <[EM

Re: [PHP] help me

2003-01-24 Thread Jim Lucas
the only difference to structure is this line is in the first file and not the second. fw_menu_2.addMenuItem("STANDARD PROMOTION","location='http://www.bis.org.in/sf/sfp2.htm'"); diff is a wonderful tool!!! Enjoy Jim - Original Message - From: "

[PHP] Using MySQL user variables in PHP

2003-01-26 Thread Jim MacCormaic
(e.g. @recent_presenter) or a value like Resource ID#2 is being used instead. Is it possible to do what I desire. If so, where am I going wrong? Jim MacCormaic Dublin, Ireland iChat/AIM : [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Using MySQL user variables in PHP

2003-01-26 Thread Jim MacCormaic
ou can now use $presenter in your last query All code untested, handle with care. Code successfully incorporated and working as intended. Thanks for the help. Jim MacCormaic Dublin, Ireland iChat/AIM : [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Form Variables not getting passed || Apache, MySql, Win 2k Setup

2003-01-29 Thread Jim Lucas
then run extract($_REQUEST); just above where you want to use the var1 var2... and it will place all the key => value pairs into the local scope. Jim - Original Message - From: "Noah" <[EMAIL PROTECTED]> To: "Philip Olson" <[EMAIL PROTECTED]> Cc:

Re: [PHP] Form Variables not getting passed || Apache, MySql, Win 2k Setup

2003-01-29 Thread Jim Lucas
why would it matter if he does it just above the place that he is going to use them? doesn't matter if he is in a function or not. the $_REQUEST var will always be available. if he calls a function then he would have to do it just inside the function or pass it to the function.

Re: [PHP] Backticks and echo

2003-02-19 Thread Jim Lucas
you could always to a preg_replace() and replace the backticks with their &#xxx; equal. Jim - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 19, 2003 4:27 AM Subject: [PHP] Backticks and echo > Hello everyone > >

Re: [PHP] Cannot find php.ini

2003-02-21 Thread Jim Lucas
the default location for the php.ini file (if installed with the RPM's) is /etc/php.ini Jim - Original Message - From: "Kevin Paz" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 21, 2003 11:03 AM Subject: [PHP] Cannot find php.ini > >

Re: [PHP] What do these errors mean?

2003-02-21 Thread Jim Lucas
in the first line of the code you are refering to $_GET[option] option in this case is being seen as a constant. if you were to put single or double quotes it would work. the second notice means that in the $_GET array, there isn't a key called option it would probably work better if you did th

[PHP] Problem with php and ldap...

2003-02-24 Thread Jim Greene
tried taking the needed pices of each script and combining them, but when I do I get an error about somehting in the info array not being correct.. Wierd thing is that it works fine when they are seperate.. Any help is greatly appreciated.. Thanks... Jim G -- PHP General Mailing List (http

[PHP] Removing URL Variables

2003-02-24 Thread Jim Pringle
I've noticed some sites that have variables in the link (template.php?tpl=fold), but when the page is displayed, the variable is not visable in URL in the address window. How do you do this? thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/uns

[PHP] ldap modify + add problem

2003-02-26 Thread Jim Greene
ot;top"; $info["uid"]="test2"; $info["gecos"]="test"; $info["cn"]="test2"; $info["homeDirectory"]="/home/test1"; $info["userPassword"]="{crypt}test123"; if (($ldap = ldap_connect("ldap.server","389"))) { echo "Bind Good...\n"; } else { echo "Connection Failed...\n"; } if (($res = @ldap_bind($ldap, $dn, $bindPassword))) { ldap_add($ldap, "uid=test2, ou=Users, dc=megalink, dc=net", $info); echo "User Added...\n"; } else { echo "Addition Failed...\n"; } ?> Jim G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Problem wit doing ldap_add and modify in same script

2003-02-26 Thread Jim Greene
them as 2 seperate scripts works fine. I did read something about not being able to do a modify, and add in the same statment, so I do a ldap_unbind after the completion of the first. Still does the same thing. Any help would be appreciated.. Thanks Jim G -- PHP General Mailing List (http

[PHP] sort mixed array

2003-02-27 Thread Jim Long
Hi, I have an array with an html link as key and different $vars as val: $list = array ( 'http://someplace.com/";>some place' => $vendor1_total, 'http://anotherplace.com/";>another place' => $vendor2__total, [snip] etc.. some vals are numeric and some vals are "n/a" asort works to sort the arra

[PHP] restating plea for help with sort

2003-02-27 Thread Jim Long
ome vals are "n/a" asort works to sort the array as a string, however, I need to sort the numeric vals numeric, then have the n/a's go away or be output at the bottom of the sort. Please be clear and gentle.. I'm not schooled in php, just a tinkerer trying to make this mess wor

[PHP] help with arrays

2003-02-27 Thread Jim Long
Using this: while (list ($key, $val) = each ($orderd_list)) { if ($val == 'n/a'){ $no_plan_list = array ($key => $val);// need an array here for "n/a" }else{ $plan_list = array ($key => $val);// need an array here for numeric vals } } Thanks In Advance, Jim Long -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] separating value="n/a" from array

2003-02-27 Thread Jim Long
nal_array = array_merge($numeric_array, $na_array); > <-- End Code --> This works.. THANKS! HOWEVER: I think PHP is seeing a comma, in a large number and think that it IS NOT NUMERIC, because when I test a large number it put it in the $na_array Do I need to add something to this cod

[PHP] PHP SORT_NUMERIC

2003-02-27 Thread Jim Long
Hi, I've got to sort the $numeric_arry This doesn't seem to work: sort ($numeric_array, SORT_NUMERIC); I think its sorting $key asort ($numeric_array, SORT_NUMERIC); sorts as a string THANKS AGAIN IN ADVANCE, Jim Long JanetVal Wrote: > Well, as long as you know exactly what yo

[PHP] SORT_NUMERIC

2003-02-28 Thread Jim Long
;s ignoring everything after a comma when it sorts. TIA, Jim Long BTW: asort is the one I need as I must maintain the keys JanetVal Wrote: > sort() sorts by value but assigns new keys as numbers. > asort() sorts by value, but keeps the same

[PHP] strip comma from $value

2003-02-28 Thread Jim Long
cho("comma striped"); } } -- It passed the test but, I'm doing something wrong because the commas are still there. TIA, Jim Long Jim Long Wrote: > Does anyone know how to make the flag "sort_numeric" work? > Will it work with asort? > > asort ($numeric_array, SORT_NU

[PHP] re: strip comma from $value

2003-02-28 Thread Jim Long
ut does not actually remove the commas THANKS.. any other ideas? Jim Long -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] re: strip comma from $value

2003-02-28 Thread Jim Long
Hi, Thanks to those who are helping me. Matt, Same result, echo's sucess, but commas are still out put in the $numeric_array. Jim Long Matt Wrote: > foreach($numeric_array as $key => $value ) { > if(strstr($value,",")) > { > $valu

[PHP] re: sort comma from $value

2003-02-28 Thread Jim Long
uot;,","", "$value"); $numeric_array[$key] = $value; //<reset the output array echo "comma stripped"; } } Thanks again for all your help, Jim Long -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] deciperhing oop

2003-03-03 Thread Jim Lucas
the second argument in the mysql_select_db call in not in scope. you should be using $this->db instead of $db Jim - Original Message - From: "Larry Brown" <[EMAIL PROTECTED]> To: "PHP List" <[EMAIL PROTECTED]> Sent: Monday, March 03, 2003 2:52 PM Sub

Re: [PHP] File Download

2003-03-06 Thread Jim Lucas
have the file download in a popup window. after the down load the window will be gone. Then you don't have to worry about the refreshing of the main window. Jim - Original Message - From: "David Miller" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thurs

Re: [PHP] javascript

2003-03-07 Thread Jim Lucas
Plus, what if their was a textarea that you can't reload from the process page because the amount of data was greater then the max limit of the GET protocol? Then you would loose all that data. - Original Message - From: "David Miller" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Fr

Re: [PHP] Dollar signs in values

2003-03-07 Thread Jim Lucas
How are you including the file in question? Jim - Original Message - From: "Liam Gibbs" <[EMAIL PROTECTED]> To: "php list" <[EMAIL PROTECTED]> Sent: Thursday, March 06, 2003 9:58 PM Subject: [PHP] Dollar signs in values How is it I can properly get PH

Re: [PHP] MySQL Alias and PHP

2003-03-07 Thread Jim Lucas
Then the information in the DB is the same. Jim - Original Message - From: "Charles Kline" <[EMAIL PROTECTED]> To: "Rich Gray" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, March 07, 2003 10:03 AM Subject: Re: [PHP] MySQL Alias and P

Re: [PHP] Min and max of array

2003-03-07 Thread Jim Lucas
make a copy of the original array and sort that, when you find it correct key, use that to refer to the correct value in the original array. Jim - Original Message - From: "Liam Gibbs" <[EMAIL PROTECTED]> To: "php list" <[EMAIL PROTECTED]> Sent: Friday, Mar

Re: [PHP] header function

2003-03-07 Thread Jim Lucas
if you put this at the very to of the page, I am guessing then that you haven't ran session_start() ?? if you are trying to access a value stored in a session variable, you need to initialize the session first, then access the variable. Jim - Original Message - From: "B

Re: [PHP] $PHPSESSID

2003-03-08 Thread Jim Lucas
I think it might have something to do with --enable-trans-sid read up on that Jim - Original Message - From: "Liam Gibbs" <[EMAIL PROTECTED]> To: "php list" <[EMAIL PROTECTED]> Sent: Friday, March 07, 2003 8:45 PM Subject: [PHP] $PHPSESSID First of all

Re: [PHP] file_exists() question

2003-03-08 Thread Jim Lucas
what does $annrow[id] return? I HAVE found that I have to refer to a file when using file_exists() from / so file_exists("/path/to/me/cherpdocs/filename.doc") for it to work right. Jim - Original Message - From: "Charles Kline" <[EMAIL PROTECTED]> To

Re: [PHP] Array - Newbie question

2003-03-08 Thread Jim Lucas
"BT", "BT «Book Title»") ); you must place the 5 elements in a sub array Jim - Original Message - From: "John Taylor-Johnston" <[EMAIL PROTECTED]>

Re: [PHP] ob_start -- output buffer problem

2003-03-10 Thread Jim Lucas
e the ob_get_contents(); or ob_end_clean(); then PHP waits until everything is done, and then flushes. Jim - Original Message - From: "Alex Lance" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, March 09, 2003 2:22 AM Subject: [PHP] ob_start -- output buffer problem

Re: [PHP] php-general as REPLY TO

2003-07-01 Thread Jim Lucas
You could signup with a company like yahoo.com or hotmail or bend.com and you could then have a web based email service. You ALWAYS have choices... :) Jim Lucas - Original Message - From: "Ford, Mike [LSS]" <[EMAIL PROTECTED]> To: "'Derick Rethans'&q

Re: [PHP] Using INCLUDES in SAFE MODE

2003-07-02 Thread Jim Lucas
if you are on a linux system, you could always symlink the folders into the public_html dir. Jim Lucas - Original Message - From: "MIKE YRABEDRA" <[EMAIL PROTECTED]> To: "PHP List" <[EMAIL PROTECTED]> Sent: Wednesday, July 02, 2003 5:36 AM Subject: [

  1   2   3   4   5   6   7   8   9   10   >