Re: [PHP] Geting information from XML
please i need like those classes , because i have to read from XML and insert into MySQL.. Nabil "Stephen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > There are a lot of classes that parse XML files. I can send you a few > functions I made myself to parse a paticular type of XML file. It should > help you get started. > > With bubblegum in my shoe, > Stephen Craton > Senior Executive Web Developer > Mophus.com, Inc. > > > - Original Message - > From: )> > To: "PHP List" <[EMAIL PROTECTED]> > Sent: Monday, June 30, 2003 12:58 PM > Subject: [PHP] Geting information from XML > > > Can someone tell how to get information from an XML file, without the F* > commands, in PHP? > > e.g.: > > > Hello > > > > -- > 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] timestamp problem !!
i have and i have a wrong result how can i extract the -MM-DD from the string $timy Please Advice Nabil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] timestamp problem !!
Hi Chris.. thanks but your code generate the following error Warning: date() [function.date]: Unexpected error in . what's wrong? any idea ?? "Chris Boget" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > > $timy = '20030714012548'; // time stamp from MySQL > > echo strtotime = ($timy); > > $date = ("Y-m-d" , $timy); > > ?> > > You are so very close! > > $timy = '20030714012548'; // time stamp from MySQL > echo strtotime = ($timy); > $date = date("Y-m-d" , strtotime( $timy )); > ?> > > $timy isn't a unix timestamp, which is what date() is expecting. > > Chris > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] timestamp problem !!
thanks Jason, you've been always helping me ... Please i still have some fog regading this.. can u expaling me more about the timestamp and unix timestamp... and regaring me issue i have a string with '20030714012548' what ever i got it from (because i m getting this from MSSQL some time and then read it from MySQL, and i need to desplay it in as 2003-07-14 only .. What' shall i do ? Nabil "Jason Wong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Wednesday 16 July 2003 02:00, Nabil wrote: > > > > $timy = '20030714012548'; // time stamp from MySQL > > echo strtotime = ($timy); > > $date = ("Y-m-d" , $timy); > > ?> > > > > and i have a wrong result how can i extract the -MM-DD from the > > string $timy > > MySQL TIMESTAMP != UNIX TIMESTAMP > > Look up the date/time functions in MySQL. > > -- > Jason Wong -> Gremlins Associates -> www.gremlins.biz > Open Source Software Systems Integrators > * Web Design & Hosting * Internet & Intranet Applications Development * > -- > Search the list archives before you post > http://marc.theaimsgroup.com/?l=php-general > -- > /* > Why do they put Braille dots on the keypad of the drive-up ATM? > -- Why Why Why n29 > */ > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] security- ports, your comments will be appreciated
I have an Linux server running Apache/PHP/MySQL. and I need to connect to another server running MSSQL server 7 THE POINT IS the only way I have to connect is throu ODBC connection because the network administrator only allowed me to connect thru port 1433 that ODBC uses.. I tried to make it direct connection, but this way uses many ports that the firewall won't allowed.. He said for security reasons that he can't open those ports to prevents hackers to use them ... do u think this is a true ? any advice what port the direct connection uses??? does it uses NetBIOS? if he was right ... so I have to change to ODBC I heard about FreeDTS and iODBC, but I need some advice and notes to make it easy for me.. Please HELP.. and your valuable comments will be appreciated.. Nabil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] ANY ONE CAN TELL ME WHAT PORT mssql_connect uses?
WHAT PORTS PHP USE WHEN COMUNICATING WITH MSSQL SERVER OVER THE NETWORK? IS THERE ANY SECURITY HALLS USING THIS PORTS?? I have an Linux server running Apache/PHP/MySQL. and I need to connect to another server running MSSQL server 7 THE POINT IS the only way I have to connect is throu ODBC connection because the network administrator only allowed me to connect thru port 1433 that ODBC uses.. I tried to make it direct connection, but this way uses many ports that the firewall won't allowed.. He said for security reasons that he can't open those ports to prevents hackers to use them ... do u think this is a true ? any advice what port the direct connection uses??? does it uses NetBIOS? if he was right ... so I have to change to ODBC I heard about FreeDTS and iODBC, but I need some advice and notes to make it easy for me.. Please HELP.. and your valuable comments will be appreciated.. Nabil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] fake .php extension
How can confugure Apache to execute a real php files but with fake extention like .foo or .pl or even .html? Regards Nabil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ANY ONE CAN TELL ME WHAT PORT mssql_connect uses?
how can i specify the port for the direct connection mssql_connect() can u give me some hints regarding the FreeTDS if i used it then i have to confugure the DSN in liunx am i wrong? "Michael Sims" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] On Tue, 15 Jul 2003 11:00:27 +0300, you wrote: >WHAT PORTS PHP USE WHEN COMUNICATING WITH MSSQL SERVER OVER THE NETWORK? I only have experience with MS SQL Server 7. It listens on TCP port 1433. >I have an Linux server running Apache/PHP/MySQL. >and I need to connect to another server running MSSQL server 7 > >THE POINT IS the only way I have to connect is throu ODBC connection >because the network administrator only allowed me to connect thru port 1433 >that ODBC uses.. If it's SQL version 7 then you can use this same port for a "direct" connection. I know, my companies public web site connects via this port to an SQL server behind our firewall, and has done so for well over a year without issue. >I tried to make it direct connection, but this way uses many ports that the >firewall won't allowed.. Not with version 7. >I heard about FreeDTS and iODBC, but I need some advice and notes to make it >easy for me.. FreeTDS works like a charm, it's what we use... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ANY ONE CAN TELL ME WHAT PORT mssql_connect uses?
Dear Michael; I am Requesting your help, Redhat 7.3 to connect to the remote windows MS SQL 7.0 Days and trying to use FreeTDS.. can you help please how to confiure php with sybase as you said?? because it told me mssql_connect call for undefined function... but actualy i need to use odbc_connect from linux... more info: -I need to connect from Linux box ( www server) and retrieve the data from a remote MS SQL 7 , that located on the same network.. -please note that their is a CISCO firewall between the two.. and it only allowed tcp/ip with ports 80, 443 , 1433 for ODBC... ( from windows to windows I managed, but from LINUX) -I spent a lot of time trying to use unixODBC with php-odbc , iODBC , freeTDS .. and whatever I could do, and until now I didn't find a way to connect.. and I was getting so much errors like unixODBC DSN not found ... so much painful story.. PLEASE HELP ME COZ I M GOING TO PULL MY HAIR OFF "Michael Sims" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] On Tue, 15 Jul 2003 19:36:42 +0300, you wrote: >how can i specify the port for the direct connection >mssql_connect() I've never had the need to do this, so I cannot verify that this works, but I believe you can supply a port number in the servername argument: mssql_connect('192.168.0.1:1433', 'someuser', 'somepass'); You can also define this in the FreeTDS "interfaces" file, I believe, but again I'm not sure as I use the default port. >can u give me some hints regarding the FreeTDS Read this article, it helped me out immensely when I set it all up: http://www.phpbuilder.com/columns/alberto2919.php3 >if i used it then i have to confugure the DSN in liunx am i wrong? Not sure what you mean here. If you're referring to a Windows "Data Source Name" then that is not really relevant on a Linux platform. If you have access to port 1433 on the SQL server all you need to do is to download and install FreeTDS (follow the article above for help, and when all else fails read the FreeTDS documentation), then rebuild PHP with the "--with-sybase" option. After you have done that you can simply supply an IP address or hostname to the mssql_connect() call. Give it a shot and if you run into problems I'd be glad to try an answer any specific questions you may have. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] HELP TO compile PHP in linux
HI all; Please help me to compile php as i m not so expert in Linux, i have one installed php 4.1.2, and i downloaded the 4.3.2 one.. I need to upgrade because i need the new one with iodbc support not unixODBC. and i need it with ofcourse ( mysql - gd - iodbc (odbc) - mssql - apache ) I have read so many articles all over the web, and i reffered to php.net ... MY PROBLEM is that i m new to linux and when it come to specify the DIR , i got lost... and when i make the ./configure , then make then make install ,, i got errors always .., i untared the file in /usr/local/src and after everything done , i echo phpinfo() and i got the version still there !!! I installed RedHat 7.3 ... the current php that came with redhat is perfectly working just i need to make mssql and iodbc work... so if there any other way please help me.. Please help me in details -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] HELP WITH ODBC freetds
Hiya all; I have been trying so hard to get that done.. and i posted many here. but with no hope.. here is a summury of what i did: - I tried FreeTDS as a driver with unixODBC ... - Tried to remove mysql- apache - php and recomplied them with : iodbc - Tried to try openlink driver. - tried to upgrade from redhat 7.3 to 9 as i faced do much problem with gcc compiler when i compiled php and apache.. All the above with no hope so finaly , i formated the system then i installed a clean RedHat 9 with apache and php 4.2.2 and when i echo phpinfo() i got the following BUT WHAT IS dbx and there is Micrososft SQL server and when i call odbc_connect ... i got Warning: SQL error: [unixODBC][Driver Manager]Data source name not found, and no default driver specified, SQL state IM002 in SQLConnect in /var/www/html/louai.php on line 11 if my work was right .. how can i link the driver (FreeTDS and then the DSN..) / PHP Version 4.2.2 System Linux sylvester.devel.redhat.com 2.4.20-2.41smp #1 SMP Sun Feb 9 09:29:47 EST 2003 i686 athlon i386 GNU/Linux Build Date Feb 25 2003 09:44:31 Configure Command './configure' '--host=i386-redhat-linux' '--build=i386-redhat-linux' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--enable-force-cgi-redirect' '--disable-debug' '--enable-pic' '--disable-rpath' '--enable-inline-optimization' '--with-bz2' '--with-db3' '--with-curl' '--with-dom=/usr' '--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-openssl' '--with-png' '--with-pspell' '--with-regex=system' '--with-xml' '--with-expat-dir=/usr' '--with-zlib' '--with-layout=GNU' '--enable-bcmath' '--enable-exif' '--enable-ftp' '--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-pear=/usr/share/pear' '--with-imap=shared' '--with-imap-ssl' '--with-kerberos=/usr/kerberos' '--with-ldap=shared' '--with-mysql=shared,/usr' '--with-pgsql=shared' '--with-snmp=shared,/usr' '--with-snmp=shared' '--enable-ucd-snmp-hack' '--with-unixODBC=shared' '--enable-memory-limit' '--enable-bcmath' '--enable-shmop' '--enable-versioning' '--enable-calendar' '--enable-dbx' '--enable-dio' '--enable-mcal' '--with-apxs2=/usr/sbin/apxs' Server API Apache 2.0 Filter Virtual Directory Support disabled Configuration File (php.ini) Path /etc/php.ini Scan this dir for additional .ini files /etc/php.d additional .ini files parsed /etc/php.d/imap.ini, /etc/php.d/ldap.ini, /etc/php.d/mysql.ini, /etc/php.d/odbc.ini Debug Build no Thread Safety disabled This program makes use of the Zend Scripting Language Engine: Zend Engine v1.2.0, Copyright (c) 1998-2002 Zend Technologies PHP 4 Credits Configuration PHP Core Directive Local Value Master Value allow_call_time_pass_reference On On allow_url_fopen 1 1 always_populate_raw_post_data 0 0 arg_separator.input & & arg_separator.output & & asp_tags Off Off auto_append_file no value no value auto_prepend_file no value no value browscap no value no value default_charset no value no value default_mimetype text/html text/html define_syslog_variables Off Off disable_functions no value no value display_errors On On display_startup_errors Off Off doc_root no value no value enable_dl On On error_append_string no value no value error_log no value no value error_prepend_string no value no value error_reporting 2039 2039 expose_php On On extension_dir /usr/lib/php4 /usr/lib/php4 file_uploads 1 1 gpc_order GPC GPC highlight.bg #FF #FF highlight.comment #FF9900 #FF9900 highlight.default #CC #CC highlight.html #00 #00 highlight.keyword #006600 #006600 highlight.string #CC #CC html_errors On On ignore_user_abort Off Off im
[PHP] PHP port problem
Anyone can explain to me why when we use mssql_connect to connect directly to MSSQL server mssql_connect ('192.168.0.15:1433' , 'username' , 'password') it still not communicating thru port 1433 , but it use 445 and some others protocols ... And actually I have no idea WHY!!! Because there is a firewall in the network between the Linux and the SQL server.. and it only allowed TCP port 1433, Nabil Attar Advanced Web Solutions /*** Everyone is a beginner once, and no one is an expert at everything. ***/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] libtdsodbc.so
any one has this file or even know anything about it ? thanks -- Nabil Attar Advanced Web Solutions /*** Everyone is a beginner once, and no one is an expert at everything. ***/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] libtdsodbc.so
Dear Adam ; The problem that it doesn't exist even after complilation .. ./configure --prefix=/usr/local/freetds --with-tdsver=4.2 --with-unixodbc=/u sr/lib make make install the point is that unixodbc came out of the box with redhat 9 so i tried whereis unixodbc and i then assumed to /usr/lib do u think this is the problem causes i lost libtdsodbc.so ?? "Adam Voigt" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > It comes with FreeTDS, after you compile it, > it will be in: > > /path/to/freetds/lib > > > On Tue, 2003-07-29 at 09:01, Nabil wrote: > > any one has this file or even know anything about it ? > > > > > > > > thanks > > > > -- > > Nabil Attar > > Advanced Web Solutions > > > > > > /*** > > Everyone is a beginner once, and no one is an expert at everything. > > ***/ > -- > Adam Voigt ([EMAIL PROTECTED]) > Linux/Unix Network Administrator > The Cryptocomm Group > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php source code//php-imap/ php-devel ..etc
Hi all; When I dowload the source code of php and i compiled it in linux ... Does the full source code has everything i need , because when i serach the rmps i found many packeges like php-imap / php-mssql /php-devel / php-mysql / php-ldap /php-odbc... and if i want php to be compiled with gd ,, why should i get zlib (by example)??? is there any documentation with a clear straight exapmle how do i compile it with all what i need (like apache - mysql - mssql - gd - and more ??) what exactly the php source code has packeges ??? Nabil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: on specific time in the month do script!!
No i think you get me wrong ... i have already in my web page some articles that i don't want to desplay on the first and second of every month at a specific hours... Please comment "Nabil" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > HI all; > how can i run somthing or a function that only run on every month from the > first untill the second on a specific time: > > in other word : > the first two day of every month but it end on like 2pm of the second.. > > if ( today is 1/of any month untill 2/ of the same month at XX hour ) > { return true} > else > {return false} > > > thanks > Nabil > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] on specific time in the month do script!!
HI all; how can i run somthing or a function that only run on every month from the first untill the second on a specific time: in other word : the first two day of every month but it end on like 2pm of the second.. if ( today is 1/of any month untill 2/ of the same month at XX hour ) { return true} else {return false} thanks Nabil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] TIMESTAMP -> Y-m-d
Please help me how to print a timestamp string retrived from the database, and print it as -MM-DD Nabil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ANY POSTNUKER? Security problem!
Thanks so much, it's done "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > You might still have the old cookie set with long lifetime, and while > this cookie exists, no new is created. > > nabil wrote: > > >I set the life time to 0 and still logged in even I disconnect and reconnect > >to the internet, and closed the browser,,, what do u think ? > > > > > > > >"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message > >news:[EMAIL PROTECTED] > > > > > >>If the cookie lifetime is set to 0, it will live untill the browser is > >>closed. But why don't you just log out? > >> > >>nabil wrote: > >> > >> > >> > >>>i have problem with session in postnuke. > >>> > >>>the problem is that while i m logged in as a user, if i closed the > >>> > >>> > >browser, > > > > > >>>then i logged into it again , i still logged in, and that make a security > >>>hale, as any one can use my account on my pc... (ofcourse i don't want to > >>>log out) > >>> > >>>Any solution to make my login depending on a PHP session? so if the user > >>>closed the browser , then back in , he has to put his usernme and > >>> > >>> > >password. > > > > > >>>Best Rergards > >>> > >>> > >>> > >>> > >>> > >>> > >>> > > > > > > > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: cheap PHP+SQL WebHosting
www.spiderhosts.com i'v been for so long with them, and the service is good Nabil www.cabms.org www.d2ue.com "Arcadius A." <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello! > Please, do you know of any cheap PHP+SQL web hosting company? > > I know we always get what we pay for, but I really need somethingk cheap. > > Thanks in advance. > > Arcadius. > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Any POSTNUKER, reading from two DB
Greeting, I have a postnuke site and I want to connect it to two databases in order to verify users from these databases. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] MOUNT RAID !!!!
I have one hard SCSI installed on it redhat 7.3, and I add a two other SCSI hardisk with an RAID controller , and I need to copy some files form the RAID , how can I mount them?? How to mount a RAID??? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] HARDWARE ID WITH PHP
Can anyone tell me if i can get the Hardisk serial number, by php code? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] FILE UPLOAD Q
Please help me , I want to make any user on my website to submit his CV , or any file to a temp folder, the following script create a "fupload" file , and I don't want to dump the original in it, I want to upload the file as it is, with its extension... by example Listing 9.14 A file upload script http://localhost/temps\uploads";; foreach( $HTTP_POST_FILES as $file_name => $file_array ) { print "path: ".$file_array['tmp_name']."\n"; print "name: ".$file_array['name']."\n"; print "type: ".$file_array['type']."\n"; print "size: ".$file_array['size']."\n"; if ( is_uploaded_file( $file_array['tmp_name'] ) && $file_array['type'] == "text/plain" ) { move_uploaded_file( $file_array['tmp_name'], "$file_dir/$file_name") or die ("Couldn't copy"); print "\n\n"; } } ?> / -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] HELP PLEASE
AGES AND TRYING TO FIND A GOOD RSS CREATOR , PLEASE HELP, NOTE THAT I TRIED http://www.phpclasses.org . PHP Classes Repository BUT I DIDN'T MANAGE PLEASE HELP ME -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Difference between $_POST[foo] and $_POST['foo']?
A side question along with this ,,, how can I include $_POST['foo'] in the : $sql ="select * from db where apple = '$_POST['foo']' "; without getting an error ?? should I append it as $var= $_POST['foo']; before??? Thnx Nabil "Jarmo Järvenpää" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi > > A quickie, how does the $_POST[foo] and $_POST['foo'] differ? > Both do work. > > > BR, > Jarmo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Fatal error: Call to undefined function: str_word_count()
when i use str_word_count() i got the following : Fatal error: Call to undefined function: str_word_count() and my PHP is Version 4.2.3 What is the problem ??? thanks in advance -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Header, Directory, and SESSIONs
Hi all, wish u all a good weekend.. Guys I have a question as the following: 1- In my wwwroot I have two folders : folder1 and folder2 (actually I have 14 folders) 2- In the same two folders there are same PHP files do the same job, as db jobs with different databases.. 3- I log in the users by register a session, lab lab lab ... etc 4- the logging files in the two folders are different by registering a different session value. 4- I want if any user jumped to the other directory and logged in with the correct requested password TO HAVE THE FIRST SESSION UNREGISTERED automatically, so he can't be logged in in both at same time.. and keep only the new.. and ofcourse have to re logging if he jumped back to the first one... (the reason that every folder has different DB connection, and the interface of the two section are identical.. so I need to split it .to avoid any problems with many users ) 5- what I m trying to do is , if there is a possibility to control the header.. by if { /folder1 go } else { unregister session whatever} if {/ folder2 .. } else {.} etc 6- IS IT A GOOD WAY TO DO IT , OR NOT? of cource I need a security in the first place.. I HOPE I WAS CLEAR, and thanks for your patient again... :)) Regards Nabil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Header, Directory, and SESSIONs
Hi all, wish u all a good weekend.. Guys I have a question as the following: 1- In my wwwroot I have two folders : folder1 and folder2 (actually I have 14 folders) 2- In the same two folders there are same PHP files do the same job, as db jobs with different databases.. 3- I log in the users by register a session, lab lab lab ... etc 4- the logging files in the two folders are different by registering a different session value. 4- I want if any user jumped to the other directory and logged in with the correct requested password TO HAVE THE FIRST SESSION UNREGISTERED automatically, so he can't be logged in in both at same time.. and keep only the new.. and ofcourse have to re logging if he jumped back to the first one... (the reason that every folder has different DB connection, and the interface of the two section are identical.. so I need to split it .to avoid any problems with many users ) 5- what I m trying to do is , if there is a possibility to control the header.. by if { /folder1 go } else { unregister session whatever} if {/ folder2 .. } else {.} etc 6- IS IT A GOOD WAY TO DO IT , OR NOT? of cource I need a security in the first place.. I HOPE I WAS CLEAR, and thanks for your patient again... :)) Regards Nabil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Passing Variables
use hidden field (pure html) and then u have it as $yourhiddenfield on the next page even u have the register global off.. Nabil "Jay Fitzgerald" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have been searching for an answer to this for a couple of hours now and > cant find anything. I believe that there is a secure way of doing this but > I think my brain is having a momentary lapse... > > I have these variables: > > $eventid = "1"; > $age = "15"; > > Is there a way to pass these variables to the next page so I can continue > using them without doing something like this: > > > > I would rather not have the variables be seen or known to the end user for > security reasons because they could change them in the URL. I know it has > something to do with $_GET and $_POST because I do have register_globals > set to OFF in my php file and I do not want to turn them on > > TIA > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Header, Directory, and SESSIONs
As I said before that I don't want the same user to confuse in which part of the site he is ... because as I said it is same PHP files but dealing with different databases and tables.. so I can't let him jump in between , and cause some confusion and data mess when he's entering data.. PLEASE COMMENTS "Andrew Warner" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > At 9:43 AM +0300 6/21/03, nabil wrote: > >4- I want if any user jumped to the other directory and logged in with the > >correct requested password TO HAVE THE FIRST SESSION UNREGISTERED > >automatically, so he can't be logged in in both at same time.. and keep only > >the new.. and ofcourse have to re logging if he jumped back to the first > >one... > > > If the user has the credentials to access both directories, why not > let him be logged into both directories, provided he logs into both > separately? > You can confine cookie containing session id to the site _and_ > directory user logged into so that you have have separate sessions > for both: > > in your login routine in each directory: > > session_set_cookie_params (0, dirname($_SERVER['SCRIPT_NAME']).'/'); > session_start(); > > Now when user logs into different directory, php won't even know > about session cookie from other directory. This is my understanding, > anyway. > > andrew > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: correct session format?
So what is the diffirent between : // session_start (); $_SESSION['eventid'] = 'arma2'; /// and / session_start (); session_register('arama2'); /// Regards Nabil "Thomas Seifert" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > yeah its the right way. > though I don't know what you'r trying to do with > echo " $_SESSION"; > > > Thomas > On Sat, 21 Jun 2003 09:22:39 -0500 [EMAIL PROTECTED] (Jay Fitzgerald) wrote: > > > is this the correct way to register variables via a session? > > > > [code] > > session_start (); > > $_SESSION['eventid'] = 'arma2'; > > > > print_r ($_SESSION); > > echo " $_SESSION"; > > [/code] > > > > > > [result] > > Array ( [eventid] => arma2 ) > > > > Array > > [/result] > > > > I apologize for the numerous questions, but I am trying to learn...If > > anyone would like to help off-list, my ICQ is 38823829 > > > > Jay > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] a question, need an answer
what is the diffirent between : // session_start (); $_SESSION['eventid'] = 'arma2'; /// and / session_start (); session_register('arama2'); /// Regards Nabil -- ""open source world, open mind for all"" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] please help
I have a form like: . . while($row = mysql_fetch_array($result)) { ?> > http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] apache2 with php 432
is it recommended to upgrade my production server from apache_1.3.28 to apache 2 I use with the first one php 432.. and it work like a charm!! But I tried to compile apache 2 with mysql and php on redhat 9 on a test server , but still have errors , and not managed ,, any suggestion? Best regards Nabil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Can php/mysql handle 10000s of records
I ran a script that dump thousands of records a seconds for over 100 copy.. and I got to a database with over 3,500,000 records and while I am dumping this huge date I ran also stimunasouly a select query that returned over 800, 000 record and it worked like a bullet ( this test was on P4 512M desktop pc) cheers "Adam Gerson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > From: Adam Gerson <[EMAIL PROTECTED]> > Date: Wed Jul 9, 2003 9:48:20 AM America/New_York > To: [EMAIL PROTECTED] > Subject: Can php/mysql handle 1000's of records? > > I know this questions is a little of topic, but I figured the members > of this list would have experience in this area. > > I am writing an attendance system in php/mysql for my school. We have a > little less then 1000 students. For every day of the school year one > record will be entered into a table for each student representing their > attendance status (present, absent, late, etc...). I also have several > other supporting tables for relationships. When it comes to reporting > and querying this DB I am worried that it will very quickly become very > large and slow. Can mysql handle this? Are there any techniques to > speed it up? I will trying indexing major columns. > > I have also considered keeping all previous days attendance in a > separate table from the current days attendance and moving things over > in the middle of the night. This way any operations on the current days > data will go quickly, but reports on long term things will still be > slow. Good idea? > > Thanks, > Adam > > > > > > --- > Adam Gerson > Systems Administrator / Computer Teacher > Columbia Grammar and Prep School > 212-749-6200 > [EMAIL PROTECTED] > www.cgps.org > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php, denial of service attack
I have a postnuke website and i had denial of service attack the point is the attack is one only the home php page ... with cpu 100% and few apache procceses.. Any comment ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Compiling 4.2.3 with MySQL ... what does it look for?
Hi if you compiled apache with prefix /usr/local/apache (i use apache_1.3.28.tar) and you put your mysql binary into /usr/local/mysql (i use mysql-standard-4.0.14-pc-linux-i686.tar) then you configure php (i use php-4.3.2.tar ) ./configure --prefix=/usr/local/php --with-config-file-path=/etc --with-apxs=/usr/local/apache/bin/apxs --enable-debug=no --enable-safe=mode --with-mysql=/usr/local/mysql --with-exec-dir=/usr/bin --with-regex=system I've used these combinations on a very heavy production server , and they work like a charm.. if you need any further assistance please email me back Nabil "-{ Rene Brehmer }-" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > X-posted to PHP General, PHP DB, and MySQL > > Hi gang > > Attempting to get my Linux test-server working, but ran into a problem when > "making" PHP... > > System is RedHat 8, Apache 1.3.27 (compiled myself, tested OK), MySQL 4.0.13. > > The Apache 2.0.40 and PHP 4.2.2 that came w. RH8 didn't work correctly, > thus I've ventured into my own creation. > > Trying to build PHP 4.2.3 (because that's what my webhost runs, so need > that version to test correctly) w. support for MySQL. Running > > ./configure --with-mysql=/[path to mysql] --with-apxs=/[path to apxs] > > Found the path to the apxs to be /usr/local/apache/bin/apxs, but for the > life of me I cannot figure out what path to give it for MySQL. I installed > MySQL from the the RPM files: > MySQL-client-4.0.13-0.i386.rpm > MySQL-devel-4.0.13-0.i386.rpm > MySQL-embedded-4.0.13-0.i386.rpm > MySQL-server-4.0.13-0.i386.rpm > MySQL-shared-4.0.13-0.i386.rpm > > client and server first, the rest second ... used --force to get them in, > because it complained about version issues with the one already there (even > though the package manager was told not to put the Mysql in, it still put > MySQL 3.something in...) > > When doing the configure above, I get this error: > > configure: error: Cannot find header files under /usr/include > > or whatever path I give it ... I'm having a hard time figuring out where > the RPM puts everything, and an even harder time figuring out what path to > stick to PHP ... > > Some detective work gave me these paths: > > MySQL (bins): > /usr/bin > /usr/share/mysql > MySQL daemon (mysqld): > /usr/libexec > /usr/sbin > MySQL headers (.h): > /usr/include/mysql > > I've tried them all, but they all result in the above error. Anyone care to > guess which path I should give to the configure? > > Or is it something else that causes this? > I haven't ever used MySQL before, or any other SQL for that matter, so got > 0 experience in getting the system up and running with it... > > TIA > > Rene > -- > Rene Brehmer > aka Metalbunny > > http://metalbunny.net/ > References, tools, and other useful stuff... > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] CGI Error, IIS
Why this happen with me with IIS CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] ANY ONE ANSWER ME PLEASE !
I m going to tear my hair off, I can not solve the problem.. with the stupid IIS i got the following error: The specified CGI application misbehaved by not returning a complete set of HTTP headers in php.ini cgi.rfc2616_headers = 1 cgi.force_redirect = 0 what should I do next ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP output|Buffer, PLEASE ADVISE
Hi all; In general , when you open an html file , the browser start to display and draw the tables, then start to display the pictures (on slow internet connection).. but when you make your html code inside an php the output will be different, it will buffer everything then it will pop the whole page. I have a question.. how can I make php output and display my website as stream html.. because I have a postnuke website and it take ages for popping all contents , but when I saved it as html and I upload it on the same apache server , the home page start to be displayed picture after picture and so on ... Please any advise ?? Nabil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] CAN I CASH the output of PHP SCRIPT?
Hi all; I would like to cash all the output of PHP files on my apache .. to increase the performance. To prevent PHP to work all the time to interpret and connect to myself which is slow the performance and use the CPU .. as I have very heavy loaded server.. I thought there might be a way to store all the HTML output from my PHP pages, that will apache serve instead of calling the PHP file every.. and should be a way to time the update ... Any idea ?? Nabil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] CAN I CASH the output of PHP SCRIPT?
thanks for the spell correction :)) "Becoming Digital" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] The correct spelling is "cache." I'm not trying to be a spelling and grammar freak (though I am), simply aiding your future searches on the topic. PEAR has a very nice output caching class. I haven't used it myself, but I've heard good things. I believe it was discussed recently on this very list, though it may have been in PHP Architect. I read too many things to keep track! :) Edward Dudlik Becoming Digital www.becomingdigital.com - Original Message - From: "Nabil" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, 23 September, 2003 11:11 Subject: [PHP] CAN I CASH the output of PHP SCRIPT? Hi all; I would like to cash all the output of PHP files on my apache .. to increase the performance. To prevent PHP to work all the time to interpret and connect to myself which is slow the performance and use the CPU .. as I have very heavy loaded server.. I thought there might be a way to store all the HTML output from my PHP pages, that will apache serve instead of calling the PHP file every.. and should be a way to time the update ... Any idea ?? Nabil -- 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] mySQL vs pgSQL | php vs others
Dear all; I have been using Mysql for a long time, but I have a benchmark Q. Is pgsql , better ? faster ? more reliable than mysql ? any comment ? Some people say that php is not for a very big enterprise, banking , application !! they said that java or even .NET is better ... I m against that but what do you all think ? nabil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: How to connect ms sql server in linux apache+php?
You need to use FreeTDS to connect from Linux to ms sql server. and you have to recompile php with gd and mssql (example --with-mssql=/usr/local/freetds ) I did this 2 month ago and it work with me like a charm I\on very heavy load server. for any more info , email me back Nabil "Larry Li" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] . > First I can't find something like mssql.so in extensions folder. BTW, I > also need gd2.so. How could I get them back? Any easy way to connect ms > sql server? I need migrate my site into linux apache server from win 2k > IIS. > > Thanks a lot, > Larry > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] exec command
hi all; I want to execute #useradd -d /home/all -g wahtever -s /bin/bash newuser how can I do it ... I used exec and shell_exec and system I tried all the following but with no hope exec('useradd -d /home/all -g wahtever -s /bin/bash newuser') or die ('not done'); exec('/usr/sbin/useradd -d /home/all -g wahtever -s /bin/bash newuser') or die ('not done'); shell_exec('useradd -d /home/all -g wahtever -s /bin/bash newuser') or die ('not done'); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] exec command
so when i use php exec to do it , am i using apache user (nobody) or am i using php user , is there a php user ? so what can i do ? i want to execute #useradd -d /home/all -g wahtever -s /bin/false newuser as i want to create only pop user on the system when my user make regestration.. to give him an email account any comment ? "Ray Hunter" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > I want to execute > > #useradd -d /home/all -g wahtever -s /bin/bash newuser > > You have to be root to add a user to the system...and just a heads > up...you might want to rethink doing this from apache or php. The > security implications alone make me cringe. > > -- > Ray -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] exec shell command from php
hi all; - When i run php.. what user am i using ? is it apache user (nobody) ?? - How can i execute useradd command from php ? should i write it in pearl/cgi ?? - I want to grant my user on my web a free pop account (or webmail) so i need to create an user with bin/false so he has no shell login but pop login ... how can i do this by php.. as exec('useradd ... couldn't be done only by root . what user should i do ? what solution .. i googled for virtual popuser .. and i didn't manage .. so i decided to do it this way any comment ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] still not able to exec useradd with apache
still not able to exec useradd as apache -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP Notice: Undefined variable
I got PHP Notice: Undefined variable Should I define always any var ?? when do I have do define a var?? example if I want to write -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] POST_QUERY STRING without letting php to parse it.
Greeting ; I want to get the POSTED data as it is without letting php to parse it. for example: if i posted the following from a form : abc=string&abc=string2&ayz=string3 I want to get the both abc values ... I tried extract function and all global arrays and $_POST . PLEASE NOTE that I don't want to use GET method. Please Advice Nabil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] POST_QUERY STRING without letting php to parse it.
It is working But i can not always control php.ini on the host ..!!! and i tried ini_set("always_populate_raw_post_data" , "1"); but not working , and i had to chanhe in my local php.ini ... Please Advice "Mike Migurski" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > >I want to get the POSTED data as it is without letting php to parse it. > > You may be thinking of $HTTP_RAW_POST_DATA. You should set the > always_populate_raw_post_data config option someplace if you want to use > it reliably, though. See "configuration directives" in the manual. > > - > michal migurski- contact info and pgp key: > sf/cahttp://mike.teczno.com/contact.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] POST_RAW_DATA
It is working But i can not always control php.ini on the host ..!!! and i tried ini_set("always_populate_raw_post_data" , "1"); but not working , and i had to chanhe in my local php.ini ... Please Advice >I want to get the POSTED data as it is without letting php to parse it. You may be thinking of $HTTP_RAW_POST_DATA. You should set the always_populate_raw_post_data config option someplace if you want to use it reliably, though. See "configuration directives" in the manual. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] post vars not by form
HI, Anyone can help , how to post variables from server side .. as from php page to other without HTML form and submistion ??? i want post method , to post my vars to another php on another server , then i have to read the body that will be printed by fopen ... so i can not use Location: example : i wwant to post to www.example.com?var=1&var2=2 and then read the the body from that link .. as 1 or 0 .. Regards -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] critical case, please read and comment !!
I have the following example case: 1- More than 1000 record in my MySQL database. 2- I have to submit those record via HTTP GET or POST method. 3- I have to read the confirmation message that will be printed on the remote page showing me that the vars have been inserted in the remote database. 4- of course, I have a limitation of executing time of 30 seconds and i should not modify the php.ini i did the following scenario : http://anotherwebserver/url2.php?var1=$var1$var2=$var2&var3=$var3";, "r") ; $data = fread($handle, 11); fclose($handle); if ($data == $var1) return true; else return false; } for ($i=0 ; $i 1-the problem is that the 30 second of execution time expired before i can send even 200 records. 2- in case of not connection of the remote page, and i did not get the $var1 printed ($data == $var1) then i have to re submit this record. Regards -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Hiding files away from /public_html/
greetings Would you tell us how to create a script to read these files, extract their contents and create temporary PNG/JPG/GIF files on the fly ?? in this case we can (as u said) store the pictures content in the mysql and output them when we like Regards <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi Philip, > > On 10 Jan 2004 at 12:42, Philip J. Newman wrote: > > > I want to store some images outside the /public_html/ how ever my isp > > has decided that i'm not aloud to write files in that area. Would the > > next best solution that wold be as secure to maybe put them in a folder > > with a .htaccess file in it? > > You could use an htaccess file, but: (a) the Apache web server must be configured to > allow htaccess to over-ride authentication settings (which, from what you've told us, is > something you'll have no control over); (b) you'd need to upload an htpasswd file > containing username and passwords pairs to the webserver, but wouldn't be able to > save it to an off-web directory; and (c) the htaccess file would prevent your own scripts > from accessing the image files, which would mean that the user viewing a page with a > protected image would need to type a username and password in order for the image to > be displayed. Doesn't sound like the best solution to me. > > Do you have access to a database? One solution would be to store all images on a > database and have the image files generated dinamically via PHP. That would imply in > some overhead, but it would be fairly secure. If you like the idea, let me know and I'll tell > you how I've implemented it in the past. > > Another much more complicated solution would be to rename your image files with a > PHP extension (thus protecting their contents) and create a script to read these files, > extract their contents and create temporary PNG/JPG/GIF files on the fly. > > Good luck, > > Erik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Week calculating
Greetings; I need a help here ... I want to make function that return the dates of Tuesdays in a given year Example:: Calc_Tuesdays (2004); //and it should return or echo 2004-01-06 2004-01-13 2004-01-20 2004-01-27 2004-02-03 . . etc ofcourse it should echo 5 Tuesdays in March by example so it should depends on the year not only current day+7 any help please !! Nabil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Week calculating
sorry but what do u think about this ? >>>>".$daterest.""; } } } ?> the problem that it outputs 6 weeks in March ... why ? "Nabil" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Greetings; > > I need a help here ... I want to make function that return the dates of > Tuesdays in a given year > > Example:: > > Calc_Tuesdays (2004); > > //and it should return or echo > 2004-01-06 > 2004-01-13 > 2004-01-20 > 2004-01-27 > 2004-02-03 > . > . > etc ofcourse it should echo 5 Tuesdays in March by example > so it should depends on the year not only current day+7 > > any help please !! > Nabil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP Calendar.
catch the out put of Linux exec('cal'); and for the year exec('cal 2004'); regards "Carles Xavier Munyoz Baldó" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hi, Is there any PHP function or set of PHP files that allows me to print the current month in calendar format ? Greetings. --- Carles Xavier Munyoz Baldó [EMAIL PROTECTED] http://www.unlimitedmail.net/ --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP Calendar.
"Carles Xavier Munyoz Baldó" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hi, Is there any PHP function or set of PHP files that allows me to print the current month in calendar format ? Greetings. --- Carles Xavier Munyoz Baldó [EMAIL PROTECTED] http://www.unlimitedmail.net/ --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP time zone
how can get a specific time zone, not the server time. example: if the server time is 13:15:46 I need to output that time +5hours so 18:15:46 because the hosting server time is not my local or other area time.. thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] dynamic table
Hiya, How can i draw a new AFTER FIVE in the following loop (i want to echo the records in 5 columns width tables whatever the number of records will be fetched) .. echo ''; while ($myrow = mysql_fetch_array($sql)) { echo $myrow[0]; } echo ''; regards -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP charset encoding
Hi all, I have problem storing the submitted data in the database in the right encoding. I need to use UTF-8 I need to save the Arabic text in UTF-8 encoding. I have a problem with UTF-8 and windows-1256 conversion. I wish I can understand those things, coz encoding thing will take my hair off When submitting a data from an HTML page and inserting them in MySQL: what encoding they will be ? is it the page encoding? the field size like VARCHAR 15 won't fit the same in both encoding for the same text. !! Is the font any relation with encoding? phpmyadmin doesn't support UTF-8 so dumping your data using it will screw it up is it a way to convert it inside the database... Explain to me please , or if you can tell me where to find my answers (not google) Nabil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] 'Content-Type: text/plain; charset=utf-8'
I need to echo a plain txt on my page, without any HTML tags. my problem, when I run it on my apache, the save/open screen pops up. What's wrong please help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Google Summer Of Code : The PHP Project
Dear Sir/Madam, I am a first-year student at the ENSIMAG, one of the french educational institutions in informatics, applied mathematics and telecommunications, pioneer in the field of information processing and I am writing this letter to show my deep motivation and interest to work on the PHP Project that I saw on your website. I believe that I am new to PHP but I have strong knowledges in HTML, XML and Javascript. In fact, since I was 16 years-old I have studied these languages and I developped many dynamic pages based on Javascript just for fun. Usually, I take profit from every summer to learn programmation languages (Pascal, Ada, HTML, XML, Javascript, C++...) and practicing softwares (Flash, 3D StudioMax 8, Blender on Ubuntu, Dreamweaver, Frontpage...) and my two years in preparatory school and my first year of engineering at the ENSIMAG taught me to be accurate, efficient and more autonom in learning alone and organising my work. And now I really started consulting the tutorials about PHP. I am especially interested in "Integrated Code Coverage of C and PHP Code" because I have a solid knowledge in C language (and a full-time project in C is planned at the end of this semester in ENSIMAG) but also on parsers that I am studying all along this year. I really look forward to hearing from you. Yours faithfully. Nabil KHAMASSI. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php