[PHP] PHP+MySQL on Apache running on WinXP

2003-07-07 Thread Vince
I have set up a new development machine on my windows xp using APACHE version 2.0.46. Next, I set up PHP version 4.3.2 and MySQL version 4.0.13. Then, when I tested the installation, phpinfo() lists my CLIENT API VERSION for MYSQL as 3.23.49. 1. Is this normal? 2. If not, what have I done wron

[PHP] RFQ: Compile php5 for winCE 5.0 device

2005-03-12 Thread Vince
other companies you have done work for. If this was the wrong place to post such a thread my apoligies to the admins. Thanks for taking the time to read this. If you have any questions feel free to send me an email. -Vince -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Connect Active Directory using LDAP... please help :)

2003-07-02 Thread Vince C
ny comment are welcome! Thanks! Vince P.S. Here is my code: Brand New Checking.. AD Test Connected and ready to bind..."; if (!($res = @ldap_bind($ldap, $dn2, $password))) { print(ldap_error($ldap) . ""); die ("Could not bind the $dn2");

[PHP] Re: Connect Active Directory using LDAP... please help :)

2003-07-03 Thread Vince C
quot; something like this? I really confuse the login format of this and so does "objectClass" stuff for filter. Could you give me an idea? Do you know any web site that talk about this ? Thank you very much! Vince "Sven" <[EMAIL PROTECTED]> wrote in message news:[

[PHP] problem matching multiple times

2003-07-17 Thread Vince LaMonica
it makes. I'm sure I need a while loop in there somewhere, but I can not figure out where. I know the code is looping through the other substitutions ok, since all text that should be bold is, and all links that need to be made into valid URIs are. The db query does run fine if running

Re: [PHP] problem matching multiple times

2003-07-18 Thread Vince LaMonica
On Fri, 18 Jul 2003, Curt Zirzow wrote: } btw, you know you can do this in one step: } } $message = preg_replace("/\[(i|b)\](.*?)\[\/(i|b)\]/si", "<\$1>\$2", $message); Doh! Thanks for the tip...that'll save some lines of code :) } > $patterns[3] = "#\#\#\#Image(.*?)\#\#\##si"; } > // this mat

Re: [PHP] Using href as a submit for a form

2003-07-18 Thread Vince LaMonica
that the values submitted by the user are valid. register_globals being off is a step, but there are a lot of error correction functions you should run before submitting form data into a db. HTH, /vjl/ -- Vince LaMonica UC Irvine, School of Social Ecology W3 Developer

Re: [PHP] problem matching multiple times

2003-07-18 Thread Vince LaMonica
before you } save it, parse it for all the special tags you have and keep track of it } somewhere. That way when you output it (in this script) you only need } to apply the necessary pattern/replacements before outputing it to the } browser. Good idea! Thanks very much! Thanks again for your h

[PHP] using fwrite to create PHP files

2003-09-05 Thread Vince LaMonica
Hi all, I wish to use fwrite() to create a small PHP file. So far, when I attempt to do this, php parses the contents of the file that fwrite needs to create. Eg, I have this: $new_id = mysql_insert_id(); // create brand new file $new_file = fopen("/var/www/html/$sitename/$submitted_url", "w"); $

[PHP] readfile() and 401 pages

2004-01-16 Thread Vince LaMonica
a PHP error stating that HTTP/1.1 Authorization Required in line 2 of the above page. Does readfile() not pass along 401s to the browser? I know I can do an alias in apache's setup, which is what I plan on doing if readfile() can't be made to work. But I am curious if this is a limitation or de

[PHP] HTTP_POST_FILES and Mozilla 0.9.9

2002-04-17 Thread Vince LaMonica
x27;tmp_name' is assigned properly]. Is this a browser/gecko bug, or a PHP bug? TIA, /vjl/ [who noticed bugs #11198, 10602, 16426 and 13863, but all are closed] -- Vince LaMonica UC Irvine, School of Social Ecology W3 Developer <*> 116 Social Ecology I,

Re: [PHP] Re: verify file types when uploading to server...

2002-04-18 Thread Vince LaMonica
'filename']['type'] varible [note that "filename" is the name passed from your form - "type" is the actual string you need to use to access the mimetype. Read http://us.php.net/manual/en/features.file-upload.php for more info on this. HTH, /vjl/ -- Vin

[PHP] Need help calling multiple functions with if_is

2010-07-31 Thread Vince Leibowitz
age(42)( (is_page(10)() >? I suspect I am either not using the appropriate number of spaces, or am not using the right syntax when trying to call different objects or functions if the page is different. I've manipulated php code before, but never to this extent. If anyone can help me out, I&#x

Re: [PHP] Need help calling multiple functions with if_is

2010-07-31 Thread Vince Leibowitz
e original code string. On Sat, Jul 31, 2010 at 2:25 PM, Jason Pruim wrote: > Hi Vince, > > > On Jul 31, 2010, at 3:15 PM, Vince Leibowitz wrote: >> >> ) >> (is_page(42)( (is_page(10)(> wpads('leaderboard5);?>) >? > > Try: > > >> &g

Re: [PHP] Need help calling multiple functions with if_is

2010-07-31 Thread Vince Leibowitz
Peter, That works like a dream! Thanks very much for your help and pointing me to those pages. I've already noticed something over there that will fix another problem I've been having. You folks are great for offering the assistance. Have a good weekend. Vince On Sat, Jul 31, 2010

[PHP] Question about losing port number

2011-09-26 Thread vince chan
Hi: I have a general question about PHP: So basically I have a link, and I want the href to be absolute., so I do 'https://' . $_SERVER['HTTP_HOST'] . '/login' ; this gives me https://127.0.0.1/login on my local; however, what i really want is https://127.0.0.1:9090/login, it is missing ":9090". I

[PHP] index.php not autoloading in apache

2008-08-25 Thread Vince Sabio
? I mean, other than the wetware? Muchas gracias ______ Vince Sabio [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: index.php not autoloading in apache

2008-08-25 Thread Vince Sabio
** At 13:03 +0200 on 08/25/2008, Carlos Medina wrote: Vince Sabio schrieb: I am running PHP v5.2.6 on an Apache v2.2 server. For some reason, Apache is not automatically loading index.php files, even when there is no other index.* file in the directory; it will throw a "you do not

[PHP] splitting CSV rows into multiple SQL inserts?

2005-06-21 Thread Vince LaMonica
I sent this note off to the php-db list last night, but the more I thought about it, the more I figured this was a general looping question rather than a mysql-specific one. I am attempting to take a CSV file that has order header and line item data on each line and split it into mulitple inse

Re: [PHP] Re: splitting CSV rows into multiple SQL inserts?

2005-06-22 Thread Vince LaMonica
On Wed, 22 Jun 2005, Sergey wrote: } You can insert file data in DB first, using LOAD DATA INTO FILE, after it'll } be easy to manipulate this DB table with a help of php-script. Actually, I can't, as the CSV contains fields for two different tables. I may have explained it better here: I have

Re: [PHP] Re: splitting CSV rows into multiple SQL inserts?

2005-06-22 Thread Vince LaMonica
uld be an array of arrays, key would be ordernumber } again, then the sub array would be the line number. You can set to 1, then } increment until you detect a new ordernumber The contents of the detail sub } array contains $item_num, $quan, $desc. Loop through this this array to } produce your d

Re: [PHP] Opensource webshop

2005-09-22 Thread Vince LaMonica
On Fri, 23 Sep 2005, Jasper Bryant-Greene wrote: } > > There are probably dozens of free open source PHP carts already out } > > there. Not to mention the ones written in Perl. } > > } > Are there many in just PHP to? } } As he said, there are probably dozens. Four of the PHP-based ones are lis