[PHP] Can't find my font file - Please help
I am trying to use the "imagettfbbox" function. Am testing the script on my local network running W2K. Have defined : $fontfile = "arial.tff"; // this file is in the same directory with my script The instruction that fails: $thetextbox = ImageTTFBBox ($fontsize, 0, $fontfile, "My Button"); The error message is: Warning: Could not find/open font in c:\phpdev\www\public\kazaam\rendertext.php on line 9 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Extracting email addresses
Hello Everyone, Does anyone have an regular expression or other way to extract an email address out of a string. I have been using: if (ereg ("^" . "[a-z0-9]+([_\\.-][a-z0-9]+)*" .//user "@" . "([a-z0-9]+([\.-][a-z0-9]+)*)+" . //domain "\\.[a-z]{2,}" .//sld, tld "$" , $body[$line], $regs)) It will match an email address by itself for example; [EMAIL PROTECTED] What it won't do is extract [EMAIL PROTECTED] from; mailto:jr@;johnrudnick.com">[EMAIL PROTECTED]. Any help would be appreciated. Thanks in Advance! JR - SallyJo, Inc., offers Top Notch Dedicated & Virtual Hosting. Visit: http://www.SallyJoInc.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Use of php_value in .htaccess is not working
Hello Everyone, I am running Red Hat Enterprise Linux ES release 2.1 (Panama). Originally I was using the Red Hat PHP package. This package was not the most current version so I removed it and compiled PHP 4.3.3. Since doing this I am unable to set things like path using php_value in a .htaccess file. The apache config is the same Red Hat default that is in use on other boxes that are not having this problem. The only difference between this box and boxes without the issue is the fact that I compiled the 4.3.3 rather than going with the Red hat package. The configure options I used are below. I can do non-PHP things with the .htacess file like setup basic authentication from a password file, so I know the .htaccess files are being parsed. Also Apache is unchanged from when this was not an issue. The only thing changed is the removal of the old PHP install and re-install with 4.3.3. Any help would be greatly appreciated. Thanks, JR - John Rudnick RHCE #808003122507415 MySQL Certification #206067847 SallyJo, Inc., provides Top Notch Web Hosting & Programming! Ask me about Dedicated Hosting starting at just $89 per month. ./configure --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --include dir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --prefix=/usr --with-config-file-path=/etc --enable-force-cgi-redirect --disable-debug --enable-pic --disable-rpath --enable-inline-optimization --with-bz2 --with-db3 --with-exec-dir=/usr/bin --with-freetype-dir=/usr --with-png-dir=/usr --with-gd --enable-gd-native-ttf --with-ttf --with-gdbm --with-gettext --with-ncurses --with-gmp --with-iconv --with-jpeg-dir=/usr --with-mm --with-openssl --with-png --with-regex=system --with-xml --with-expat-dir=/usr --with-zlib --with-layout=GNU --enable-bcmath --enable-debugger --enable-exif --enable-ftp --with-pear=/usr/share/pear --enable-magic-quotes --enable-safe-mode --enable-sockets --enable-sysvsem --enable-sysvshm --enable-discard-path --enable-track-vars --enable-trans-sid --enable-yp --enable-wddx --without-oci8 --with-mysql --enable-memory-limit --enable-bcmath --enable-shmop --enable-versioning --enable-calendar --enable-dbx --enable-dio --enable-mbstring --enable-mbstr-enc-trans --with-apxs=/usr/sbin/apxs -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Can't Get PHP Configured Properly To Use SQLite
Hello All, I am having a devil of a time getting PHP configured to work properly with SQLite. I am running PHP 4.3.3 on Redhat ES 2.1. My configure statement for PHP is below. I have run: pear download http://pecl.php.net/get/SQLite-1.0.tgz, no problem here. Then I run: pear install SQLite-1.0.tgz and get a make error of: /tmp/tmpACnhIu/SQLite-1.0/sqlite.c:29:17: php.h: No such file or directory /tmp/tmpACnhIu/SQLite-1.0/sqlite.c:30:21: php_ini.h: No such file or directory /tmp/tmpACnhIu/SQLite-1.0/sqlite.c:31:31: ext/standard/info.h: No such file or directory make: *** [sqlite.lo] Error 1 `make' failed The entire output is below. Any advice would be appreciated. Thanks! JR [EMAIL PROTECTED] html]# pear install SQLite-1.0.tgz 48 source files, building running: phpize You should update your `aclocal.m4' by running aclocal. Configuring for: PHP Api Version: 20020918 Zend Module Api No: 20020429 Zend Extension Api No: 20021010 building in /var/tmp/pear-build-root/SQLite-1.0 running: /tmp/tmpACnhIu/SQLite-1.0/configure creating cache ./config.cache checking host system type... i686-pc-linux-gnu checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking whether gcc and cc understand -c and -o together... yes checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking for PHP prefix... /usr checking for PHP includes... -Idir=/usr/include/php -Idir=/usr/include/php/main -Idir=/usr/include/php/Zend -Idir=/usr/include/php/TSRM checking for PHP extension directory... /usr/lib/20020429 checking how to run the C preprocessor... gcc -E checking for gawk... gawk checking for sqlite support... yes, shared checking size of char *... 4 checking for lemon... no checking for usleep... yes checking for nanosleep... yes checking for time.h... yes checking for Cygwin environment... no checking for mingw32 environment... no checking build system type... i686-pc-linux-gnu checking for ld used by GCC... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for /usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking whether ln -s works... yes checking how to recognise dependant libraries... pass_all checking for object suffix... o checking for executable suffix... no checking command to parse /usr/bin/nm -B output... ok checking for dlfcn.h... yes checking for ranlib... ranlib checking for strip... strip checking for objdir... .libs checking for gcc option to produce PIC... -fPIC checking if gcc PIC flag -fPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.lo... yes checking if gcc supports -fno-rtti -fno-exceptions... yes checking whether the linker (/usr/bin/ld) supports shared libraries... yes checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking dynamic linker characteristics... GNU/Linux ld.so checking if libtool supports shared libraries... yes checking whether -lc should be explicitly linked in... no creating libtool updating cache ./config.cache creating ./config.status creating config.h running: make sed -e s/--VERS--/2.8.3/ -e s/--ENCODING--/ISO8859/ /tmp/tmpACnhIu/SQLite-1.0/libsqlite/src/sqlite.h.in >/tmp/tmpACnhIu/SQLite-1.0/libsqlite/src/sqlite.h /bin/sh /var/tmp/pear-build-root/SQLite-1.0/libtool --mode=compile gcc -I/tmp/tmpACnhIu/SQLite-1.0/libsqlite/src -I. -I/tmp/tmpACnhIu/SQLite-1.0 -DPHP_ATOM_INC -I/var/tmp/pear-build-root/SQLite-1.0/include -I/var/tmp/pear-build-root/SQLite-1.0/main -I/tmp/tmpACnhIu/SQLite-1.0 -Idir=/usr/include/php -Idir=/usr/include/php/main -Idir=/usr/include/php/Zend -Idir=/usr/include/php/TSRM -DHAVE_CONFIG_H -g -O2 -prefer-pic -c /tmp/tmpACnhIu/SQLite-1.0/sqlite.c -o sqlite.lo gcc -I/tmp/tmpACnhIu/SQLite-1.0/libsqlite/src -I. -I/tmp/tmpACnhIu/SQLite-1.0 -DPHP_ATOM_INC -I/var/tmp/pear-build-root/SQLite-1.0/include -I/var/tmp/pear-build-root/SQLite-1.0/main -I/tmp/tmpACnhIu/SQLite-1.0 -Idir=/usr/include/php -Idir=/usr/include/php/main -Idir=/usr/include/php/Zend -Idir=/usr/include/php/TSRM -DHAVE_CONFIG_H -g -O2 -c /tmp/tmpACnhIu/SQLite-1.0/sqlite.c -fPIC -DPIC -o sqlite.lo /tmp/tmpACnhIu/SQLite-1.0/sqlite.c:29:17: php.h: No such file or directory /tmp/tmpACnhIu/SQLite-1.0/sqlite.c:30:21: php_ini.h: No such file or directory /tmp/tmpACnhIu/SQLite-1.0/sqlite.c:31:31: ext/standard/info.h: No such file or directory make: *** [sqlite.lo] Error 1 `make' failed './configure' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--include' 'dir=/usr
[PHP] Help With postgresql
Hello, I need help with a website that I had design as a E-commerce tool. There's a credit card option in the shopping cart, That I would like to remove. The guy that design the site said that It would need to be turned off in the database. Any help would be great. I know the database is postgresql. Thanks for any help. Jr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] php as cron
Why not just use lynx to run it? */2 * * * * /usr/local/bin/lynx -dump crontest.php JR > On Monday 10 Dec 2001 5:54 pm, Jay Paulson wrote: > > I'm trying to test php running as a cron job and I have installed php as a > > CGI in /usr/local/bin and I have edited my crontab file to call a php file > > every two minutes. However, it's not working and I was wondering if you > > all would know what's going on. Anyway, here's how I have things set up. > > > > crontab file: > > */2 * * * * php /home/crontest.php > /dev/null > > > > crontest.php: > > #!/usr/local/bin/php -q > > > mail("[EMAIL PROTECTED]","cron test", "testing",NULL); > > ?> > > > > email I'm receiving with error: > > Subject: Cron <> php /home/crontest.php > /dev/null > > Body: /bin/sh: php: command not found > > > > thanks for any help. > > -- > 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] > > -- > 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] > -- 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]
RE: [PHP] FAQ - was "Attitude of B van Ouwerkerk"
How I view this subject as a Newbie I don't care about attitudes, language, remarks, or anything of this nature. What I do care about is having a place where I can ask stupid questions (Most of the time) intelligent question (whenever possible) and get an answer. Someday when I can understand the manuals and have alot more experience with PHP and MySQL I will be glad to pitch in and help. Until then I need your help. Yes I read the manuals, FAQs and anything else I can find. But sometimes, I just flat don't know what the heck I'm reading. So from a Newbie to you Seasoned Vets THANKS!!!-- , /'^ ^'\ -((o)-(o))- --oOOO--(_)--OOOo--- J R Palmer [EMAIL PROTECTED] ICQ 411053 .oooO ( ) Oooo. ---\ (---( )-- \_) ) / (_/ -Original Message- From: scott [gts] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 31, 2001 2:14 PM To: php Subject: RE: [PHP] FAQ - was "Attitude of B van Ouwerkerk" An actual "Question and Answer" FAQ is probably not necessary, since there are so many other good information resources out there already, but what seems to be necessary is to provide newbies with a current list of some really good PHP-related sites. (like http://php.net/function -- i use it everyday, but not too many newbies seem to know about it) > -Original Message- > From: mike cullerton [mailto:[EMAIL PROTECTED]] > Subject: Re: [PHP] Attitude of B van Ouwerkerk > > on 7/31/01 12:37 PM, scott [gts] at [EMAIL PROTECTED] wrote: > > > there's a fine line between being terse and being nasty. > > > > please don't misinterpret this, but i think that we > > could all benefit from being less sensitive of the > > style each of us express ourselves in... > > once again, scott, you seem to have a nice concise way of putting things :) > > newbies are part of internet communities, as are old curmudgeons. > thankfully, so too are the wise, willing to share their knowledge. > > recently, Brian White mentioned a propsed faq for the "headers already sent" > question. also, Philip Olson mentioned a link at php.faqts. > > what is up with a faq for this list? is there one? i have been saving good > responses to faq type questions with the intent of putting a faq together. > now is as good a time as any. i'll post something in a couple days. > > that way, we can politley say to newcomers. "hey, nice to have you around. > hope we can help you out some. two places you should go to get started are > php.net and link.to.list.faq" > > let me know if there already is one. > > have a day, > mike > > > -- mike cullerton > > > > -- > 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] > -- 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] -- 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]
[PHP] cxml
Does anyone have examples or know of documentation in order to receive and respond to cxml punchout requests. I'm attempting to integrate my cart with a catalog however have not done much coding with cxml or xml. Thanks in advance.
[PHP] Re: Securing areas of a web site with PHP
You might consider using cookies that keep track of the user's login name and a bitwise status to control AAA (Authentication, Authorization, and Access0 controls instead of using session variables. -mel On Wed, 1 Jan 2003, Jean-Christian Imbeault wrote: > On my web site there are some areas that I want to make accessible only > after a user has logged in (for example when placing an order, etc ...) > I have been able to achieve this however I have the following problem: > > 1- user logs in > 2- user goes to restricted area > 3- user views pages, orders an item, changes his account settings, etc ... > 4- user logs out > 5- user is sent to log out page > 6- user hits back button ... > > And here my problems start ... even though the user has logged out, all > the "restricted" pages he saw are still cached by his browser and > accessible ... > > I have tried using a script that checks a session variable that > indicates if a user is logged in or not and take appropriate action at > the start of all "restricted" pages, but that doesn't work since when > the user hits the back button, the PHP script is not re-executed, the > page is simply loaded from the browser cache. > > What are some PHP techniques I could use so that a user can no longer > access/use pages once he has logged out? > > Basically I would like to have sort of state machine so I that I can > simply check where a user is coming from and his login "state" to decide > if a certain page should be presented or not (i.e. you can't get here > form there or you can't view that page with your current login status). > > But it seemed that creating a state machine is not the right way to go > about it since hitting the back button pretty much allows a user to > circumvent this ... > > Eventually the web site I will build will actually have many "areas", > each needing a separate/different login, (and you can be logged in to > multiple "areas" at once) so I would like to be able to generalize this > problem and understand how I can use PHP to implement the needed > functionality. > > Just as a simple example, once a user has placed an order, he should not > be able to go back to the "order placing/processing" pages ... > > Any tips, hints, or pointers to tutorials are appreciated! > > Thanks, > > Jc > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] How Do I Return Values Across Servers
This may be a no-brainer for everyone but me but ... I have several php scripts residing on a web site on Server A. In a library file on Server A are misc. functions, some of which query an underlying database and return a text string as the result. On another web site on Server B I would like to call these functions to get the result without reinventing the wheel so to speak. So my question is ... How can I call a function that returns a text string from Server A in a script requiring that text during the processing of a web page on Server B ... all in php? Thanks in advance. Bill
RE: [PHP] read javascript variable php?????
location.href="" should work ... hth ... Bill -Original Message- From: Ysrael Guzmán [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 08, 2003 4:30 PM To: [EMAIL PROTECTED] Subject: [PHP] read javascript variable php? example: location.href="$destination"; or location.href=""; or echo "location.href='", $destino, "';"; PLEASE GIVE A IDEA Ysrael Guzmán Meza -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] How Do I Return Values Across Servers
Yes, I want to get a value from a script on Server A that runs against a database on Server A, returning that value to a script variable on Server B. I read the manual but must have missed something. This is what *seemed* as if it should work: Server A (containing functions and database) qotd.php ** qotd()is a f(x) in miscfuncs.php = Server B test.php ... HTML stuff http://www.servera.com/qotd.php'; echo $qotd . "\n\n"; ?> ... More HTML stuff With this setup I get the following error: Warning: Failed opening 'http://www.servera.com/qotd.php' for inclusion (include_path='.;c:\php4\pear') in c:\webdev\kids\homebody.inc on line 27 Any ideas? I know that I am missing something here. Thanks, Bill -Original Message- From: Timothy Hitchens (HiTCHO) [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 08, 2003 4:45 PM To: 'Bill Arbuckle, Jr.'; [EMAIL PROTECTED] Subject: RE: [PHP] How Do I Return Values Across Servers If I understand you want to be able to get a value from a script on another server. Well I would suggest a really each way would be to do have the calling server call a script on the supplying server using include(); which is supported but please see this page regarding URL fopen wrappers: http://www.php.net/manual/en/function.include.php Requests for includes and on the supplying server simply output the value like: If you do it this way it will be simply included and be available as a variable instantly. (**subject to security issues and speed) Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: [EMAIL PROTECTED] > -Original Message- > From: Bill Arbuckle, Jr. [mailto:[EMAIL PROTECTED]] > Sent: Thursday, 9 January 2003 8:17 AM > To: [EMAIL PROTECTED] > Subject: [PHP] How Do I Return Values Across Servers > > > This may be a no-brainer for everyone but me but ... I have > several php scripts residing on a web site on Server A. In a > library file on Server A are misc. functions, some of which > query an underlying database and return a text string as the > result. On another web site on Server B I would like to call > these functions to get the result without reinventing the > wheel so to speak. So my question is ... How can I call a > function that returns a text string from Server A in a script > requiring that text during the processing of a web page on > Server B ... all in php? Thanks in advance. > > Bill > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Page Rendering
Hi all. I am having some problems with a script which reads information from a database and creates a table. It works in IE but not Netscape. I call myself going through the tags to make sure all that were open were closed because Netscape doesn't like unfinished business. What I have is a script that outputs the previous page, 1, 2, ..., next page link (if there are more than x table items per page). It has worked in both browsers but now I have broke something. :o) Any ideas are appreciated. The code is like this ... < Prev | "; } // No need to output the page number if there is only one page if ($num_pages>1) { for ($i = 1; $i <= $num_pages; $i++) { if ($i != $page) { echo " $i"; } else { echo " $i "; } } } // Display the "Next" link. if ($page != $num_pages) { echo " | Next >" ; } } ?> This code is at the top of an include file which is included in pics.php. It seems that $PHP_SELF is interpreted differently in *some* instances between the two browsers. I can't figure it out because PHP_SELF is a server side evaluation. The links are output correctly in IE ... http://www.xyz.com/pics.php?page=2 ... but in Netscape I get ... http://www.xyz.com/?page=2 I had this problem once before and inadvertently fixed it with something else that I was doing. Any hints are appreciated. TIA, Bill
RE: [PHP] Page Rendering
This worked ... thanks! But I am confused. It has worked with PHP_SELF in the past. Why would it not evaluate the variable on the server. Or more specifically, why would the page render fine in both Netscape and IE with the links (from PHP_SELF) being the only thing wrong with the page? Just trying to understand. :o) Bill -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 21, 2003 8:56 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Page Rendering On Tuesday 21 January 2003 22:26, Bill Arbuckle, Jr. wrote: > This code is at the top of an include file which is included in pics.php. > It seems that $PHP_SELF is interpreted differently in *some* instances > between the two browsers. I can't figure it out because PHP_SELF is a > server side evaluation. The links are output correctly in IE ... > http://www.xyz.com/pics.php?page=2 ... but in Netscape I get ... > http://www.xyz.com/?page=2 I had this problem once before and > inadvertently fixed it with something else that I was doing. Any hints are > appreciated. Most likely $PHP_SELF is in fact blank. If you're using a relatively new version of PHP use $_SERVER['PHP_SELF'] instead. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* On the road, ZIPPY is a pinhead without a purpose, but never without a POINT. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] handling files error
Hey guys, I have a red hat 7.3 server running apache and php4. It all seems working fine, but when I try to upload a file through a form I got nothing. I mean, I can ouput the temp name of the file, the final name, size and other stuff. but some functions don´t work. Like If (!is_executable($userfile_temp)) -> this don´t block executables files. if I change to If (!is_executable($userfile_name)) -> it´s point me that all files is executable. and when i try to move the file from /tmp directory to another directory with move_upload_file function. This func. doesn´t do anything, and doesn´t move the file to the specified directory any help are welcome []´s Iced Sun
Re: [PHP] handling files error
Thanks, but just a little part of the problem was solved. the other part is: why php doesn´t move the upload file to the specified directory, with move_uploaded_file? - Original Message - From: "Marek Kilimajer" <[EMAIL PROTECTED]> To: "Gilberto Garcia Jr." <[EMAIL PROTECTED]> Cc: "PHP" <[EMAIL PROTECTED]> Sent: Thursday, January 23, 2003 10:36 AM Subject: Re: [PHP] handling files error > None of the uploaded files is executable, even if it is some .exe or > shell script, simply it does not have the permission to execute. > $userfile_name is only the name of the file as it was on the client's > machine, there is no such file on your filesystem (unless you create it) > > Gilberto Garcia Jr. wrote: > > >Hey guys, > > > >I have a red hat 7.3 server running apache and php4. It all seems working fine, but when I try to upload a file through a form I got nothing. I mean, I can ouput the temp name of the file, the final name, size and other stuff. but some functions don´t work. > > > >Like > > > >If (!is_executable($userfile_temp)) -> this don´t block executables files. > > > >if I change to If (!is_executable($userfile_name)) -> it´s point me that all files is executable. > > > >and when i try to move the file from /tmp directory to another directory with move_upload_file function. This func. doesn´t do anything, and doesn´t move the file to the specified directory > > > >any help are welcome > > > >[]´s > >Iced Sun > > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] getting javascript string values
Hey Guys, How can I get the value of an javascript string and pass it to a php variable? i.e. var x = "test"; thanks Iced Sun
RE: [PHP] Avoiding several windows with the same session
If you are using cookies the new window will pick it up. Have the original page change a variable to say that it has loaded then when the new window loads have it check that variable first. -Original Message- From: Roman Sanchez [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 1:57 PM To: [EMAIL PROTECTED] Subject: [PHP] Avoiding several windows with the same session I place session_start(); if (!session_is_registered('somevar')) { header('location: login.php'); exit(); } at the top of all my pages to prevent people to view pages before they log in. However, once thay have logged in succesfully, they can ctrl-U in IE to open a new window. This new window 'inherits' the session id and hence it does not redirects to the login page. Is there any way to avoid this situation so that people cannot have several windows with the same session open? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] mail() and sendmail path
You can find this here -> http://www.php.net/manual/en/ref.mail.php -Original Message- From: micah lamb [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 5:29 PM To: [EMAIL PROTECTED] Subject: [PHP] mail() and sendmail path Is there any way to declare the path to sendmail locally (on the page that has the mail() function) ? I need to use mail() but do not have access to the php.ini file. Micah -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] adodb + oracle 8i
Somebody here use adodb with oracle? I´m triyng to use that, but I´m noting realize how to estabilish a conection with oracle. I´m getting the folowing error: Fatal error: Call to undefined function: ora_plogon() in e:\inetpub\wwwroot\hosted\EnsinoNet\php\adodb\drivers\adodb-oracle.inc.php on line 105 I´m triyng to conect with oracle with the folowing command: $conn =& ADONewConnection('oracle'); $conn->PConnect(false, 'user', 'pass', 'bata_base_name'); can some one help? thanks --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.449 / Virus Database: 251 - Release Date: 27/01/03 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] function is_executable
Hey guys, I made a class to work with file upload. I used the php function is_executable. and in php 4.2.x it works ok, on linux and on windows. Last week I update my php to 4.3.x and this function stop work. In fact I got this error. undefinied function. Does anyone can help? thanks
[PHP] Trouble connection to Postgres DB
Hi, I have PHP 4.3.1 and PostgreSQL 7.3 running in a Mandrake 9.1 workstation. When trying to connect to the DB, the PHP execution just blocks in pg_connect() call, and it remain blocked for several minutes - until I cancel the request. Sometimes the call completes, but I am not sure it connected sucessfully (did not execute any query). Postmaster is running with "-i" option and acess permitions are OK. There is no error message at all. Any help? Nelson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] login problem
Hi guys. I´m having a problem with a login system. I enter with the correct password and I press the submit button. But, nothing happens. It´s not a typinh mistake, cause when i enter the wrong pass. it returns me an error. What this can be??? thanks --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.449 / Virus Database: 251 - Release Date: 27/01/03 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RES: [PHP] login problem [solved]
It was a cookie problem. between php and windows. thanks -Mensagem original- De: Chris Hewitt [mailto:[EMAIL PROTECTED] Enviada em: segunda-feira, 17 de março de 2003 11:45 Para: Gilberto Garcia Jr. Cc: PHP Assunto: Re: [PHP] login problem Gilberto Garcia Jr. wrote: >Hi guys. > >Im having a problem with a login system. I enter with the correct password >and I press the submit button. But, nothing happens. Its not a typinh >mistake, cause when i enter the wrong pass. it returns me an error. What >this can be??? > You would need to tell us a lot more about it. The most I can say at the moment is that you have a bug in your code. I suggest you put in some debug code to try to narrow it down a bit more or post the relevant part of the code here and tell us what error you are getting. HTH Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.449 / Virus Database: 251 - Release Date: 27/01/03 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.449 / Virus Database: 251 - Release Date: 27/01/03 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] fast template class
I´m a newbie on this class. But i´m getting this error. if I define a constant using define('',''); I get template as just if doesnt has parsed anithing. all constants name´s are showed without changing the name per values. So, when i define the constant as a variable $x = ''; it works fine. anyone can help? thanks --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.449 / Virus Database: 251 - Release Date: 27/01/03 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php with mcrypt
Hey guys, How can I enable php to work with mcrypt functions? I´m using debian woody linux. I´ve had installed libmcrypt already, from debian cds. But I dont know how to make php understands this lib. thanks --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.465 / Virus Database: 263 - Release Date: 25/03/03 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php and mcrypt on windows
How I can use php and mcrypt on windows? I mean. What I have to do to turn php able to use mcrypt function on windows. Thanks
[PHP] Inserting Processed Data from One Table 2 Another!
Ok i have simple issue, i'm stuck at one point. I have a table "Clientdetails" which contains ClientID. I have created another table "Authentication" with 2 fields, "ClientID" and "Password". I want to pick up the ClientID from table "Clientdetails" and insert "ClientID" and a Password i have generated using a code, into "Authentication". So if there are 13000 ClientID's in "Clientdetails", as, many rows with the ClientID & it's corresponding password should be Inserted into table "Authentication". I'm using the following code which i know is wrong, what would be correct? Thanks, T. Edison Jr. __ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Inserting Processed Data from One Table 2 Another!
Ok ths is great, a lovely Random Code Generator! Thanks a lot. I always wanted one of these. Actually my problem was a little different, but i was able to solve it. I was using $result twice to store to different SQL Queries, i changed the other one to $result2 and it worked. But in fact, i will now change my code to generate the Random Number which of course is much better! Thanks... T. Edison Jr. --- Wouter van Vliet <[EMAIL PROTECTED]> wrote: > I don't see why your code is so wrong but > neither do I see what it > reall does. YOu are changing the clientID with some > simple function into a > password? As in everybody can do that trick by > himself and login as whoever > he wants .. > > What I'll mostly do for such things, is use this > self written function to > generate a random string and use this as generated > password. it takes an > integer as argument, and gives back a random code > with only [A-Z][a-z] > characters of a length of the given argument. > > And then, I'd just use the loop to roll through the > ID's and insert a random > code password. > > function generateRandomString($length) { > srand ((float) microtime() * 100); > for ($i=65;$i<91;$i++) { > $chars[] = chr($i); > }; > for ($i=97;$i<122;$i++) { > $chars[] = chr($i); > }; > $chrs = count($chars) - 1; > for ($i=0; $i<$length; $i++) { > $asc = rand(0, $chrs); > $code .= $chars[$asc]; > }; > return $code; > }; > > $result = mysql_query("SELECT clientid FROM > Clientdetails"); > while ($myrow = mysql_fetch_assoc($result)) { > $code = generateRandomString(8); > mysql_query("INSERT INTO authentication (id, pass) > VALUES > ($myrow[clientid], '".$code."'"); > }; > > Hope this helped you ! > > Greetz, > Wouter > > > -Oorspronkelijk bericht- > Van: Thomas Edison Jr. > [mailto:[EMAIL PROTECTED]] > Verzonden: woensdag 24 juli 2002 9:02 > Aan: [EMAIL PROTECTED] > Onderwerp: [PHP] Inserting Processed Data from One > Table 2 Another! > > > Ok i have simple issue, i'm stuck at one point. > > I have a table "Clientdetails" which contains > ClientID. > I have created another table "Authentication" with 2 > fields, "ClientID" and "Password". > > I want to pick up the ClientID from table > "Clientdetails" and insert "ClientID" and a Password > i > have generated using a code, into "Authentication". > > So if there are 13000 ClientID's in "Clientdetails", > as, many rows with the ClientID & it's corresponding > password should be Inserted into table > "Authentication". > > I'm using the following code which i know is wrong, > what would be correct? > > $db = mysql_connect("localhost","user","pwd"); > mysql_select_db("myDB",$db); > > $result = mysql_query("SELECT * FROM > clientdetails",$db); > if ($myrow = mysql_fetch_array($result)) { > do { > > $some = $myrow[clientid] > $newid = eregi_replace('100', '', $myrow[clientid]); > $date = date("dn"); > $stuff = $newid.def.$date; > > $sql = "INSERT INTO authentication > VALUES('$some','$stuff')"; > $result = mysql_query($sql); > echo "All Done!"; > > } while ($myrow = mysql_fetch_array($result)); > } > > ?> > > Thanks, > T. Edison Jr. > > > > > > __ > Do You Yahoo!? > Yahoo! Health - Feel better, live better > http://health.yahoo.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > __ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Stopping Multiple Entries in mySQL DB
Glory! I just want my Adding Into Database script to check if the Name/Country already exists, and if it does, it shouldn't be allowed. If some with Name : Jackson Country : USA exists in my DB, no one with same name/country should be able to add his name/country in the DB. Can anyone hint? T. Edison Jr. __ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Picking up Data of Previous Date from Table
Glory! I have one Table (Transactions), having a Date Column, with date stored as -MM-DD I have another Table (Holdings), having a Date Column, with date stored as -MM-DD Now i'm joining the two tables, to get data from both the tables and display on the page. The query i'm using is something like this : SELECT * FROM transactions,holdings where transactions.isinno=holdings.isinno AND transactions.clientid='$clientid' AND holdings.clbal!=0 GROUP BY holdings.isinno ORDER BY shares This statement works fine, and for any given date, extracts Data from both the tables and displays in a particular row format. I have to also to do some Calculations as i have Debit, Credit & Opening Balance of a day, and have to generate the Closing Balance. Now for this purpose i'm facing a simple problem. The Data being picked up is of the same date from both the Tables. However, what is required is that the Data from the "Holdings" table needs to be picked up from a Date a day earlier then the Transactions Table Data. For eg:- If i'm displaying Transactions Table Data of 2002-06-22, then the Holdings Data should be picked up of date 2002-06-21 !! The thing is that i have Debit & Credit in Transactions Table, and the Closing Balance in Holdings Table. The Closing Balance of 21st is the Opening Balance of 22nd. So when i display the Transactions Table for 22nd, Debit & Credit of 22nd is Subtracted & Added to the Opening Balance of 21st to get the Closing Balance. So this is what i have to do. I need to pick up the Opening Balance from the Holdings Table of a Date Previous to the Transactions that i'm displaying. How can i do this? Thanks, T. Edison Jr. __ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Stopping Multiple Entries in mySQL DB
Hi, Ok i cant actully do this. I have many multiple entries already in the table which i do not wish to delete. And it won't alter table with these multiple entries. So what i need is a PHP Engineered solution, where my PHP code would check for existing entries and deny entry Thanks, T. Edison Jr. --- John Holmes <[EMAIL PROTECTED]> wrote: > > I just want my Adding Into Database script to > check if > > the Name/Country already exists, and if it does, > it > > shouldn't be allowed. > > > > If some with > > Name : Jackson > > Country : USA > > exists in my DB, no one with same name/country > should > > be able to add his name/country in the DB. > > Have your database handle that, not PHP. > > When you create your table, make the combo of Name > and Country unique. > > CREATE TABLE your_table { > Name VARCHAR(15), > Country VARCHAR(15), > UNIQUE Name_Country (Name, Country) > } > > Then you can have "Jackson, USA", "Jackson, UK", > "Someone Else, USA", > etc...just not the same combination at all. > > ---John Holmes... > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > __ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Resetting ID
Glory! I have a table, with 4 columns. One of the column is ID, a Primary Key, which has Auto_Increment set on it. Now i have a lot of rows deleted and a lot of duplicate rows that will be deleted, and all sorts of stuff happening in the table.. the result is, that the IDs have become inconsistent. What you get is something like 5,6,9,10,25,32,33 .. and so on. With many IDs missing etc. What i want to do is delete the entire IDs and generate them again so that they are in one single order like 1,2,3,4,5... .like this. And so that any new entry in the table gets the ID accordingly. How can i do this? Thanks, T. Edison Jr. __ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Submitting form in new window!
Glory, 2 Problems with this : 1. I have a PHP/MySQL statement within my PHP Code, which is in the Body part of the page. This generates the Form Fields & Thier Values.. there are a lot of hidden fields who's values are defined by Database Variables.. If i place the FormSubmit()Function in the head, how will those variables pass? 2. I'm already using Target=_Blank ... problem with that is that you cannot control size of window. And that is exactly what i need to do.. define parameters for the window... Thanks, T. Edison Jr. --- vins <[EMAIL PROTECTED]> wrote: > This is JavaScript you need. > > one example. > > > > onSubmit="FormSubmit()'"> > > > TYPE="JavaScript/Text"> > function FormSubmit() > { > var textfield = Information.TextField.value; > var url = "./processForm.php?textfield=" + > textfield; > > window.open(url); > } > > > OR > > just add this to your form tag. > TARGET="_blank" > > > "Thomas Edison Jr." <[EMAIL PROTECTED]> wrote > in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Glory, > > > > > Attach a javascript event to the submit button > > > > Something like : > > > > > > > > Wherein wow() defines a the window.open function? > > > > > and also attach the form values to the url. > > How do i do this? Because the 3 or 4 form fields i > > have, which are Hidden Fields, contain values > coming > > in from $myrow[stuff], that is, coming in from a > > Database Table. How do i define these values up in > the > > Javascript function in the of the file? > > > > Thanks, > > T. Edison Jr. > > > > > > > > __ > > Do You Yahoo!? > > Sign up for SBC Yahoo! Dial - First Month Free > > http://sbc.yahoo.com > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > __ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PROBLEM
hi! i have a problem in my project.the problem is that suppose we have the date for the whole of the month and two different files r there. i have to pick one file of the current date that is say today and the other file of the yesterday.but the problem is that if the current date is monday then the in yesterday file i have to pick for saturday and not the sunday.broadly speaking i mean to say that the difference between the today's date and yesterday's is not fixed as there can be a holiday for say 4 days inbetween then in yesterday i need the date 4 days before. so i need some query to handle this as soon as possible as its very urjent.the query should be in MYSQL.that is the query should be such which can pick today's date and the date of the working day before the today's or the current date. = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Need a Web Host for php/mySQl
Glory, I'm looking for a new Web Hosting company, to host my sites. I had been with Aletia, but i'm experiencing some technical flaws with them, so i need a new one. Aletia is very economical, with $7.95 a month for 200 MB, 10 GB Bandwidth, sub-domains, dbs, and a hell a lot of goodies. so i would prefer someone like them or better then them. I'd really appreciate if someone can find me a better Host. Thanks, T. Edison Jr. __ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Calling info from mySQL inside flash
I have a mySQL db, and a bunch of tables in it. What i want to do, is to pick up some data, and display in my Flash Movie. For example. I have a table with a list. Now on my main page, i display the total number of people in the list so far (By counting the rows). Now i want to display the same in my Flash movie. How can we exactly insert PHP Coding inside Flash Movie to make the code work? Any tips... Thanks, T. Edison Jr. __ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Calling info from mySQL inside flash
THANKS A TON!!! --- Brad Bonkoski <[EMAIL PROTECTED]> wrote: > How about giving this page a look over: > http://www.macromedia.com/desdev/topics/php.html > > Here's an article especially for using PHP and MySQL > with Flash MX > http://www.macromedia.com/desdev/mx/flash/articles/flashmx_php.html > > HTH > -Brad > > "Thomas Edison Jr." wrote: > > > > I have a mySQL db, and a bunch of tables in it. > > What i want to do, is to pick up some data, and > > display in my Flash Movie. > > > > For example. I have a table with a list. Now on my > > main page, i display the total number of people in > the > > list so far (By counting the rows). Now i want to > > display the same in my Flash movie. > > > > How can we exactly insert PHP Coding inside Flash > > Movie to make the code work? Any tips... > > > > Thanks, > > T. Edison Jr. > > > > __ > > Do You Yahoo!? > > Yahoo! Finance - Get real-time stock quotes > > http://finance.yahoo.com > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: > http://www.php.net/unsub.php > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP]dtabase problem
there is a problem in mysql database.there r two tables.one table is named as transactions and the other is named as the code.the transactions table has got the 12 fields which r the following 1.clientid int 2.date date 3.isinno text 4.debit int 5.credit int 6.desc text 7.dpid1 text 8.nsdlid int 9. desc1 text 10. desc2 text 11. dpid bigint 12.transno int All these fields r by default NULL the code table has got the 8 fields which r the following 1.rd smallint 2.transno int 3.status tinyint 4.status1 tinyint 5.cdate date 6.clientid int 7. isinno text 8.description text . All these fields r by default NULL I am writing this query but its not giving the recquired results i.e i want it should pick up the all the fields of both the tables without any duplicate enteries. SELECT * from transactions,holdings,code where transactions.clientid=holdings.clientid and transactions.isinno=code.isinno and transactions.isinno=' INE561A01013' and transactions.transno='4509'AND FROM_DAYS(transactions.date) - TO_DAYS(holdings.hdate) group by transactions.credit,code.description Basically the problem with the above query is that its giving the duplicate enteries . plz. solve my problem at the earliest.its very urgent. = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Apache 2.0 or 1.3 for php on windows XP ?
Glory! I have Windows XP Home Edition.. and i downloaded the latest PHP & mySQL. I have Apache 1.3.19 earlier, which for some reason gives "Service Apache Not Installed" now even when everything is installed, on my windows XP. So i decided to get a new Apache Web Server. They have 2 versions available.. 2.0 & 1.3 .. i just want to know which one i should use, and if PHP is compatible with both.. and that if i do use 2.0, the Install Doc in PHP has given no instructions on how to install php on Apache 2.0, so how will i install it.. Any suggestions most welcome.. T. Edison Jr. = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Apache 2.0 or 1.3 for php on windows XP ?
Ok... i'll go for 1.3.24 Thanks, T. Edison Jr. --- R'twick Niceorgaw <[EMAIL PROTECTED]> wrote: > use apache 1.3.24.. > php has experimental support for apache 2.0.x.. so > don't trust it much > > - Original Message - > From: "Thomas Edison Jr." <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, June 10, 2002 2:49 PM > Subject: [PHP] Apache 2.0 or 1.3 for php on windows > XP ? > > > > Glory! > > > > I have Windows XP Home Edition.. and i downloaded > the > > latest PHP & mySQL. I have Apache 1.3.19 earlier, > > which for some reason gives "Service Apache Not > > Installed" now even when everything is installed, > on > > my windows XP. > > > > So i decided to get a new Apache Web Server. > > They have 2 versions available.. 2.0 & 1.3 .. i > just > > want to know which one i should use, and if PHP is > > compatible with both.. and that if i do use 2.0, > the > > Install Doc in PHP has given no instructions on > how to > > install php on Apache 2.0, so how will i install > it.. > > > > Any suggestions most welcome.. > > > > T. Edison Jr. > > > > > > > > = > > Rahul S. Johari (Director) > > ** > > Abraxas Technologies Inc. > > Homepage : http://www.abraxastech.com > > Email : [EMAIL PROTECTED] > > Tel : 91-4546512/4522124 > > *** > > > > __ > > Do You Yahoo!? > > Yahoo! - Official partner of 2002 FIFA World Cup > > http://fifaworldcup.yahoo.com > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: > http://www.php.net/unsub.php > > > > > > = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP not working on Apache at XP Pro.
Glory! I've got Windows XP Pro OS. I installed and am running mySQL on that. However, PHP is not getting configured with Apache on it. I got the latest Apache, 1.3.24 or something, not the Version 2. Anyway, Apache runs perfectly on it. However, when i put in the required PHP lines in httpd.conf and install PHP otherwise on the system. What happens is that i get an error stating that : mod_c.php already exists, skipping Now when i remove that line, PHP does not work with Apache. If i insert that line, APACHE itself doesn't work at all. What is wrong with it? Well thanks, T. Edison Jr. = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Software on web Accessing mySQL/PHP
Hi, Basically we have created a Software in Visual Basic. Now the software uses mySQL on the internet as Backend. However, our server does not allow Remote Host Connection, which means we cannot access our mySQL Database on the Internet by our Software on a local client. We need the mySQL Database on the Internet because basically everything will be available on a website later through PHP Pages. Now, my problem is how to connect to my mySQL DB on the Internet, via my Software, when my Server Company doesn't allow Remote Host Connection to mySQL. What is suggested to me is to place the Software on the Internet. I have no clue how to do that. Because if i place an .exe file on the net, it will just start downloading instead of running. How then can i accomplish this? The software feeds in Data in the mySQL DB on the internet, and then the PHP pages access the mySQL DB to show data to users on the Website. It's something like that. The software involves a lot of processing, decryption, conversion etc. to convert a .dat data into usable mySQL Tables Data. Hope somebody can help. Thanks, T. Edison Jr. __ Do You Yahoo!? Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Submitting form in new window!
Hi, When i press the Submit button, i would like it to open in a new Javascript Windows with well-defined characteristics like size, width etc. I create a window.open function and gave the name of my PHP page .. but the Form Variables are not passing into it.. Thanks, T. Edison Jr. = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Sending data in table, multiple rows, via mail()
Hi, Ok i have a bunch of rows in my table, with some data. I want my mail() function to be able to pick up the data from the rows and send to a specified email. Basicall let's say there are 3 fields, and 3 rows, the data sent in email should be something like : row1field1 : dkjhdkj row1field2 : dsjdkj row1field3 : skljskj row2field1 : dkjhdkj row2field2 : dsjdkj row2field3 : skljskj And so on, apart from the other mail info. Can anyone help me out with this... Thanks, T. Edison Jr. __ Do You Yahoo!? Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Sending data in table, multiple rows, via mail()
Thank you for your *extreme* kindness... I do not know where to begin to make this happen. I created a variable and ran the entire do while loop to read contents of the table and tried storing them in the variable, which could be used as Content of the mail. However, i just get the Last Row in my DB Table sent in mail.. not all the rows. Following is part of the code i'm using, and it could be absolutely wrong, but that's all i know.. $myrow[nm] $myrow[q] } while ($myrow = mysql_fetch_array($result)); } "; $to = "[EMAIL PROTECTED]"; $subject = "Purchase order Website"; $from = "Purchase Order"; $stuff = " Name : $name\n Phone : $phone\n Fax : $fax\n Email : $email\n Address : $address\n Country : $country\n Order:\n\n $realcontent\n\n"; mail($to,$subject,$stuff,$from); ?> __ Do You Yahoo!? Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Submitting form in new window!
Hi, Ok, let me show some code : Quantity This is the SUBMIT button that submits the form alongwith the Form Variables to a file called "Add2Cart.php" !! But this file simply opens in an unadministered new window. i would like to use the window.open function, or whatever can accomplish this, to restrict parameters of the window in which add2cart.php opens, at the same time the variables of my form should get submitted into the add2cart.php T. Edison Jr. __ Do You Yahoo!? Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Sending data in table, multiple rows, via mail()
Hi, WOW... THANKS A LOT!! This actually did it .. i was on a slight wrong track.. > $realcontent = ""; > while ($myrow = mysql_fetch_array($result)) > { > $realcontent .= "$myrow['pid']"; > $realcontent .= "$myrow['nm']"; > $realcontent .= "$myrow['q']"; > } > Thanks, T. Edison Jr. __ Do You Yahoo!? Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Commit/Roll Back Transaction in PHP/mySQL
Glory! Im creating a .php file that will be uploading & putting in data from a .csv file into mySQL Tables on the server. However, my problem is that if there is any kind of a problem during the transaction, i.e, system shut down, electricity problem, or any reason why the transaction is interrupted, i would like the transaction to roll back.. that is, all the records entered before the interruption SHOULD NOT remain in the database, they should get deleted or something, so that the transaction can begin Fresh from next time. How can i make such a function that will see this happens, in my PHP/mySQL. Thanks, T. Edison Jr. __ Do You Yahoo!? Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Exporting mySQL Table Data to .csv
Glory, I use phpMyAdmin which enables me to take dump of mySQL Table Data into Comma Seperated Values file (.csv) Now, i have to create such a program that accomplishes this, without using phpMyAdmin. Can someone guide me to this procedure.. Thanks, T. Edison Jr. __ Do You Yahoo!? Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Submitting form in new window!
Glory, > Attach a javascript event to the submit button Something like : Wherein wow() defines a the window.open function? > and also attach the form values to the url. How do i do this? Because the 3 or 4 form fields i have, which are Hidden Fields, contain values coming in from $myrow[stuff], that is, coming in from a Database Table. How do i define these values up in the Javascript function in the of the file? Thanks, T. Edison Jr. __ Do You Yahoo!? Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Connecting LocalHost & Remote mySQL DB
Glory! Let's say i got a bunch of Data in my mySQL Table on my localhost. I need all this Data uploaded on my mySQL on the Server/Internet. Now one way is to use phpMyAdmin, Export the original data on LocalHost to a .CSV file, then use the Server phpMyAdmin to upload the same .CSV file to the table on the server. What could be an alternate, in case we dont' want to use this lengthy procedure. Can i make one page which will do both these things? .OR. Can my PHP page on my server, directly pick up data from my localHost mySQL, and feed it in the mySQL Table on the server? Help needed! Thanks, T. Edison Jr. __ Do You Yahoo!? Yahoo! Autos - Get free new car price quotes http://autos.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Connecting LocalHost & Remote mySQL DB
Glory! Exactly.. that IS the problem. You see, my mySQL DB on the Server/Internet, on my website.. it DOES NOT allow Remote Host Connection. That's why i need to use a PHP page, that too based on the server. Because i need to move tabel data on my Client/My Computer to the Tables on my Website mySQL. Thanks, T. Edison Jr. --- Jason Wong <[EMAIL PROTECTED]> wrote: > On Saturday 13 July 2002 13:45, Thomas Edison Jr. > wrote: > > Glory! > > > > Let's say i got a bunch of Data in my mySQL Table > on > > my localhost. I need all this Data uploaded on my > > mySQL on the Server/Internet. > > > > Now one way is to use phpMyAdmin, Export the > original > > data on LocalHost to a .CSV file, then use the > Server > > phpMyAdmin to upload the same .CSV file to the > table > > on the server. > > > > What could be an alternate, in case we dont' want > to > > use this lengthy procedure. Can i make one page > which > > will do both these things? > > .OR. > > Can my PHP page on my server, directly pick up > data > > from my localHost mySQL, and feed it in the mySQL > > Table on the server? > > If all you want is to copy data from > ServerA/Database/Table to > ServerB/Database/Table you don't even need PHP. > > Providing that at least one of the server allows > remote access then the > easiest way is to use mysqldump. For details consult > mysql manual. > > -- > Jason Wong -> Gremlins Associates -> > www.gremlins.com.hk > Open Source Software Systems Integrators > * Web Design & Hosting * Internet & Intranet > Applications Development * > > /* > Love is in the offing. > -- The Homicidal Maniac > */ > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Yahoo! Autos - Get free new car price quotes http://autos.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Importing CSV File : 100000 Rows!
Hi, I have generated a .csv file from a .dat file using a VB program. Now this .csv file needs to be imported into my mySQL Database Table on the internet, using phpMyAdmin. The problem i'm facing is that the file, while uploading, stops somewhere in the middle. The upload just gets stuck. Possible reasons : 1. Number of rows is too large. About 10. Does mySQL Support these many rows? Is yes, is it possible to upload these many rows from a client to a table on the internet using phpMyadmin? 2. Internet connection. Due to the mere size of the file in terms of no. or rows, maybe my internet is not able to send all the data. I dont' know. Now can anyone suggest a possibly solution? Can i break up the file automatically and send or something? Please help.. T. Edison Jr. __ Do You Yahoo!? Yahoo! Autos - Get free new car price quotes http://autos.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Importing CSV File : 100000 Rows!
Hi, Basically the problem is that i have to connect from my localhost to my MySQL database on the server/internet. I don't have command prompt access to the internet database... --- Pradeep Dsouza <[EMAIL PROTECTED]> wrote: > > there is a way to do it from the prompt > > I use Windows but the command on Linux is close > > if the file is called mydata.sql > > mysql > \. C:\mydata.sql > > > Hope this works > > Pradeep > > > - Original Message - > From: "Thomas Edison Jr." <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, July 18, 2002 10:50 AM > Subject: [PHP] Importing CSV File : 10 Rows! > > > > Hi, > > > > I have generated a .csv file from a .dat file > using a > > VB program. Now this .csv file needs to be > imported > > into my mySQL Database Table on the internet, > using > > phpMyAdmin. > > > > The problem i'm facing is that the file, while > > uploading, stops somewhere in the middle. The > upload > > just gets stuck. > > > > Possible reasons : > > > > 1. Number of rows is too large. About 10. Does > > mySQL Support these many rows? Is yes, is it > possible > > to upload these many rows from a client to a table > on > > the internet using phpMyadmin? > > > > 2. Internet connection. Due to the mere size of > the > > file in terms of no. or rows, maybe my internet is > not > > able to send all the data. I dont' know. > > > > Now can anyone suggest a possibly solution? Can i > > break up the file automatically and send or > something? > > > > Please help.. > > > > T. Edison Jr. > > > > > > > > __ > > Do You Yahoo!? > > Yahoo! Autos - Get free new car price quotes > > http://autos.yahoo.com > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: > http://www.php.net/unsub.php > > > = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Yahoo! Autos - Get free new car price quotes http://autos.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] why my php can not get values from Form?
Simple.. just edit your php.ini file in your windows directory. Search for "register_globals" .. it will have "Off" in front of it.. switch it to "On" T. Edison jr. --- ram friend <[EMAIL PROTECTED]> wrote: > hello, > I have just installed apache+php4, but my php can > not get values from form? > what's wrong? > following is the code in php named file > "welcome.php" > echo( "Welcome to our Web site, $usernm $passwd!" ); > ?> > > I called it with > http://localhost/welcome?username=&passwd=bbb > i get nothing, what's wrong? > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Yahoo! Autos - Get free new car price quotes http://autos.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] adodb and php5
Does anyone had tested ADODB with php5? I can make a query, print the recordcount but when i try to show the result i got nothing PConnect('some', 'some', 'some', 'some'); $seleciona = " select campo from tabela "; $qry =& $conn->Execute($seleciona); if (!$qry) { echo $conn->ErrorMsg(); echo "erro"; } else { while (!$qry->EOF) { echo $qry->fields['campo'] . ""; $qry->MoveNext(); } } ?> any help? thanks
Re: [PHP] adodb and php5
I use adodb cause I need an abstraction layer for database cause the application can run under mysql, mssql, oracle and pgsql. so i have one config file that has the parameters for the conection. this is the reason for me use adodb layer. now, about ADONewConnection(), this function is from adodb layer. php.weblogs.com/adodb - Original Message - From: "Jay Blanchard" <[EMAIL PROTECTED]> To: "Gilberto Garcia Jr." <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, September 08, 2003 5:45 PM Subject: RE: [PHP] adodb and php5 [snip] Does anyone had tested ADODB with php5? I can make a query, print the recordcount but when i try to show the result i got nothing PConnect('some', 'some', 'some', 'some'); [/snip] You do not need the ADODB connection if you are using MySQL. Are you connecting to Access or MS SQL? If you are using MySQL look at http://www.php.net/mysql_connect . For instance, the function you use above ADONewConnection() does not exist as a PHP function. Do you declare the function in adodb.inc.php? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Deleting mySql records based on dates
How do I delete records from my mySql database which are three weeks old?? I will be declaring a date field for the records but what coding should I do in order to check if the records are three weeks old and then erase them so that my data is up to date?? Regards, T. Edison jr. = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/ -- 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]
[PHP] NETSCAPE Screws QUERY STRING!!!!!!
I'm passing variables in a query string to my php pages. The variables whose values contain spaces due to multiple words are being passed correctly to the Internet Explorer browser and are working perfectly there. However, they are not working at al in NETSCAPE browser. What should i do? The Internet Explorer converts the spaces in a query string into it's hexadecimal value of "%20" automatically, but netscape is not doing so. It's not reading the space and thus not displaying the page at all and giving the HTTP error 400. This the link i make : if $title contains "Project", it goes. But if it contains "Project One" ... it doesn't work in NETSCAPE. When on to the next page, this $title also has to be sent into the Database. what do i do? regards, T. Edison jr. = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ -- 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]
[PHP] Re : [PHP] NETSCAPE screws QUERY STRING
The urlencode() is working fine with an echo statement & normal query string. But it's NOT working with complex query string in printf() including $myrow[something] being picked up by mySQL db. this works : this doesn't work : printf("") OR such combinations as given in the manual. I tried out almost all!!! HELP T. Edison jr. = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ -- 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]
[PHP] Re : [PHP] NETSCAPE screws QUERY STRING
Julian, i tried this out it's giving the single quotes in the value... 'value+value2' and on the next page where i'm printing the value...the backslashes are also being added in front of single quotes : \'value value2\' where can i go from here? this has made the urlencode function to work...only part left now... T. Edison jr. --- Julian Wood <[EMAIL PROTECTED]> wrote: > > Try printf(" href=\"pro_page1.php3?title='".urlencode($myrow[title])."'\">") > > J > > on 3/4/01 11:55 AM, Thomas Edison Jr. at > [EMAIL PROTECTED] wrote: > > > > > The urlencode() is working fine with an echo > statement > > & normal query string. > > > > But it's NOT working with complex query string in > > printf() including $myrow[something] being picked > up > > by mySQL db. > > > > this works : > > > > > > > > this doesn't work : > > > > printf(" > > href=\"pro_page1.php3?title='urlencode($myrow[title])'\">") > > > > OR such combinations as given in the manual. I > tried > > out almost all!!! > > > > HELP > > > > T. Edison jr. > > > > > -- > Julian Wood > Learning Technologies and Digital Media > University of Calgary > > > > -- > 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] > = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ -- 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]
[PHP] NETSCAPE screws up query string : more problems!
Julian, i tried : instead notice the single quote ' missing. And that WORKED!!! It displayed the right value in the next PHP page. Unfortunately there's another problem. it only DISPLAYED the right value...but when it adds the value in the database...it adds with the plus + sign. i.e., it adds : Project+One instead of Project One. = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ -- 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]
[PHP] NETSCAPE screw query string : THANKS ALL !!!!! SOLVED!!
Thanks to all of you guys for helpin me out solve this otherwise horrendous task of making the query string work in netscape. much thanks to Julian!! Cheers, T. Edison jr. = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ -- 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]
[PHP] Inserting DATE in mySQL!!
I'm using the following code to insert date into my mySQL table named "Booking". I've created variables that store the date with dashes "-" seperating them. But it's not working. It's giving me an error on the $SQl line. following is the code : ?? Cheers, T. Edison jr. = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ -- 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]
[PHP] uploading file to seperate server
basically i've gotta write a script that uploads the file that user is uploading NOT to the server on which the scripts are - but to a seperate server. Problem is, i'm expecting huge uploads, and i have got ample space, 3 to 400 MB's. but it's on seperate servers from where my site is. When a user uploads the file - it should uploaded directly to this other huge server - and not on the server where the PHP scripts are...is it possible? Also, any upload being handled by this othe server will need a connection opening to this other server - with ftp user:pass. how will this be made possible in the script!? well thanks a lot, Cheers, T. Edison jr. = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ -- 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]
[PHP] Booking by Date/Time in mySQL
I'm facing this problem. I have made a room booking application. There is a Start Date & Time and End Date & Time of Booking a room. Problem is that once booked, you can't book a room with a date or time that falls between an Already booked Date & Time. For example, if someone's booked a room from 3rd March to 10th March between 4:00 p.m. to 12:00 p.m. , you can't book the same room for the any date between 3rd March to 10th March and between 4 pm & 12 pm. How do i do that? Regards, T. Edison jr. = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ -- 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]
Re: SV: [PHP] Booking by Date/Time in mySQL
Peter, what do you mean by Newdate between date1 & date2?? the logic i'm using is that i'm checkin if the new Start Date & End date lies between the old Start Date & End Date or not. If it does, than entry is denied, else booking is succesfull. But things are not running, following is the code i'm using ... -- =$myrow[sdate]) && ($realsdate<=$myrow[edate]) && ($realedate>=$myrow[sdate]) && ($realedate<=$myrow[edate]) { echo "Sorry"; } else { $sql = "INSERT INTO booking (room,sdate,edate,stime,etime,purpose,reserved) VALUES ('$rooms','$realsdate','$realedate','$realstime','$realetime','$purpose','$res')"; $result = mysql_query($sql) or Die ("An unexpected error occured. Please go back and book again."); echo "Thank you! $rooms, has been booked from $realsdate to $realedate. ** Entries will be deleted 2 weeks after the End Date. "; } } while ($myrow = mysql_fetch_array($result)); } ?> Regards, T. Edison jr. --- "Peter Chr. Hansen" <[EMAIL PROTECTED]> wrote: > Can't you use " > Newdate between date1 and date2 > > > -Oprindelig meddelelse- > Fra: Thomas Edison Jr. > [mailto:[EMAIL PROTECTED]] > Sendt: 20. marts 2001 12:25 > Til: [EMAIL PROTECTED] > Emne: [PHP] Booking by Date/Time in mySQL > > > I'm facing this problem. > I have made a room booking application. > There is a Start Date & Time and End Date & Time of > Booking a room. > > Problem is that once booked, you can't book a room > with a date or time that falls between an Already > booked Date & Time. > > For example, if someone's booked a room from 3rd > March > to 10th March between 4:00 p.m. to 12:00 p.m. , you > can't book the same room for the any date between > 3rd > March to 10th March and between 4 pm & 12 pm. > > How do i do that? > > Regards, > T. Edison jr. > > > = > Rahul S. Johari (Director) > ** > Abraxas Technologies Inc. > Homepage : http://www.abraxastech.com > Email : [EMAIL PROTECTED] > Tel : 91-4546512/4522124 > *** > > __ > Do You Yahoo!? > Get email at your own domain with Yahoo! Mail. > http://personal.mail.yahoo.com/ > > -- > 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] = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ -- 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]
RE: SV: [PHP] Booking by Date/Time in mySQL
I do get your message Jeff, but tell me, after having used the following code .. select * from booking where ('$start'>=startdate and '$start'<=enddate) or ('$end'>=startdate and '$end'<=enddate) what code should be written to actually insert booking data into the table? Because this is basically picking up data or booking from the Table that fall in this period. What i want to do is to check if any booking has been made for this period that i'm inserting now T. Edison jr. --- Jeff Armstrong <[EMAIL PROTECTED]> wrote: > One problem is that you are only checking the first > booking. > select * from booking where room='room' > gives ALL bookings, and you look like you are just > testing > the FIRST one. > > why not turn it round and do: > select * from booking where > ('$start'>=startdate and '$start'<=enddate) or > ('$end'>=startdate and '$end'<=enddate) > > This lets mySQL do the test for you. > If it returns a row you already have a booking. > > > -Original Message- > From: Thomas Edison Jr. > [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, March 20, 2001 11:50 AM > To: Peter Chr. Hansen > Cc: [EMAIL PROTECTED] > Subject: Re: SV: [PHP] Booking by Date/Time in mySQL > > > Peter, > > what do you mean by Newdate between date1 & date2?? > the logic i'm using is that i'm checkin if the new > Start Date & End date lies between the old Start > Date > & End Date or not. If it does, than entry is denied, > else booking is succesfull. But things are not > running, following is the code i'm using ... > -- > $db = mysql_connect("localhost","root"); > mysql_select_db("nidc_intranet",$db); > > $realsdate="$syear"."-"."$smonth"."-"."$stdate"; > $realedate="$eyear"."-"."$emonth"."-"."$endate"; > $realstime="$shh".":"."$smm"." "."$sttime"; > $realetime="$ehh".":"."$emm"." "."$entime"; > > $result = mysql_query("SELECT * FROM booking where > room='$rooms',$db); > if ($myrow = mysql_fetch_array($result)) { > do { > if ($realsdate>=$myrow[sdate]) && > ($realsdate<=$myrow[edate]) && > ($realedate>=$myrow[sdate]) && > ($realedate<=$myrow[edate]) { > echo "Sorry"; > } > else { > > $sql = "INSERT INTO booking > (room,sdate,edate,stime,etime,purpose,reserved) > VALUES > ('$rooms','$realsdate','$realedate','$realstime','$realetime','$purpose','$r > es')"; > $result = mysql_query($sql) or Die ("An > unexpected > error occured. Please go back and book again."); > echo " color=#140057>Thank you! color=#ff>$rooms, has been booked from > $realsdate to color=#ff>$realedate. > > ** Entries will be deleted 2 weeks after the End > Date. > "; > } > } while ($myrow = mysql_fetch_array($result)); > } > ?> > > > Regards, > T. Edison jr. > > --- "Peter Chr. Hansen" <[EMAIL PROTECTED]> wrote: > > Can't you use " > > Newdate between date1 and date2 > > > > > > -Oprindelig meddelelse- > > Fra: Thomas Edison Jr. > > [mailto:[EMAIL PROTECTED]] > > Sendt: 20. marts 2001 12:25 > > Til: [EMAIL PROTECTED] > > Emne: [PHP] Booking by Date/Time in mySQL > > > > > > I'm facing this problem. > > I have made a room booking application. > > There is a Start Date & Time and End Date & Time > of > > Booking a room. > > > > Problem is that once booked, you can't book a room > > with a date or time that falls between an Already > > booked Date & Time. > > > > For example, if someone's booked a room from 3rd > > March > > to 10th March between 4:00 p.m. to 12:00 p.m. , > you > > can't book the same room for the any date between > > 3rd > > March to 10th March and between 4 pm & 12 pm. > > > > How do i do that? > > > > Regards, > > T. Edison jr. > > > > > > = > > Rahul S. Johari (Director) > > ** > > Abraxas Technologies Inc. > > Homepage : http://www.abraxastech.com > > Email : [EMAIL PROTECT
[PHP] Booking with Date/Time in mySQL : My Code!!
Jeff, following is the code as it comes out in my page...can u tell me what i'm doin wrong, besides the fact that i have to replace that famous "uh ohh i got a row back()" with an actual snippet : =sdate and '$realsdate'<=edate) or ('$realedate'>=sdate and '$realedate'<=edate)",$db); if (uh_ohh_I_got_a_row_back()) { echo "Someone else is sleeping in the bed! No can do!"; } else { $sql = "INSERT INTO booking (room,sdate,edate,stime,etime,purpose,reserved) VALUES ('$rooms','$realsdate','$realedate','$realstime','$realetime','$purpose','$res')"; $result = mysql_query($sql) or Die ("An unexpected error occured. Please go back and book again."); echo "Thank you! $rooms, has been booked from $realsdate to $realedate. ** Entries will be deleted 2 weeks after the End Date. "; } ?> Cheers, T. Edison jr. = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ -- 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]
RE: SV: [PHP] Booking by Date/Time in mySQL
Mr. Armstrong, i'm trying hard to get the message, and i've got most of it and i'm gonna give it a whirl... only place where i'm seeing a dizzy question mark is this : if (uh_ohh_I_got_a_row_back()) right, now what exactly do i put in here that tells me uh ohh, i got a row back The logic is neat and pretty understandable. i'm only having problem in raw codin. but i'm tryin. I think i'm gonna suff in a code and see if it works, and i'll share the stuff with you cheers n thanks, T. Edison jr. --- Jeff Armstrong <[EMAIL PROTECTED]> wrote: > the logic goes: > > $start = some_start_date_a_keen_punter_entered(); > $end = the_date_he_wants_to_leave(); > > select * from booking where > ('$start'>=startdate and '$start'<=enddate) or > ('$end'>=startdate and '$end'<=enddate) > > if (uh_ohh_I_got_a_row_back()) > echo "Someone else is sleeping in the bed! No can > do!", >"Cheap discounts for those willing to share a > bed!", >"Are you gorgeous??"; > else > print "You got it!" > insert good bits into database here > > > Of course this is not guaranteed safe, as you can > end up > with double bookings in the pico seconds between the > select > and the insert - but hey, how many hits a second do > you expect. > > > Regards > Jeff's Granny > > > -Original Message- > From: Thomas Edison Jr. > [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, March 20, 2001 5:08 PM > To: Jeff Armstrong > Cc: [EMAIL PROTECTED] > Subject: RE: SV: [PHP] Booking by Date/Time in mySQL > > > I do get your message Jeff, but tell me, after > having > used the following code .. > > select * from booking where > ('$start'>=startdate and '$start'<=enddate) or > ('$end'>=startdate and '$end'<=enddate) > > what code should be written to actually insert > booking > data into the table? Because this is basically > picking > up data or booking from the Table that fall in this > period. What i want to do is to check if any booking > has been made for this period that i'm inserting > now > > T. Edison jr. > > --- Jeff Armstrong <[EMAIL PROTECTED]> wrote: > > One problem is that you are only checking the > first > > booking. > > select * from booking where room='room' > > gives ALL bookings, and you look like you are just > > testing > > the FIRST one. > > > > why not turn it round and do: > > select * from booking where > > ('$start'>=startdate and '$start'<=enddate) or > > ('$end'>=startdate and '$end'<=enddate) > > > > This lets mySQL do the test for you. > > If it returns a row you already have a booking. > > > > > > -Original Message- > > From: Thomas Edison Jr. > > [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, March 20, 2001 11:50 AM > > To: Peter Chr. Hansen > > Cc: [EMAIL PROTECTED] > > Subject: Re: SV: [PHP] Booking by Date/Time in > mySQL > > > > > > Peter, > > > > what do you mean by Newdate between date1 & > date2?? > > the logic i'm using is that i'm checkin if the new > > Start Date & End date lies between the old Start > > Date > > & End Date or not. If it does, than entry is > denied, > > else booking is succesfull. But things are not > > running, following is the code i'm using ... > > -- > > > $db = mysql_connect("localhost","root"); > > mysql_select_db("nidc_intranet",$db); > > > > > $realsdate="$syear"."-"."$smonth"."-"."$stdate"; > > > $realedate="$eyear"."-"."$emonth"."-"."$endate"; > > $realstime="$shh".":"."$smm"." "."$sttime"; > > $realetime="$ehh".":"."$emm"." "."$entime"; > > > > $result = mysql_query("SELECT * FROM booking where > > room='$rooms',$db); > > if ($myrow = mysql_fetch_array($result)) { > > do { > > if ($realsdate>=$myrow[sdate]) && > > ($realsdate<=$myrow[edate]) && > > ($realedate>=$myrow[sdate]) && > > ($realedate<=$myrow[edate]) { > > echo "Sorry"; > > } > > else { > > > > $sq
RE: SV: [PHP] Booking by Date/Time in mySQL
Mr. Armstrong, i'm trying hard to get the message, and i've got most of it and i'm gonna give it a whirl... only place where i'm seeing a dizzy question mark is this : if (uh_ohh_I_got_a_row_back()) right, now what exactly do i put in here that tells me uh ohh, i got a row back The logic is neat and pretty understandable. i'm only having problem in raw codin. but i'm tryin. I think i'm gonna suff in a code and see if it works, and i'll share the stuff with you cheers n thanks, T. Edison jr. --- Jeff Armstrong <[EMAIL PROTECTED]> wrote: > the logic goes: > > $start = some_start_date_a_keen_punter_entered(); > $end = the_date_he_wants_to_leave(); > > select * from booking where > ('$start'>=startdate and '$start'<=enddate) or > ('$end'>=startdate and '$end'<=enddate) > > if (uh_ohh_I_got_a_row_back()) > echo "Someone else is sleeping in the bed! No can > do!", >"Cheap discounts for those willing to share a > bed!", >"Are you gorgeous??"; > else > print "You got it!" > insert good bits into database here > > > Of course this is not guaranteed safe, as you can > end up > with double bookings in the pico seconds between the > select > and the insert - but hey, how many hits a second do > you expect. > > > Regards > Jeff's Granny > > > -Original Message- > From: Thomas Edison Jr. > [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, March 20, 2001 5:08 PM > To: Jeff Armstrong > Cc: [EMAIL PROTECTED] > Subject: RE: SV: [PHP] Booking by Date/Time in mySQL > > > I do get your message Jeff, but tell me, after > having > used the following code .. > > select * from booking where > ('$start'>=startdate and '$start'<=enddate) or > ('$end'>=startdate and '$end'<=enddate) > > what code should be written to actually insert > booking > data into the table? Because this is basically > picking > up data or booking from the Table that fall in this > period. What i want to do is to check if any booking > has been made for this period that i'm inserting > now > > T. Edison jr. > > --- Jeff Armstrong <[EMAIL PROTECTED]> wrote: > > One problem is that you are only checking the > first > > booking. > > select * from booking where room='room' > > gives ALL bookings, and you look like you are just > > testing > > the FIRST one. > > > > why not turn it round and do: > > select * from booking where > > ('$start'>=startdate and '$start'<=enddate) or > > ('$end'>=startdate and '$end'<=enddate) > > > > This lets mySQL do the test for you. > > If it returns a row you already have a booking. > > > > > > -Original Message- > > From: Thomas Edison Jr. > > [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, March 20, 2001 11:50 AM > > To: Peter Chr. Hansen > > Cc: [EMAIL PROTECTED] > > Subject: Re: SV: [PHP] Booking by Date/Time in > mySQL > > > > > > Peter, > > > > what do you mean by Newdate between date1 & > date2?? > > the logic i'm using is that i'm checkin if the new > > Start Date & End date lies between the old Start > > Date > > & End Date or not. If it does, than entry is > denied, > > else booking is succesfull. But things are not > > running, following is the code i'm using ... > > -- > > > $db = mysql_connect("localhost","root"); > > mysql_select_db("nidc_intranet",$db); > > > > > $realsdate="$syear"."-"."$smonth"."-"."$stdate"; > > > $realedate="$eyear"."-"."$emonth"."-"."$endate"; > > $realstime="$shh".":"."$smm"." "."$sttime"; > > $realetime="$ehh".":"."$emm"." "."$entime"; > > > > $result = mysql_query("SELECT * FROM booking where > > room='$rooms',$db); > > if ($myrow = mysql_fetch_array($result)) { > > do { > > if ($realsdate>=$myrow[sdate]) && > > ($realsdate<=$myrow[edate]) && > > ($realedate>=$myrow[sdate]) && > > ($realedate<=$myrow[edate]) { > > echo "Sorry"; > > } > > else { > > > > $sq
[PHP] Booking by Date/Time in mySQL : my CoDe!!
Mr. Jeff, following is the code i'm using in my page, could you tell me what i'm doing wrong, besides of course the famous "uh ohh i got a row back()" code that needs to be replaced =sdate and '$realsdate'<=edate) or ('$realedate'>=sdate and '$realedate'<=edate)",$db); if (uh_ohh_I_got_a_row_back()) { echo "Someone else is sleeping in the bed! No can do!"; } else { $sql = "INSERT INTO booking (room,sdate,edate,stime,etime,purpose,reserved) VALUES ('$rooms','$realsdate','$realedate','$realstime','$realetime','$purpose','$res')"; $result = mysql_query($sql) or Die ("An unexpected error occured. Please go back and book again."); echo "Thank you! $rooms, has been booked from $realsdate to $realedate. ** Entries will be deleted 2 weeks after the End Date. "; } ?> cheers, T. Edison jr. = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ -- 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]
[PHP] Date solved! And now TIME problems : Booking by Date/Time
i was able to succesfully check for start dates & end dates before feeding new booking in the database using the following code : =sdate and '$realsdate'<=edate) or ('$realedate'>=sdate and '$realedate'<=edate)",$db); if (mysql_num_rows($result)) { ?> alert('Sorry, the room is already booked for the period. Please choose a different period'); history.go(-1); Thank you! $rooms, has been booked from $realsdate to $realedate. ** Entries will be deleted 2 weeks after the End Date. "; } ?> But now - TIME problems. I have to check for the same on TIME as well - the problem is - he needs to check for the TIME in that Particular row only...and not as a whole. For eg :- if there's a Booking from 1st August 2001 1:00 p.m. to 1st August 2001 3:00 p.m. (same day), and if someone wants to make a booking for the same day from 4:00 p.m. to 6:00 p.m., my code doesn't allow that. Because he checks for the DATE - and as soon as he will find 1st August, he won't allow a booking to be made for that same day. What do i do?? I know the changes have to be made here : $result = mysql_query("select * from booking where ('$realsdate'>=sdate and '$realsdate'<=edate) or ('$realedate'>=sdate and '$realedate'<=edate)",$db); but i dodn't know what changes. Please HELP!! Cheers, T. Edison jr. = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ -- 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]
[PHP] the SkyBiz matrix|downline program using PHP & mySQL
we're trying to develop an exact replica of the SkyBiz downline|Matrix system program. But it's getting so complicated & niether is the logic coming out. we're in need of help. Anyone familiar with the skybiz matrix, please help!! It's a 2 X 2 matrix system where a person can have only two legs below him - Left & Right = and thus the chain grows. Each person sponsors 2 people below him. They can be directly below him or somewhere down the line. But keeping a count of how many people o one's right & left is getting impossible logically. please help! Cheers, T. Edison jr. = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ -- 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]
[PHP] HTTP authentication for username & password
How can I use the HTTP authentication which pops up that little box in the screen asking for username & password for giving access to a page in PHP? regards, T.Edison jr. = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ -- 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]
[PHP] PHP as MODULE & CGI Version of PHP
I was going through this fantastic tutorial on HTTP Authentication at Zend.com! It mentioned that to have this working, PHP must be "Installed as a Module" and NOT as "CGI Version". Because it will not work in CGI version. Tell me something, how and from where can i install PHP as a Module on my system? I'm using a PWS (Personal Web Server) on my Windows 98 machine. I had downloaded PHP from the php.net site and installed as per the instructions in the manual. What is the difference between the Module & CGI version? Is it possible for me to Install PHP as module on my computer? Regards, T. Edison jr. = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ -- 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]
[PHP] HELP!! PHP not working Suddenly!!!
gosh, i just downloaded the new PHP file from www.php.net, the file i downloaded is : *** PHP 4.0.5 [4,590Kb] - 30 April 2001 (CGI binary plus server API versions for Apache, AOLserver, ISAPI and NSAPI. MySQL support built-in, many extensions included, packaged as zip) *** i'm using win98 & PWS 4. I did everything by the book. I had succesfully installed & was running earlier versions of PHP on my system. i just did this upgrade & ka-BOom!! I copied all the DLL's in the DLL folder to my windows/system folder. Copied the php.ini to the windows folder. Did everything with the registry. Making extensions, declaring paths to php.exe, checking the "execute" box in my PWS! done everything by the book! Then what's wrong. 2 things i didn't do is : 1. did not mention anything in doc_root in php.ini (as i never did before, but used 2 work) 2. did not use the pws-php4*.reg for updating my registry (as i do it manually. I did try this but it doesn't make a different) 3. first i copied the new browscap.ini to my system, it didn't still work...so i brought back my original and it still doesn't work!!! I don't know what to do please somebody help!!! T. Edison jr. = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ -- 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]
Re: [PHP] HELP!! PHP not working Suddenly!!!
i was gonna die until u came along, at least you have given me some hope. i'm not able 2 eat since this happened. anyway, > already have contained the correct stuff - did you > change anything? yes, because the earlier php were in very different folders..i had a pretty pretty early version of PHP4. so basically all i changed in the registry were paths. > What does ka-BOom actually mean in terms of error > messages etc? when i try an open a php page in my browser, it gives a "HTTP 500 - Internal server error " and nothing comes up. > From the command line, change to the folder > containing php.exe, type php.exe -i and see if you > get a page full of html - the output of wow - i did this thing, and YES! i did get a whole lot of HTML tags so that means my PHP is working fine. than what the hell is the problem with my PWS it was working great with the earlier version. i didn't change anything with it here!! T. Edison jr. > phpinfo() - or some error messages. If you get the > html, then php is working > fine but your PWS configuration is not. > > Cheers > -- > Phil Driscoll > Dial Solutions > +44 (0)113 294 5112 > http://www.dialsolutions.com > http://www.dtonline.org > > = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ -- 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]
[PHP] PHP on PWS not working!
don't know why still my PHP 4.0.5 is NOT working on my PWS 4.0!! the PHP module is now working perfectly on my Apache server (At Last)!! but what is wrong with PWS??? I have left the doc_root field blank in php.ini And the extension_dir points to C:\php4 which actually contains php.exe and only 1 dll file, that is, php4ts.dll Do i have to point extension_dir to some other location? like the "extension" folder in my php4 folder? Should i replace the old browscap.ini with this new one that i got with php4? any other suggestions? please help... Cheers, T. Edison jr. = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ -- 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]
Re: [PHP] PHP on PWS not working!
i'm not getting errors, when i do open my page (http://localhost/test.php3) or any php3 page on my PWS, i get an "HTTP 500 - Internal server error". All the HTML files and stuff are running on my PWS. Only php3 is not!! i did not make any changes to my PWS while installing this new php4.0.5 file today. had to make some changed in registry for new paths and give the same stuff in php.ini, but i didn't do anything in PWS. the earlier PHP4 was running fine on my PWS till yesterday. This new one is not!! and like i wrote before : PWS 4.0!! the PHP module is now working perfectly on my Apache server (At Last)!! but what is wrong with PWS??? I have left the doc_root field blank in php.ini And the extension_dir points to C:\php4 which actually contains php.exe and only 1 dll file, that is, php4ts.dll Do i have to point extension_dir to some other location? like the "extension" folder in my php4 folder? Should i replace the old browscap.ini with this new one that i got with php4? tell me what do i do? T. Edison jr. = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ -- 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]
Re: [PHP] PHP on PWS not working!
Ummm...you could be onto something my dear friend.. > know when I set it up once I had not taken into > account that the .dll files > are in the /sapi/ folder. they in fact are in the /sapi/ folder..do i have to declare this somewhere? in php.ini or something? because i have not referenced to this anywhere!!! in the "extension_dir =" in the php.ini, i have given "C:\php4" only, which has only php.exe & php4ts.dll among some other few files. Should i change this to c:\php4\sapi ? cheers, T. Edison jr. --- Data Driven Design <[EMAIL PROTECTED]> wrote: > Sometimes windows just breaks, I've done clean > installs lately. Reinstalling > might fix your problems, who knows. Is the path in > you regedit correct. I > > Data Driven Design > P.O. Box 1084 > Holly Hill, Florida 32125-1084 > > http://www.datadrivendesign.com > http://www.rossidesigns.net > - Original Message - > From: Thomas Edison Jr. <[EMAIL PROTECTED]> > To: Data Driven Design <[EMAIL PROTECTED]> > Sent: Friday, May 04, 2001 2:33 PM > Subject: Re: [PHP] PHP on PWS not working! > > > > Did both Sir. checked the execute box and > rebooted. i > > don't know where it is going wrong. suddenly i did > > find out that none of my ASP scripts are working > > either. Do you think my PWS has developed an > internal > > problem? i'm thinking of re-installing it. > > suggestions? > > > > T. Edison jr. > > > > --- Data Driven Design <[EMAIL PROTECTED]> > > wrote: > > > Did you check the execute box uder the home > > > directory properties? I think > > > that's when I got that error. Also you need to > > > reboot after you make the > > > registry entries, even though the instructions > don't > > > say so. > > > > > > Data Driven Design > > > P.O. Box 1084 > > > Holly Hill, Florida 32125-1084 > > > > > > http://www.datadrivendesign.com > > > http://www.rossidesigns.net > > > - Original Message - > > > From: Thomas Edison Jr. > <[EMAIL PROTECTED]> > > > To: Data Driven Design > <[EMAIL PROTECTED]> > > > Cc: <[EMAIL PROTECTED]> > > > Sent: Friday, May 04, 2001 2:21 PM > > > Subject: Re: [PHP] PHP on PWS not working! > > > > > > > > > > i'm not getting errors, when i do open my page > > > > (http://localhost/test.php3) or any php3 page > on > > > my > > > > PWS, i get an "HTTP 500 - Internal server > error". > > > All > > > > the HTML files and stuff are running on my > PWS. > > > Only > > > > php3 is not!! > > > > i did not make any changes to my PWS while > > > installing > > > > this new php4.0.5 file today. had to make some > > > changed > > > > in registry for new paths and give the same > stuff > > > in > > > > php.ini, but i didn't do anything in PWS. the > > > earlier > > > > PHP4 was running fine on my PWS till > yesterday. > > > This > > > > new one is not!! > > > > and like i wrote before : > > > > > > > > PWS 4.0!! the PHP module is now working > perfectly > > > > on my Apache server (At Last)!! but what is > wrong > > > > with PWS??? > > > > I have left the doc_root field blank in > php.ini > > > > And the extension_dir points to C:\php4 which > > > > actually contains php.exe and only 1 dll > file, > > > that > > > > is, php4ts.dll > > > > Do i have to point extension_dir to some > other > > > > location? like the "extension" folder in my > php4 > > > > folder? > > > > Should i replace the old browscap.ini with > this > > > > new one that i got with php4? > > > > > > > > tell me what do i do? > > > > T. Edison jr. > > > > > > > > > > > > > > > > > > > > = > > > > Rahul S. Johari (Director) > > > > ** > > > > Abraxas Technologies Inc. > > > > Homepage : http://www.abraxastech.com > > > > Email : [EMAIL PROTECTED] > > > > Tel : 91-4546512/4522124 > > > > *** > > > > > > > > > __ > > > > Do You Yahoo!? &g
Re: [PHP] Script to interpret ssi include calls
Use the virtual() command to call SSI from PHP. -Roy on 5/5/01 2:43 AM, James Hamilton at [EMAIL PROTECTED] wrote: > Hi > > I am developing pages for a site that has been constructed using nested > apache ssi virtual include calls to build each page. Each included page > may contain calls to other pages etc > > This means that if I call page elements into a php page (using > include()/require() ) the calls arent parsed > by php. > > Does anyone have script that reads pages for server side includes and > calls them in through php? > > Cheers > > james > > [EMAIL PROTECTED] > -- 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]
Re: [PHP] PHP on PWS not working!
nothing does seem to work...i don't know what the hell is the problem!! i did put this : > C:\\php\\sapi\\php4isapi.dll in the regedit file and it looks great. everything is just so by the book. where the hell am i going wrong!! can't understand what's different here that was not before coz it was working before!!! did you define any path in the doc_root = in php.ini? because i didn't! Cheers, T. Edison jr. = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ -- 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]
Re: [PHP] PHP on PWS not working!
would you believe it, i did!! still not working. still giving the "500 Internal Server Error". I uninstalled & then reinstalled PWS. cooked up the settings again...and no response!! T. Edison jr. --- Data Driven Design <[EMAIL PROTECTED]> wrote: > Did you copy the php4ts.dll to your windows/system > directory? I think I had > to do that even though it wasn't in the directions > > Data Driven Design > P.O. Box 1084 > Holly Hill, Florida 32125-1084 > > http://www.datadrivendesign.com > http://www.rossidesigns.net > - Original Message - > From: Thomas Edison Jr. <[EMAIL PROTECTED]> > To: Data Driven Design <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Saturday, May 05, 2001 2:44 PM > Subject: Re: [PHP] PHP on PWS not working! > > > > nothing does seem to work...i don't know what the > hell > > is the problem!! i did put this : > > > > > C:\\php\\sapi\\php4isapi.dll > > > > in the regedit file and it looks great. everything > is > > just so by the book. where the hell am i going > wrong!! > > can't understand what's different here that was > not > > before coz it was working before!!! > > > > did you define any path in the > > > > doc_root = > > > > in php.ini? because i didn't! > > > > Cheers, > > T. Edison jr. > > > > > > > > > > = > > Rahul S. Johari (Director) > > ** > > Abraxas Technologies Inc. > > Homepage : http://www.abraxastech.com > > Email : [EMAIL PROTECTED] > > Tel : 91-4546512/4522124 > > *** > > > > __ > > Do You Yahoo!? > > Yahoo! Auctions - buy the things you want at great > prices > > http://auctions.yahoo.com/ > > > > -- > > 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] > > > > > = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ -- 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]
Re: [PHP] Sorry, what is "PWS"
PWS is Personal Web Server. It's a web server by Microsoft. Practically it's pretty easy to use. You can install it into any home PC using win98 and configure PHP on it to use. It supports ASP by default so you can do you ASP scripting using it. Latest version of PWS is 4.0! If u're looking for something esy & fast to get running, PWS is it. It's a server just like Apache or any other, only, well, it's Microsoft, and like Mr. Lynch once said, Microsoft & Stable don't go in the same line. But anyways, it works ok at home for any kind of work. T. Edison jr. --- [EMAIL PROTECTED] wrote: > It´s time for me to ask: > What is "PWS"? I wanna know what I´m reading about > ;-) > TIA Oliver > > > -- > 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] > = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ -- 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]
[PHP] IIS instead of PWS!!! what else can i do..
i think i'm almost at the verge of giving up...somehow the PWS in my system is ruined forever...i'd done everything..and i mean *EVERYTHING*...but PHP just doesn't seem to be working with my PWS. In fact, even my ASP scripts are not working anymore on PWS. I've uninstalled & reinstalled PWS twice already. it's just *&*%^. anyways, i think i'm gonna be trying out the IIS option. Is IIS ok to work with PHP4? any problems? and is there anywhere on the Internet that i can get IIS 4 from? thankx all yah, T. Edison jr. = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ -- 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]
Re: [PHP] PHP on PWS not working!
> 1. Rename php.ini-dist to php.ini (if you haven't) > 2. Simplify your script > 3. Try changing your directory properties in PWS: > Read/Execute/Scripts - try different combinations been there, done that, you could say. i think i've tried every possible humanly available option. my \inetpub\wwwroot is the web dir. and i have read, execue & scripts checked for that on PWS. plus i have c:\php4\sapi\(the dll) declared in my regedit. everything is how it's supposed to be. i don't know what's wrong! help me if you can! T. Edison jr. = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ -- 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]
Re: [PHP] PHP on PWS not working!
me again...i hope MTS is not required for running PHP4.0.5 on PWS. Cause i'm not having the MTS (Microsoft Transaction Server) installed on my PWS. T. Edison jr. --- Donald Goodwill <[EMAIL PROTECTED]> wrote: > I couldn't find your original message, but here are > some ideas: > 1. Rename php.ini-dist to php.ini (if you haven't) > 2. Simplify your script > 3. Try changing your directory properties in PWS: > Read/Execute/Scripts - try different combinations > > > --- "Thomas Edison Jr." <[EMAIL PROTECTED]> > wrote: > > would you believe it, i did!! still not working. > > still > > giving the "500 Internal Server Error". I > > uninstalled > > & then reinstalled PWS. cooked up the settings > > again...and no response!! > > > > T. Edison jr. > > > > --- Data Driven Design <[EMAIL PROTECTED]> > > wrote: > > > Did you copy the php4ts.dll to your > windows/system > > > directory? I think I had > > > to do that even though it wasn't in the > directions > > > > > > Data Driven Design > > > P.O. Box 1084 > > > Holly Hill, Florida 32125-1084 > > > > > > http://www.datadrivendesign.com > > > http://www.rossidesigns.net > > > - Original Message - > > > From: Thomas Edison Jr. > <[EMAIL PROTECTED]> > > > To: Data Driven Design > <[EMAIL PROTECTED]> > > > Cc: <[EMAIL PROTECTED]> > > > Sent: Saturday, May 05, 2001 2:44 PM > > > Subject: Re: [PHP] PHP on PWS not working! > > > > > > > > > > nothing does seem to work...i don't know what > > the > > > hell > > > > is the problem!! i did put this : > > > > > > > > > C:\\php\\sapi\\php4isapi.dll > > > > > > > > in the regedit file and it looks great. > > everything > > > is > > > > just so by the book. where the hell am i going > > > wrong!! > > > > can't understand what's different here that > was > > > not > > > > before coz it was working before!!! > > > > > > > > did you define any path in the > > > > > > > > doc_root = > > > > > > > > in php.ini? because i didn't! > > > > > > > > Cheers, > > > > T. Edison jr. > > > > > > > > > > > > > > > > > > > > = > > > > Rahul S. Johari (Director) > > > > ** > > > > Abraxas Technologies Inc. > > > > Homepage : http://www.abraxastech.com > > > > Email : [EMAIL PROTECTED] > > > > Tel : 91-4546512/4522124 > > > > *** > > > > > > > > > > __ > > > > Do You Yahoo!? > > > > Yahoo! Auctions - buy the things you want at > > great > > > prices > > > > http://auctions.yahoo.com/ > > > > > > > > -- > > > > 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] > > > > > > > > > > > > > > > > > = > > Rahul S. Johari (Director) > > ** > > Abraxas Technologies Inc. > > Homepage : http://www.abraxastech.com > > Email : [EMAIL PROTECTED] > > Tel : 91-4546512/4522124 > > *** > > > > __ > > Do You Yahoo!? > > Yahoo! Auctions - buy the things you want at great > > prices > > http://auctions.yahoo.com/ > > > > -- > > 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] > > > > > __ > Do You Yahoo!? > Yahoo! Auctions - buy the things you want at great > prices > http://auctions.yahoo.com/ > > -- > 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] > = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ -- 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]
Re: [PHP] IIS instead of PWS!!! what else can i do..
The only reason why i'm opting for pws or IIS is because i need to run ASP scripts on my PC too. I'm an ASP engineer as well and it's my Second major. So i need to work with ASP too. Does Xitami support ASP? and if it doesn't, can u tell me any other web server for the PC which will run ASP & PHP both. I do have the Jrun Server installed cause i work with JSP too. I actually need all 3 : PHP, ASP & JSP running on my PC. I'm using JRun for JSP, Apache (now, before i was using PWS) for PHP and i need something for ASP now since my PWS is not working. Regards, T. Edison jr. --- Zak Greant <[EMAIL PROTECTED]> wrote: > You may want to try Xitami (www.imatix.com) as a > fast/free/open source > alternative to the Microsoft products. > > --zak > > > - Original Message - > From: "Thomas Edison Jr." <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Sunday, May 06, 2001 12:52 AM > Subject: [PHP] IIS instead of PWS!!! what else can i > do.. > > > > i think i'm almost at the verge of giving > up...somehow > > the PWS in my system is ruined forever...i'd done > > everything..and i mean *EVERYTHING*...but PHP just > > doesn't seem to be working with my PWS. In fact, > even > > my ASP scripts are not working anymore on PWS. > I've > > uninstalled & reinstalled PWS twice already. it's > just > > *&*%^. anyways, i think i'm gonna be trying out > the > > IIS option. Is IIS ok to work with PHP4? any > problems? > > and is there anywhere on the Internet that i can > get > > IIS 4 from? > > > > thankx all yah, > > T. Edison jr. > > > > > > = > > Rahul S. Johari (Director) > > ** > > Abraxas Technologies Inc. > > Homepage : http://www.abraxastech.com > > Email : [EMAIL PROTECTED] > > Tel : 91-4546512/4522124 > > *** > > > > __ > > Do You Yahoo!? > > Yahoo! Auctions - buy the things you want at great > prices > > http://auctions.yahoo.com/ > > > > -- > > 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] > > > = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ -- 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]
Re: [PHP] IIS instead of PWS!!! what else can i do..
>Why not install all three servers (IIS/Apache/Jrun) yeah, well i'm already doing that sir. only problem is, since few days my PWS is not working. Fortunately, just minutes ago i was able to fix it so that ASP is running perfectly on PWS now. Only PHP is not. So anyway, i guess i've dropped the idea of making PHP4 run on PWS since it is not going to (somehow). So now i Am running PWS/Apache/Jrun on my PC and working with ASP, PHP & JSP. no problem. that you do mention it, can u tell me if it's better to use IIS or PWS? and where can i get IIS? Cheers, T. Edison jr. = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ -- 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]
Re: [PHP] PHP on PWS not working!
right, i can change to the CGI version immideately, as it is i have the module ver installed on my Apache. Tell me something, to make it back to the CGI ver, the only thing i have to do is to give the path in my regedit as "C:\php4\php.exe %s %s" instead of what i was giving "C:\php4\sapi\(the php dll)" ?? or is there something else also that i'll need to do? T. Edison jr. --- Phil Driscoll <[EMAIL PROTECTED]> wrote: > What is going wrong is that you are using the ISAPI > version of PHP and it is > quite unstable on anything lower than W2K. It > manifests itself in the server > 500 errors you describe and, because it kills bits > of the server, ASP dies > as well. > > Just change to the cgi installation and all should > become good. > > If you are using ASP then I think that moving to > Xitami is not an option > (someone correct me if I'm wrong with that guess). > > In the same vein, IIS only runs on NT server and W2K > so that may not be an > option - and in any case that would fall over with > the ISAPI module as well. > > Cheers > -- > Phil Driscoll > Dial Solutions > +44 (0)113 294 5112 > http://www.dialsolutions.com > http://www.dtonline.org > > > = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ -- 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]
Re: [PHP] PHP on PWS not working! : WORKING NOW!!
thankx a lot sir, i guess your guessing worked real well...after 5 days of headbanging and trying everything, it workedi did what u said...removed all references to the isapi dll and converted the php module to php cgi and it's working on PWS. i guess i'm gonan use my apache server for the Module part. thankx again. T. Edison jr. --- Phil Driscoll <[EMAIL PROTECTED]> wrote: > I dont' have PWS so I#m guessing, but you probably > have to remove the PHP > ISAPI module from the list of installed ISAPI > filters (you do have to do > this on IIS so I assume PWS is the same). No idea > where the user interface > to this might be found though. Failing all else, > deleting php4isapi.dll and > rebooting will ensure that the module is no longer > loaded in the filters > list, and as long as PWS still starts then you are > on to a winner! > > Cheers > -- > Phil Driscoll > Dial Solutions > +44 (0)113 294 5112 > http://www.dialsolutions.com > http://www.dtonline.org > = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ -- 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]
Re: [PHP] IIS instead of PWS!!! what else can i do..
Already Did sir! and am as happy as u would've been. finally i can test http authentication 2. Cheers, T. Edison jr. "We're out of our medicines and out of our minds..." --- MaD dUCK <[EMAIL PROTECTED]> wrote: > also sprach Thomas Edison Jr. (on Sat, 05 May 2001 > 11:52:34PM -0700): > > i think i'm almost at the verge of giving > up...somehow > > the PWS in my system is ruined forever...i'd done > > everything..and i mean *EVERYTHING*...but PHP just > > doesn't seem to be working with my PWS. In fact, > even > > my ASP scripts are not working anymore on PWS. > I've > > uninstalled & reinstalled PWS twice already. it's > just > > *&*%^. anyways, i think i'm gonna be trying out > the > > IIS option. Is IIS ok to work with PHP4? any > problems? > > and is there anywhere on the Internet that i can > get > > IIS 4 from? > > if i were you, and i am serious about this, then i'd > install apache on > your windoze system. it was the best move i ever > made back then when i > was still using windoze. > > martin; (greetings from the heart of > the sun.) > \ echo mailto: !#^."<*>"|tr "<*> mailto:"; > net@madduck > -- > above all, we should not wish to divest > our existence of its rich ambiguity. > > -- nietzsche > > -- > 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] > = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ -- 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]
[PHP] HTTP authentication : logout!!!
i'm using http authentication for my php pages (members area). Once you login correctly, than you can access anypage as the authentication box doesn't pop-up. Now i woul like to create a logout link after clicking on which, whenever you click on a page using auth, the auth box should pop-up again and you must feed in your user/pass. What should this logout page contain? what coding do i have to do? >From what i understand, there is a $auth which is "False" by default. When auth is succesfull, it contains "True". And once it's true, the auth box doesn't pop-up. I understand that probably clicking on this "logout" link should again make $auth false. But then $auth is on a lot of pages, how does this $auth on logout.php3 make all the other $auth's false? or is there some other way? the code i'm using for auth is : *** *** Regards, T. Edison jr. = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ -- 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]
Re: [PHP] HTTP Auth
Try using this : works excellent on any browser, apache server with PHP module. T. Edison jr. --- gary <[EMAIL PROTECTED]> wrote: > Im having a problem with Authentication uisng > $PHP_AUTH_USER and > $PHP_AUTH_PASSWORD works fine connecting via > netscape but automatically > set to false when using IE 5. Apache server , PHP > installed as a module > on a freebie server. Code below: > > // Assume user is not authenticated > > if (isset($PHP_AUTH_USER) && isset($PHP_AUTH_PW)) { > > // Connect to database > $conn = pg_pconnect ("dbname=".$db.$login); > // Select database on MySQL server > > > // Formulate the query > > $sql = "SELECT * FROM ".$table2." WHERE > username = '$PHP_AUTH_USER' AND > password = '$PHP_AUTH_PW' and valid ='y'"; > > // Execute the query and put results in $result > > $result = pg_Exec ( $sql ); > > // Get number of rows in $result. > > $num = pg_numrows( $result ); > if ( $num != 0 ) { > // A matching row was found - the user is > authenticated. > $auth = true; >} > } > if ( ! $auth ) { > header("WWW-Authentucate: Basic > realm=\"Private\"\\n"); > Header ("Status: 401 Unauthorized\n"); >header("HTTP/1.0 401 Unauthorized\n"); > echo 'Authorization Required.'; > echo 'Please go to href=./index,php?pg=REGISTER>Registration > page to Get a logon, It is Free.'; > echo > "???".$PHP_AUTH_USER."???".$PHP_AUTH_PW.""; > exit; > } else { > } > pg_close($conn); > ?> > > > -- > 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] > = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ -- 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]
[PHP] Upload & View Image
Hi, I have a penpal system running on a site. I want to add a feature wherein the person can upload his image and when somebody views the PenPal list, the uploaded image is shown next to his ad. Can we also control the Image Width & Height? I mean when the Image is displayed, it should be in a Size i want, and not any size. And also the File Size.. i dont' want very heavy images uploaded. Can that be restricted? Thanks, T. Edison jr. = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ -- 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]
Re: [PHP] Upload & View Image : Database Thingy!!!!
Malte, Thanks a lot. I was going through the File Upload Functions in the manual and i think that's what they were talking about too. Now there's just one thing. I can run the upload scripts and get the image for display too. But like i mentioned, this is for a PenPal system, a database based PenPal sysem. Basically there has to be some connection between the record entry by the user and the image. Which also be required when this record is displayed, for the corresponding image to be displayed. How migh that work? Thanks again, T. Edison jr. --- Malte Fucks <[EMAIL PROTECTED]> wrote: > I think the PHP image functions aren't what this guy > needs... > > First thing : File Uploads > You have to make a form, including an type="file" name="yourfile"> > tag, which refers to a php script like... > > if($file) > { >if(@copy($yourfile,"./$yourfile_name")) >{ >echo "$yourfile_name was uploaded > succesfully"; >} > else echo "ERROR - UPLOAD ABORTED"; > } > ?> > > $yourfile_size includes the size of the file in > bytes, use an if-statement > to check if the picture-size fits your needs... > $yourfile_type includes... guess what... the file > type.. > this should solve the upload problem... > > To control the size of an image is a matter of your > HTML... do something > like > . > Its even possible to > insert height and width-values in percent... > > > > > -- > 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] > = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ -- 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]
[PHP] ReFilling mySQL Database with CSV file!!
I have to shift my site to a new location. I have enormous records in many tables in my database which will be needed 2 be shifted to. The 'phpMyAdmin' at my site allows me make dumps of the Data in the CSV format. I haven't done this before. These are the options it gives me : 1. Structure only 2. Structure and data 3. Data only 4. CSV for Ms Excel data 5. CSV data : Fields terminated by; Fields enclosed by " Fields escaped by / Lines terminated by \r\n 6. Save as file Can someone please tell me exactly which option should i be choosing? And also, once i have chosen that and saved the lot of .csv files on my computer. What is going to be the process to re-fill the new Database & It's new tables with the data in the saved .csv File? Thanks, T. Edison Jr. = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com -- 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]
[PHP] safe mode/mkdir problem - HELP!
Hello! I'm trying to create a directory, let's say: /some/dir. My script (create_dir.cgi) is located at the cgi-bin directory and begins with #!/usr/bin/php. So it's like any other script, isn't it? The problem is: running php in safe mode with the script permissions: rwxr-xr-x 8 rootroot1234 Nov 14 12:28 create_dir.cgi I got: Warning: MkDir failed (Permission denied) in /var/www/cgi-bin/create_dir.cgi on line xxx When executing the instruction: mkdir('/some/dir', 0755); But /some permissions are: drwxr-xr-x8 root root 4096 Nov 14 12:28 /some Running in safe mode, I thought that I could use mkdir() to create it, because the ownerships are the same! Am I wrong? Safe mode only give access when the ownerships are the same. When I change the ownership to /some to the uid/gid apache is running (apache(48)/apache(48)), I get: Warning: SAFE MODE Restriction in effect. The script whose uid is 0 is not allowed to access /some/dir owned by uid 48 in /var/www/cgi-bin/create_dir.cgi on line xxx And another doubt is: running my script as a cgi, with the php binary outside the webserver tree, it runs like any other script (as written in the manual). I should be able to run it is setuid flags and get complete access, but even in this case the uid/gid that my script runs is always the webserver process uid/gid (apache/apache) I'm running RedHat Linux 7.2 with apache 1.3.22 and php 4.0.6. The php package includes the php apache module and the php binary. Thanks in advance, Roberto -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php