Re: [PHP-WIN] Graphical popup wiindow on link mouseover

2004-08-18 Thread Justin Patrin
t using overlib. ;-) -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin-- -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-WIN] using the mail function in php

2004-08-18 Thread Justin Patrin
strip slashes http://us3.php.net/stripslashes > > stripslashes($messageVariable); > -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin-- -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-WIN] connection: close header

2004-08-13 Thread Justin Patrin
rrectly". What is the nature of the data > the application sends to the PHP and ASP pages, why does it need a > persistent connection (again, maybe this isn't the right question to > solve this problem) and what's the PHP page doing that the ASP doesn't. > Is it not ret

Re: [PHP-WIN] User Level Access Control Priviledges

2004-08-12 Thread Justin Patrin
http://pear.php.net/package/LiveUser -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin-- -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-WIN] User Level Access Control Priviledges

2004-08-12 Thread Justin Patrin
veUser does this. -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin-- -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-WIN] Mail functions?

2004-08-12 Thread Justin Patrin
that the SMPT server value points to a valid SMTP server? > > Thanks > > Tryst > -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin-- -- PHP Windows Mailing List (http://www.php.net/)

Re: [PHP-WIN] connection: close header

2004-08-12 Thread Justin Patrin
ctly, and a trace using ethereal showed that the > > difference was the "Connection: close" header being sent with > > the php page, while the "Connection" header was not present > > in the asp page's response. I tried using the latest version > > of php,

Re: [PHP-WIN] User Level Access Control Priviledges

2004-08-12 Thread Justin Patrin
to keep it in sync. Also, they just might not accept the code. If you need a system to plug into a PHP script, there are some good permissions packages out there. One is: http://pear.php.net/package/LiveUser -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/

Re: [PHP-WIN] Help: a NS7 problem

2004-08-11 Thread Justin Patrin
h to work right, myself. > MSIE6 works perfect but NS7 adds .php extension when I try to force NS7 > to download a file. How to fix this problem > > Thanks for help ... > Oleks > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://ww

Re: [PHP-WIN] PHP 5, IIS 6, no love....

2004-08-11 Thread Justin Patrin
ataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin-- -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-WIN] Passing arrays by reference

2004-08-09 Thread Justin Patrin
rror message: > > PHP Parse error: parse error, unexpected T_STRING, expecting T_VARIABLE > in... > > Anyone have any ideas or suggestions? > > Thanks, > Jim > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/

Re: [PHP-WIN] Setting redirect after HTTP upload

2004-08-04 Thread Justin Patrin
b_symbol'] == "Save Changes") > { >$sql = "UPDATE tblSymbols SET \"swmName\"='".safeSQL > ($_REQUEST['swmName'])."', \"swmImgPath\"='$img_name', > \"swmEpsPath\"='$eps_name' WHERE \"irpS

Re: [PHP-WIN] RE: Strange behaviour

2004-08-01 Thread Justin Patrin
echo ''; > ?> > > > > When I access the page with either FireFox 0.9 or IE 6.0 BLOCK TWO > prints ../media/ads/001.jpg but, BLOCK ONE is totally skipped over. > What does the HTML source of the web page look like? Can you put this online so we a

Re: [PHP-WIN] RE: Question

2004-07-31 Thread Justin Patrin
that awful message at the bottom of your mails. It's meaningless and annoying. -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin-- -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-WIN] RE: Strange behaviour

2004-07-31 Thread Justin Patrin
On Sat, 31 Jul 2004 15:15:33 -0700, Justin Patrin <[EMAIL PROTECTED]> wrote: > On Sat, 31 Jul 2004 22:13:49 +0200, Schalk Neethling > <[EMAIL PROTECTED]> wrote: > > > > > > Justin > > > > I copied your php string with the ; at the end and as befor

Re: [PHP-WIN] RE: Strange behaviour

2004-07-31 Thread Justin Patrin
all one one line. If that doesn't work: '; echo ''; echo ''; ?> Also, try setting $row_ads['full_img'] to something you know will work just before the echo. Perhaps your value in that array isn't populated. Try print_r($row_ads['full_img'])

Re: [PHP-WIN] Need help with PHP -> Mail -> SMTP -> Windows Exchange

2004-07-31 Thread Justin Patrin
mtp_host.""; > >$banner = @fgets($fp, 1024); >// perform the SMTP dialog with all lines of the list >foreach($smtp as $req){ >$r = $req[0]; >// send request >@fputs($fp, $req[0]); >// get available server messages and stop on errors >if($req[1]){ >while($result = @fgets($fp, 1024)){if(substr($result,3,1) == > " ") { break; }}; >if (!strstr($req[1],substr($result,0,3))) > echo"$req[2].$result"; >} >} >$result = @fgets($fp, 1024); >// close socket >@fclose($fp); >return 1; >} > > ?> > > Your help would be appreciate it! Thanks > So what's your problem exactly? You could always try going with another mailing solution: http://pear.php.net/package/Mail -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin-- -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-WIN] Strange behaviour

2004-07-31 Thread Justin Patrin
quot; />' ?> > 1) Put a semi-colon at the end of the line. 2) I would suggest not using the PHP tags inline as it makes the code hard to read 3) Have you looked at the source HTML for the page to see if anything gets output? '; ?> -- DB_DataObject_FormBuilder -

Re: [PHP-WIN] Parsing problem

2004-07-30 Thread Justin Patrin
t this error "Parse error: parse error, > unexpected T_STRING in c:\Inetpub\wwwroot\TestPHP\comments-view.php on line > 1" > > Can anyone help. > Turn off short_open_tag in your php.ini. -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/D

Re: [PHP-WIN] Confused

2004-07-30 Thread Justin Patrin
DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin-- -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-WIN] Question about the Apache 2.0 Warning in the PHP manual on the PHP web site

2004-07-22 Thread Justin Patrin
s means? This is the only warning I see. > Please search the archives before posting, we were talking about this yesterday. http://marc.theaimsgroup.com/?l=php-general&m=109021837828927&w=2 -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/D

Re: [PHP-WIN] Re: Handling Linux directory paths in Win32

2004-07-22 Thread Justin Patrin
e . '.php'); > >> } > >> > >> > >>>As that would mean the macro code would not slow the linux > >>>machine down at all when running the php script if it did > >>>not even have to evaluate to see if it did need to run the > >>>macro function, although I know php is a scripted language > >>>and not compiled like C/C++ so I don't think its possible > >> > >>Note: PHP goes through the compile step, it's just that everything is compiled > >>on demand. > >> -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin-- -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-WIN] HTML (Web Site) Parser

2004-07-09 Thread Justin Patrin
other people's > experiences... > > Thanks, > > -Flint > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > !DSPAM:40eecc5a7186397312192! > > -- DB_DataObject_FormBuilder - The database at your

Re: [PHP-WIN] Re: GTK - why not?

2004-07-08 Thread Justin Patrin
gt; telling me please, over who i could get some more informations. > > > > PS: sorry about my english, but its d**n late here. > > > > best regards > > CBQ > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.p

[PHP-WIN] Re: SOAP in php 4.3.7

2004-06-23 Thread Justin Patrin
Darren Horrocks wrote: is it posible to use SOAP in 4.3.7, or is it a php5 only thing? Yes, of course it is. PHP5 just has SOAP functionality built-in. I would suggest using PEAR::SOAP. http://pear.php.net/package/SOAP -- paperCrane -- PHP Windows Mailing List (http://www.php.net/) To unsubscrib

[PHP-WIN] Re: send XML thru POST

2004-06-11 Thread Justin Patrin
Joakim Ling wrote: Hi Im tring to send XML thru POST to a server. I have a demo in asp that works fine but how do I write this in php. This is the ASP demo sXML = " Call oHttpConn.Open("POST", sURL, False) Call oHttpConn.setRequestHeader("Content-Type", "Text/xml") Call oHttpConn.send(sXML) sXMLRe

[PHP-WIN] Re: pretty pictures

2004-06-02 Thread Justin Patrin
Ross Honniball wrote: Hello all, This is nothing to do with php, but it's the only list i'm subscribed to right now and I'm too lazy to join another. And you php people know more than just php, right? I'm chasing some very slick pretty pictures for drawing navigation buttons (ie. '<< start', '<

[PHP-WIN] Re: Hello and first question

2004-05-26 Thread Justin Patrin
Chris Patrick Carias Stas wrote: I have problems running php scripts under w2k. for example, a form to send a mail. I has 3 fields, name, email and msg. The actions goes through POST to a file send.php. In send.php i try to use the variables $name, $email and $msg, but it says they are not decla

Re: [PHP-WIN] Photo gallery with description

2004-05-11 Thread Justin Patrin
Lenny Davila wrote: I am trying to find a photo gallery (Preferrably PHP based) that I can set up for a client that would allow him/her to upload their own photos, and leave a caption under. The client will update the album regularly and wants to be able to do it on their own. They wouold also l

[PHP-WIN] Re: Can't set a cookie from within my SOAP server class

2004-05-11 Thread Justin Patrin
Noah Lively wrote: Hi all, I have a class that I'm using with a SOAP server. Inside of a function in this class, I am trying to set a cookie, but have been unsuccessful so far. I'm using PHP5 RC2 on Windows XP. Cookies set fine on my server in other places, such as classes (that aren't used for

[PHP-WIN] Re: Automated Login

2004-04-30 Thread Justin Patrin
Ron Herhuth wrote: I am trying to build an automated dashboard sort of thing that goes and checks if several of my clients sites are functioning and reporting back the findings. I have two types of URLs that I'm attmepting to check. 1) Typical static URLs example: http://www.yahoo.com 2) I would

[PHP-WIN] Re: Can you receive email with php?

2004-04-20 Thread Justin Patrin
Brent wrote: Hi, just wondering if anyone knows of some plugin or class etc that will allow me to receive email from a mail server via pop3. i have looked at PHP mailer but that only seems to send emails. Thanks, Brent. http://pear.php.net/package/Mail_IMAP -- paperCrane -- PHP Windows Mailing L

[PHP-WIN] Re: problems getting the GET method to work properly

2004-04-19 Thread Justin Patrin
Leonardo Javier BeléN wrote: I am using a winnt server 4.0 box with apache 1.3x and php 4.2.x to serve some intranet pages. The strange thing is that i am not able to use the get method properly. Has anyone an idea of what am i doing wrong? at least I need the session id to be populated by gets.

[PHP-WIN] Re: Update multiple records from a text field

2004-04-05 Thread Justin Patrin
Kaizer Boab wrote: This has still got me stumped. I tried the following script to update the table but I'm still experiencing the same result, only one row updates, the rest remain unchanged. while (list($k, $v) = each($qty)) { $newQty = $v; $update = "update cart set qty = $newQty WHERE track

[PHP-WIN] Re: Update multiple records from a text field

2004-04-02 Thread Justin Patrin
Kaizer Boab wrote: I have changed it to name="qty[]" . How would I reference it on my processing script? "Justin Patrin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Kaizer Boab wrote: Hi Justin, I only have the one qty field in the View Cart page. It

[PHP-WIN] Re: Update multiple records from a text field

2004-04-02 Thread Justin Patrin
Kaizer Boab wrote: Hi Justin, I only have the one qty field in the View Cart page. It is part of a loop to pull out all the quantities from the cart. It is retrieved via the script below:

[PHP-WIN] Re: Update multiple records from a text field

2004-04-02 Thread Justin Patrin
Kaizer Boab wrote: Hi everybody, I have built a shopping cart using tables. I am able to add items and remove items from the cart. The problem I am having is updating the quantities in the cart. When users view the cart they can see the quantity in a text field. I want to allow users to type in t

[PHP-WIN] Re: MySQL Limit Question

2004-03-31 Thread Justin Patrin
Tony Devlin wrote: How can I setup a query to select from a database ONLY the last 5 inserted rows. OR atleast the last 5 starting from this date back, but only select the last 5 in order. If anyone has any suggestions I'd appreciate them. Thanks, Tony I would set up a timestamp column in

[PHP-WIN] Re: PEAR vs. PHPLib

2004-03-29 Thread Justin Patrin
Jim Macdiarmid wrote: Can anyone shed some light on these two? Pros and Cons, etc. I've just ran across an article that mentions that PHPLib is the "defacto" standard. I've recently started using the PEAR::DB in a web application and I'd like to make sure that I'm working with something that is

[PHP-WIN] Re: PLEASE HELP...Email attachment corruption

2004-03-25 Thread Justin Patrin
Ron Herhuth wrote: I am dying here. I'm on a deadline and I can't get attachments...specifically PDFs and Word Docs to send without corruption. I am using the script below to send the emails, and I have used several of the classes on PHP.classes to try but everytime the files show up and the error

[PHP-WIN] Re: Email with attachments coming through damaged

2004-03-24 Thread Justin Patrin
Ron Herhuth wrote: Hi, I'm trying to send an attachment via email using the following function, but it keeps coming through damaged. I am having no trouble emailing the same attachment using OutLook. Is there something wrong with the function I'm using? The attachment shows up and I'm not gett

[PHP-WIN] Re: Replicating Double quotes

2004-03-23 Thread Justin Patrin
[EMAIL PROTECTED] wrote: Hi all, I have a problem in that when I am retrieving data from MySQL that containes double quotes, the double quotes gets repeat, and also the string that does contain double quotes gets double quotes added to the begin and end of it For example I get the following:

Re: [PHP-WIN] Re: Expression evaluation - how is it done?

2004-03-18 Thread Justin Patrin
BTW, that's called Short Circuiting. B.A.T. Svensson wrote: I asking because i read through the section about expression, but it was just wining about that $a == 5 if $a = $b and $b = 5, and other trivial matters. So if you could point me to the manual section you are referring to, I would apprec

[PHP-WIN] Re: An old dog, with a new trick..

2004-03-18 Thread Justin Patrin
If you're just starting out, this is a great time to learn PEAR DB as it can help you a lot in the future. In fact, PEAR is a great place to look for lots of code to do all sorts of things. http://pear.php.net http://pear.php.net/package/DB Felipe eduardo ortiz lópez wrote: Bueno, héme aquí, un

[PHP-WIN] Re: More Then one email

2004-03-10 Thread Justin Patrin
Will wrote: I have a problem. When I put 2 email addresses together it does not send the email. The coding is like this: $recipient = "[EMAIL PROTECTED], $_POST[email]"; The send form looks like this: $recipient = "[EMAIL PROTECTED], $_POST[email"; $mailheader .= "From: $_POST[email]\n"

[PHP-WIN] Re: Removing extra slashes from a path

2004-03-09 Thread Justin Patrin
Gerardo Rojas wrote: I am passing a path value from a form input to a script. For some reason, the path ends up with 2 slashes instead of one (which is the way i typed it in). Any help would be appreciated. Environment: PHP 4.3.4 Windows2000 Pro IIS 5.0 -- Gerardo S. Rojas mailto: [EMAIL PROTEC

[PHP-WIN] Re: HMTL E-mails with images (again)

2004-02-27 Thread Justin Patrin
Michael Horton wrote: Hi, Having just recently started to try and use php (by necessity- the only person in the department who used php left us recently). I'm trying to make a form to send out a specific e-mail to the selected recipients. I've managed to get it to send an html e-mail to the recipi

[PHP-WIN] Re: Connecting to MSSQL Server

2004-02-25 Thread Justin Patrin
Gerardo Rojas wrote: I am able to connect to my MSSQL server and do whatever i need to do. The problem lies in that when I close the connection and the script terminates normally. I do a 'netstat' on my machine i see that i still have a socket connection to all my databases. Isn't the mssql_clo

[PHP-WIN] Re: Date Conversion

2004-02-25 Thread Justin Patrin
Sudeep sarath wrote: Hi everyone, A small problem..Help me out of this. I have to convert the server date and time to my local date and time i.e Indian standard time(IST)(or to my system time). My program is : $display=date("F d, Y"); $time=date("H:i:s"); echo $display.""; echo $time; ?>

[PHP-WIN] Re: Running an exe from local drive

2004-02-24 Thread Justin Patrin
Harpreet K. Singh wrote: I am trying to run an exe file from my php page. But i get an error Access is denied I am trying to open the file using javascript document.location=fp Thismight be a javascript question but if any one can help that would be great Regards, I believe that javascript isn'

[PHP-WIN] Re: how to create a 2 colors(B&W) bmp image by php ?

2004-02-23 Thread Justin Patrin
Yuegong wrote: > Hi, > > How to create a 2 colors(B&W) bmp image by php ? > Thanks. > > yuegong > There is no built-in way to do this. The GD library functions only support creation of colored images. You can easily just use black and white. See http://us2.php.net/manual/en/ref.image.

Re: AW: [PHP-WIN] Re: Emailing via mail(), secondary servers

2004-02-19 Thread Justin Patrin
Manuel Lemos wrote: Hello, On 02/19/2004 02:35 PM, Justin Patrin wrote: I'd like to apoligize to the list for wasting bandwidth and venting like this. Not only did this huge conversation accomplish nothing, it was fairly personal and should have been conducted off list. I'll stop

Re: AW: [PHP-WIN] Re: Emailing via mail(), secondary servers

2004-02-19 Thread Justin Patrin
I'd like to apoligize to the list for wasting bandwidth and venting like this. Not only did this huge conversation accomplish nothing, it was fairly personal and should have been conducted off list. I'll stop doing such things unless they are on topic. But I won't stop proposing usage of PEAR p

Re: [PHP-WIN] Re: Emailing via mail(), secondary servers

2004-02-18 Thread Justin Patrin
Manuel Lemos wrote: Hello, On 02/18/2004 06:40 PM, Justin Patrin wrote: The main point of requiring a valid address has nothing to do with sending you spam, but rather to make it difficult for some authors to boost their top download ranking positions by creating many accounts and download

[PHP-WIN] Re: Working with Base64 data

2004-02-18 Thread Justin Patrin
Hubo wrote: When I attempt to view the generated test.jpg in a browser, it is unable to display. Same with photoshop and the windows built-in pic viewer. I know that the base64 data is not corrupted, since I can get it to display properly in netscape with the following code: echo ''; Unfortuna

Re: [PHP-WIN] Re: Emailing via mail(), secondary servers

2004-02-18 Thread Justin Patrin
Manuel Lemos wrote: Hello, On 02/18/2004 02:15 PM, B.A.T. Svensson wrote: The main point of requiring a valid address has nothing to do with sending you spam, but rather to make it difficult for some authors to boost their top download ranking positions by creating many accounts and download the

Re: [PHP-WIN] Re: Emailing via mail(), secondary servers

2004-02-17 Thread Justin Patrin
Manuel Lemos wrote: On 02/17/2004 07:26 PM, Justin Patrin wrote: However, I am more interested in legitimate users that download and try the code. This helps me test my code more intensively and iron any bugs or limitations much faster. I do not even wish or expect people to thank me. As long

Re: [PHP-WIN] Re: Emailing via mail(), secondary servers

2004-02-17 Thread Justin Patrin
Once more into the breach. Manuel Lemos wrote: Hello, On 02/13/2004 08:13 AM, B.A.T. Svensson wrote: Why would you go watching TV in the neighbours house when you have your own TV working at home? Because of the usual reasons: they might have a bigger or better TV, or they might have a broad

[PHP-WIN] Re: Emailing via mail(), secondary servers

2004-02-12 Thread Justin Patrin
Manuel Lemos wrote: >> >> No, not directly, but that hardly seems to matter as the original post >> asked about relaying. > > > You do not seem to be paying attention. The original post asked > explicitly about overriding relaying. Read again. > > >> Problem 2 >> You can't override the relaying ser

[PHP-WIN] Re: Emailing via mail(), secondary servers

2004-02-11 Thread Justin Patrin
Manuel Lemos wrote: Hello, On 02/11/2004 08:57 PM, Justin Patrin wrote: Has anyone dealt with this? Any suggestions before I try and botch my own solution? I would suggest dumping Windows and use a Unix/Linux solution with sendmail or compatible program like qmail, postfix, etc... If you

[PHP-WIN] Re: Emailing via mail(), secondary servers

2004-02-11 Thread Justin Patrin
Manuel Lemos wrote: Hello, On 02/11/2004 09:13 AM, Paul J. Smith wrote: At the moment you only seem able to send mail via a specific host specified in the ini file.I want some resilience so I can send emails even if the first mail server cannot accept email. Problem 1 As far as I know mail()

Re: AW: [PHP-WIN] imitating browser

2004-02-03 Thread Justin Patrin
Sven Schnitzke wrote: Hi, may I assume you want to automatically feed the otherwise human answers to the dialog presented by the search engine/catalog ? This is possible but at least a little tedious. First you shold make sure that there positively isn't any HTTP RPC (no misspelling, I mean remot

[PHP-WIN] Re: imitating browser

2004-02-02 Thread Justin Patrin
Donatas wrote: Has anyone ever tried to imitate a browser with PHP or seen code snippets that could help? Scenario would be (everything via PHP): -login to the page sending username and password and all other necessary fields via POST -now that the script is "logged in (session started)" we my u

[PHP-WIN] Re: Shopping Cart Woes!!

2004-01-05 Thread Justin Patrin
You may want to try SELECT * FROM dvd WHERE key="value" AND key2="value2"... Kaizer Boab wrote: I am trying to build a shopping cart for my college project. I am able to display items from the database, add items to the cart, but I am unable to view the items that are in the cart. In my "view_cart

Re: [PHP-WIN] embedded PHP in HTML

2003-12-12 Thread Justin Patrin
Piotr Pluciennik wrote: Try this way... remove and trying to call PHP. ?> HTH Piotr --- Ahmad Khashan <[EMAIL PROTECTED]> wrote: I am trying to get this code to work: trying to call PHP.
?>
The PHP code is not executed. Any way to

[PHP-WIN] Re: querying more than one db from a php page?

2003-12-12 Thread Justin Patrin
George Pitcher wrote: Hi, I am developing my main site to run on php/mysql (currently lasso/filemaker). I am also developing some individual sites to be hosted on the same server as my main one and I'd like to be able to update those smaller site databases when activity happens on the main site.

[PHP-WIN] Re: Return all Tables

2003-12-11 Thread Justin Patrin
Gerardo Rojas wrote: I have a connection to an MS SQL server. I am able to get a list of all available DB's on this server by running: "exec sp_helpdb" the question is: How do we return all tables from a selected db for MS SQL? i am developing a web interface to the DB. I need to be able to g

[PHP-WIN] Re: ODBC/MSSQL Connect function

2003-12-08 Thread Justin Patrin
Harpreet wrote: I use the below function string to connect to the database. mssql_connect($_SESSION["hostname"],$_SESSION["user"],$_SESSION["password"]) now if i want to connect using the odbc_connect function do i have to change all my mssql_fetch_array and mssql_query functions too. Please he

[PHP-WIN] Re: ereg-replace removing whitespace...

2003-12-02 Thread Justin Patrin
I don't use ereg myself, but with preg_replace you could do: $str = preg_replace('/\[\/URUB\]\s*/', '', $str); Bobo Wieland wrote: Hi... I'm trying to use ereg_replace to replace "[/URUB]" with "" The problem is that ther might, and might not, be any number of trailing whitespaces after the [/U