Re: [PHP-DB] functions, the best way to implement and arrange them..
using function is good.. I like to use it in my script.. but I do think about you should use Class because Class make your script more structure.. and you can hide your setting to make everyone unable to see or hack you system.. example.. I always like to use h1bla/h1 then i built function h1($s) actualy use function for simple task.. for moderate or complex.. use class dev arrange the script because they know the flow and that can be have if they experience 1-3 project or more. not something easy actualy On Tue, Jul 12, 2011 at 7:28 PM, Taco Mathijs Hillenaar-Meerveld tm.hillen...@gmail.com wrote: It might be a simple question for the local die-hards among here, but i'm really wondering about how developers arrange their scripts and keep their map structures. today i was looking for the best way to keep my scripts clear and to put them into maps so i have a clear overview. the same thing i would do for the scripts, using the functions i have and throwing them in 1 or more php documents. i can not find it how it should be done. is it a good idea to put a couple of functions in just 1 document? like sessions and login/logout functions? in my idea i would only need to include a document in the header of my website and then i'm done, right? some thoughts, ideas and tips would be appreciated. kind regards taco -- akan ada dimana mulut terkunci dan suara tak ada lagi.. saat itu gunakanlah HP untuk melakukan SMS!! - ini aliran bedul.. bukan aliran aneh. tertawa sebelum tertawa didepan RSJ..
Re: [PHP-DB] Online PHP-Mysql Meeting
well... i don't have idea and suddenly have busy in my work On Wed, Apr 14, 2010 at 6:43 AM, Taygun ALBAN taygun.al...@gmail.comwrote: so the topic is dead? -- Taygun ALBAN IT Manager Creativity Talent Information Technologies -- akan ada dimana mulut terkunci dan suara tak ada lagi.. saat itu gunakanlah HP untuk melakukan SMS!! - ini aliran bedul.. bukan aliran aneh. tertawa sebelum tertawa didepan RSJ..
Re: [PHP-DB] imagecopyresize???????
actualy no but if you ask in php-windows or other milis.. U will have good and quick answer On Tue, Apr 6, 2010 at 11:49 AM, Karl DeSaulniers k...@designdrumm.comwrote: Oh, I am sorry, is this not a php list? or is this strictly php to database? Karl On Apr 5, 2010, at 11:32 PM, Rasmus Lerdorf wrote: On 04/05/2010 09:03 PM, Karl DeSaulniers wrote: Hello List, I am hoping this will be a quick and easy for someone to help me with. I am trying to create an upload form that lets a user upload a product photo to the server. In the process of this upload, I want to take the file they are uploading and create two images to put on the server. Both are specific sizes. A large image and a thumbnail. I then want to throw away the file they uploaded. My question is what is the proper way to do the uploading/resizing/destroying? I have been toying with imagecopyresize, but it never works. I think I just have parameters out of order or something. Also, I would like to put a copyright on the side. I have been able to use imagestringup to do that, but it covers the image im placing it on with a transparent background and deletes the image. How do you duplicate an image with transparency? Or keep the transparency an image already has? Most grateful for any help, pointers, tuts. Wrong mailing list. But look at the example on the imagecopyresampled doc page. -Rasmus Karl DeSaulniers Design Drumm http://designdrumm.com -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- akan ada dimana mulut terkunci dan suara tak ada lagi.. saat itu gunakanlah HP untuk melakukan SMS!! - ini aliran bedul.. bukan aliran aneh. tertawa sebelum tertawa didepan RSJ..
Re: [PHP-DB] Online PHP-Mysql Meeting
that's good idea u have another tutorial to share? On Fri, Mar 19, 2010 at 7:02 PM, David McGlone da...@dmcentral.net wrote: perhaps u can editing.. u perhaps not have something to share.. but you can give something like.. comment or anything that helpfull How does a tutorial on setting up and using SMARTY sound? I use SMARTY in a lot of my projects and could probably give a tutorial on that. -- Blessings David M. I have been driven to my knees many times by the overwhelming conviction that I had nowhere else to go. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- akan ada dimana mulut terkunci dan suara tak ada lagi.. saat itu gunakanlah HP untuk melakukan SMS!! - ini aliran bedul.. bukan aliran aneh. tertawa sebelum tertawa didepan RSJ..
Re: [PHP-DB] Online PHP-Mysql Meeting
http://www.youtube.com/watch?v=y2c_S_90Syc /sob it took me 2 hours to build this decent tutorial please have look on my work *that's include the subtitle (english) I don't do dubbing.. sry On Thu, Mar 18, 2010 at 9:23 PM, Richard Dunne richarddunne1...@o2.iewrote: Well if it could be subtitled in any way, that would solve the problem, and again I say IF. Richard. - Original Message - From: David McGlone da...@dmcentral.net To: php-db@lists.php.net Sent: Thursday, March 18, 2010 12:07 PM Subject: Re: [PHP-DB] Online PHP-Mysql Meeting I think we should either consider audio or video Audio would make it impossible for the hearing impaired :-( -- Blessings David M. I have been driven to my knees many times by the overwhelming conviction that I had nowhere else to go. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- akan ada dimana mulut terkunci dan suara tak ada lagi.. saat itu gunakanlah HP untuk melakukan SMS!! - ini aliran bedul.. bukan aliran aneh. tertawa sebelum tertawa didepan RSJ..
Re: [PHP-DB] Re: help needed.
flash? why not using xml.. is the data will be update? this good aplication i think On Thu, Mar 18, 2010 at 4:10 PM, Nadim Attari na...@alienworkers.comwrote: Hello, Maybe these can help. Web Server on CD: http://ampstart.ly-le.info/ http://www.stunnix.com/ http://www.server2go-web.de/ http://www.indigostar.com/microweb.php PHP EXE Compiler/Embedder : http://www.bambalam.se/bamcompile/ p.s.: Make sure you encode your PHP codes before distributing... Vinay Kannan wrote: Hello Guys, I am developing an application, which would have a front end in Flash, and the backend would be MySQL, now what I am thinking is to package this as an exe file, similar to WAMP, which installs everything, So my exe should have all my files, the MySQL data dump and should auto install PHP, APACHE, MySQL, can something like this be done, i am sure it can be done, but how do I do it, any guidelines please? Thanks, Vinay Kannan. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- akan ada dimana mulut terkunci dan suara tak ada lagi.. saat itu gunakanlah HP untuk melakukan SMS!! - ini aliran bedul.. bukan aliran aneh. tertawa sebelum tertawa didepan RSJ..
Re: [PHP-DB] Online PHP-Mysql Meeting
i found this interesting movie well actualy is nice.. but you can't see the tutorial because it soo Small http://www.youtube.com/watch?v=ejVYBBREcLw hope this can help .. somehow On Thu, Mar 18, 2010 at 11:08 PM, Gunawan Wibisono landavi...@gmail.comwrote: http://www.youtube.com/watch?v=y2c_S_90Syc /sob it took me 2 hours to build this decent tutorial please have look on my work *that's include the subtitle (english) I don't do dubbing.. sry On Thu, Mar 18, 2010 at 9:23 PM, Richard Dunne richarddunne1...@o2.iewrote: Well if it could be subtitled in any way, that would solve the problem, and again I say IF. Richard. - Original Message - From: David McGlone da...@dmcentral.net To: php-db@lists.php.net Sent: Thursday, March 18, 2010 12:07 PM Subject: Re: [PHP-DB] Online PHP-Mysql Meeting I think we should either consider audio or video Audio would make it impossible for the hearing impaired :-( -- Blessings David M. I have been driven to my knees many times by the overwhelming conviction that I had nowhere else to go. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- akan ada dimana mulut terkunci dan suara tak ada lagi.. saat itu gunakanlah HP untuk melakukan SMS!! - ini aliran bedul.. bukan aliran aneh. tertawa sebelum tertawa didepan RSJ.. -- akan ada dimana mulut terkunci dan suara tak ada lagi.. saat itu gunakanlah HP untuk melakukan SMS!! - ini aliran bedul.. bukan aliran aneh. tertawa sebelum tertawa didepan RSJ..
Re: [PHP-DB] Online PHP-Mysql Meeting
for studi purpose.. i suggest to use subtitle.. but in my youtube.. use Caption (soft-sub) i think we should create simple.. http://www.youtube.com/watch?v=y2c_S_90Syc using close caption http://www.youtube.com/watch?v=ZrRU1k4f_zM using annotation beside.. in this youtube.. we can pause it to read i recomended create max for movie in 640x480.. no more? about the music.. sry i put strange bg music On Thu, Mar 18, 2010 at 11:52 PM, nagendra prasad nagendra802...@gmail.comwrote: This is vary nice Gunawan :) I will post my example movie tonight and see if this works. I am going to make a live working movie which will show the user as if he is sitting just next to me. I will also try to put some subtitles in it. Just thinking if anyone know a tool which can convert MP3 to text so that I can record the audio in MP3 and then I can get the whole audio into text. This would be easier for everyone while making an audio-video movie with subtitles. Just for making everyone's life easier here are few tool which we can use it while making movie clips: 1. Any screen capturing tool (Snagit will do) 2. Any Movie editing tool (Generally Window movie maker but I recommend Ulead Video studio) 3. Any video compressor tool which will reduse the size of the movie so that it would be easier to upload it. ( su...@2000 will do) Best, Guru. -- akan ada dimana mulut terkunci dan suara tak ada lagi.. saat itu gunakanlah HP untuk melakukan SMS!! - ini aliran bedul.. bukan aliran aneh. tertawa sebelum tertawa didepan RSJ..
Re: [PHP-DB] Online PHP-Mysql Meeting
perhaps u can editing.. u perhaps not have something to share.. but you can give something like.. comment or anything that helpfull On Tue, Mar 16, 2010 at 11:49 AM, David McGlone da...@dmcentral.net wrote: Hi David, I am glad that you are in. However don't worry about the presentation stuff. If you Google Online free presentation, you will find your answer. So, Guys lets start making some plan. I have created a Google spreadsheet. Please put your Ideas and topics about the meeting. Here is the link: http://spreadsheets.google.com/ccc?key=0AvOd4XuevVJndEx0dEJxZklBcEpYdi1HcFZ rT0tTcEEhl=en Please feel free to add few more columns if needed. I can't say I'm really an expert in anything, so I'm not sure what to put down just yet. I'm still trying to think what my strongest points are in PHP. -- Blessings David M. I have been driven to my knees many times by the overwhelming conviction that I had nowhere else to go. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- akan ada dimana mulut terkunci dan suara tak ada lagi.. saat itu gunakanlah HP untuk melakukan SMS!! - ini aliran bedul.. bukan aliran aneh. tertawa sebelum tertawa didepan RSJ..
Re: [PHP-DB] Online PHP-Mysql Meeting
i think i take number 3 3. MYSQL connectivity using PHP better not greedy right On Wed, Mar 17, 2010 at 10:19 PM, nagendra prasad nagendra802...@gmail.comwrote: Hi All, Here are few topics which covers basic PHP-MYSQL which I think is useful for the meeting: 1. Introduction to PHP-MYSQL 2. PHP page basic structure 3. MYSQL connectivity using PHP 4. User login tips and tricks 5. User registration and its structure 6. Search engine using PHP-MYSQL 7. Sessions 8. File manipulation handling 9. Mail function 10. Security issues I have added the above topics in the Online Meeting Google Doc Sheet in Sheet2. Please feel free to add few more points if you think its important for this meeting. Best, Guru. -- akan ada dimana mulut terkunci dan suara tak ada lagi.. saat itu gunakanlah HP untuk melakukan SMS!! - ini aliran bedul.. bukan aliran aneh. tertawa sebelum tertawa didepan RSJ..
Re: [PHP-DB] Online PHP-Mysql Meeting
I create tutorial.. perhaps you can comment my first tutorial *hope better for next tutorial On 3/15/10, Karl DeSaulniers k...@designdrumm.com wrote: We can do it at my house.. :) Sounds like a great idea. +1 Karl On Mar 14, 2010, at 8:11 PM, Gunawan Wibisono wrote: Great Idea.. I think I will share my little knowledge.. how become lazy programer *no offence.. a way to decrease your type code.. On Mon, Mar 15, 2010 at 7:56 AM, David McGlone da...@dmcentral.net wrote: On Sunday 14 March 2010 20:02:01 you wrote: well sounds interesting. It will be on a forum/blog/maillist or something Well if we could get a plan together, I can provide the forum or mailing list or blog. like that. 2010/3/15 David McGlone da...@dmcentral.net On Sunday 14 March 2010 12:26:13 Johnny Mac wrote: I'm wondering how this would work? How would the person giving the presentation do it on a mailing list or forum or whatever else there could be? I would be interested. Sounds good Johnny Mac -Original Message- From: nagendra prasad [mailto:nagendra802...@gmail.com] Sent: Sunday, March 14, 2010 10:35 AM To: PHP DB; phpexpe...@yahoogroups.com Subject: [PHP-DB] Online PHP-Mysql Meeting Hi All, Few days back I have attended Ubuntu User day meeting. In that we had few important topics about Ubuntu and few people volunteered the class and taught about Ubuntu like Installing Ubuntu, Command line and stuff like that. I was wondering if we could have the same thing for PHP. We can set few important topics and if someone is expert on that topic he/she can teach that topic in the meeting just like a classroom. What say ppl? This could be the best place for a beginner to learn about PHP stuff :) Let me know your thoughts about it? Best, Guru. -- Blessings David M. I have been driven to my knees many times by the overwhelming conviction that I had nowhere else to go. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Blessings David M. I have been driven to my knees many times by the overwhelming conviction that I had nowhere else to go. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- akan ada dimana mulut terkunci dan suara tak ada lagi.. saat itu gunakanlah HP untuk melakukan SMS!! - ini aliran bedul.. bukan aliran aneh. tertawa sebelum tertawa didepan RSJ.. Karl DeSaulniers Design Drumm http://designdrumm.com -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- akan ada dimana mulut terkunci dan suara tak ada lagi.. saat itu gunakanlah HP untuk melakukan SMS!! - ini aliran bedul.. bukan aliran aneh. tertawa sebelum tertawa didepan RSJ.. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Re: Online PHP-Mysql Meeting
dear sir.. I can't assure.. I will not busy at that time perhaps we should think off-line meting like in forum or this milis i think.. the first we can do is to build tutorial.. Like I posted earlier.. I create tutor in Youtube.. I use Movie Maker and camstudio *the sound is not include plus in youtube.. we can text it (using annotation) soo the reader have knowledge about it how about this.. for you all have something to share.. please share and all document will be put in someone place.. then we can read it.. If someone capable to build as movie... Please do soo reading is hard this day.. but if you give the movie.. HOWTO.. is help a lot On Mon, Mar 15, 2010 at 7:39 PM, nagendra prasad nagendra802...@gmail.comwrote: Hi All, I am really happy that these many people are interested in online meeting. I had thought about 2 ways to how to roll out this meeting. 1. First the person who is teaching a topic can make a presentation with audio or he can directly make a video of his topic and share it with others. After watching the presentation/video we can have a FAQ meeting about each and every topic. We can create a group in yahoo messenger and let ppl come their and ask questions about each topic. OR 2. We can fix a time and use some online presentation tool available on the net for free to roll out this meeting. http://www.google.com/#hl=ensource=hpq=free+online+presentation+toolaq=faqi=aql=oq=fp=22b4dcbb1403dc0f If someone has any other idea please reply to this mail. Best, Guru -- akan ada dimana mulut terkunci dan suara tak ada lagi.. saat itu gunakanlah HP untuk melakukan SMS!! - ini aliran bedul.. bukan aliran aneh. tertawa sebelum tertawa didepan RSJ..
[PHP-DB] Re: [PHP-WIN] Re: [PHP-DB] Cannot connect to MySQL
thx for your enlighment On Mon, Mar 8, 2010 at 2:15 AM, Venkat Raman Don don.ra...@microsoft.comwrote: Hi, Let me take a shot at explaining this in simple terms. Most of the Operating System today is building support for IPV6. IPV4 has its own set of limitation and hence the world is moving to IPV6. I am not going to explain differences between two, but for the sake of this discussion assume that they are different. A close look at PHP MySQL driver code indicates that mysql_connect() function uses mysql_real_connect() to connect to MySQL. The API mysql_real_connect() is an API which comes from MySQL dll (MySQL development team and is part of MySQL database installation). So this means the support for IPV6 in PHP MySQL driver is not possible unless there is a support for IPV6 in MySQL database. So the limitation (or no support for IPV6 or whatever word may be used to describe this situation) is coming from MySQL database limitation. So now it is clear that this is not a PHP bug in the sense that nothing can be changed in PHP code base to fix it. Let's move on to operating system concern now. A typical host file (irrespective of OS) has two columns which contains the IP address and host name binding to it. In order to support both IPV4 and IPV6 (at least on Windows) localhost is getting mapped to two IP addresses. There can be other reasons for mapping same localhost to multiple IP address. What is important is that, there is a case where we have multiple IP address pointing to same host name. A close inspection of MySQL code reveals that the function mysql_real_connect() actually tries to connect to only the first IP address returned for the hostname and if this fails, no further attempt to connect using other IP address associated with same host name is made. This can be fixed and I believe a patch is already lying in some development branch of MySQL and please follow MySQL release to know which version has this fix integrated. I do not have any idea about that. But an important thing is that this bug can surface on any OS where you have above condition satisfied for the host file. Yes WINDOWS, Ubuntu, Solaris all will and may get impacted. So this means that this is not a problem with Windows OS or for that reason any other OS. Hope this explain things. Thanks, Don. -Original Message- From: Gunawan Wibisono [mailto:landavi...@gmail.com] Sent: Sunday, March 07, 2010 7:37 AM To: php-wind...@lists.php.net; php-db@lists.php.net Subject: Re: [PHP-WIN] Re: [PHP-DB] Cannot connect to MySQL sry.. this kinda other person problem thx for your support and I kinda found this problem on other place.. Is posible.. the problem in the windows 7? On Sun, Mar 7, 2010 at 12:12 AM, Venkat Raman Don don.ra...@microsoft.comwrote: Seems like IPV6 functionality of Windows and MySQL driver is not gelling well. Please see http://bugs.php.net/bug.php?id=50172. This is also discussed in MySQL forum at http://forums.mysql.com/read.php?52,294772,294772#msg-294772. Thanks, Don. -Original Message- From: Lester Caine [mailto:les...@lsces.co.uk] Sent: Saturday, March 06, 2010 9:01 AM To: php-windows Subject: Re: [PHP-WIN] Re: [PHP-DB] Cannot connect to MySQL Gunawan Wibisono wrote: Hello, First of all, I apologise if I do something wrong, because I'm new to this weird system. For test purposes, I have installed Apache 2.2.14 with PHP 5.3.1 and MySQL 5.1.44 on Windows 7 Home Premium. However, whenever I try accessing MySQL via PHP, I get the following error: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. MySQL's command line client is still working fine. I think that PHP simply does not see MySQL, though the settings in php.ini seem to be correct. Earlier (before I upgraded to Windows 7 and PHP 5.3) it worked. I've tried turning off the antivirus, because sometimes it may cause timeouts, but it didn't help. Can someone please help me fix this? PHP does not come with any database enabled by default, so you will need to enable one. For MySQL just look in php.ini for the line ;extension=php_mysql.dll and remove the ';' at the front, and then restart Apache. The first page you should create is ?php phpinfo(); ? Which will list all the modules that are active ;) -- Lester Caine - G8HFL - Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk// Firebird - http://www.firebirdsql.org/index.php -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Re: Online PHP-Mysql Meeting
thx... I looking forward to have another tutorial On Tue, Mar 16, 2010 at 10:28 AM, win.a win@gmail.com wrote: Good idea! i'll join All you best What we are struggling for ? The life or the life ? On Tue, Mar 16, 2010 at 10:47 AM, Gunawan Wibisono landavi...@gmail.com wrote: dear sir.. I can't assure.. I will not busy at that time perhaps we should think off-line meting like in forum or this milis i think.. the first we can do is to build tutorial.. Like I posted earlier.. I create tutor in Youtube.. I use Movie Maker and camstudio *the sound is not include plus in youtube.. we can text it (using annotation) soo the reader have knowledge about it how about this.. for you all have something to share.. please share and all document will be put in someone place.. then we can read it.. If someone capable to build as movie... Please do soo reading is hard this day.. but if you give the movie.. HOWTO.. is help a lot On Mon, Mar 15, 2010 at 7:39 PM, nagendra prasad nagendra802...@gmail.comwrote: Hi All, I am really happy that these many people are interested in online meeting. I had thought about 2 ways to how to roll out this meeting. 1. First the person who is teaching a topic can make a presentation with audio or he can directly make a video of his topic and share it with others. After watching the presentation/video we can have a FAQ meeting about each and every topic. We can create a group in yahoo messenger and let ppl come their and ask questions about each topic. OR 2. We can fix a time and use some online presentation tool available on the net for free to roll out this meeting. http://www.google.com/#hl=ensource=hpq=free+online+presentation+toolaq=faqi=aql=oq=fp=22b4dcbb1403dc0f If someone has any other idea please reply to this mail. Best, Guru -- akan ada dimana mulut terkunci dan suara tak ada lagi.. saat itu gunakanlah HP untuk melakukan SMS!! - ini aliran bedul.. bukan aliran aneh. tertawa sebelum tertawa didepan RSJ.. -- akan ada dimana mulut terkunci dan suara tak ada lagi.. saat itu gunakanlah HP untuk melakukan SMS!! - ini aliran bedul.. bukan aliran aneh. tertawa sebelum tertawa didepan RSJ..
Re: [PHP-DB] Online PHP-Mysql Meeting
Great Idea.. I think I will share my little knowledge.. how become lazy programer *no offence.. a way to decrease your type code.. On Mon, Mar 15, 2010 at 7:56 AM, David McGlone da...@dmcentral.net wrote: On Sunday 14 March 2010 20:02:01 you wrote: well sounds interesting. It will be on a forum/blog/maillist or something Well if we could get a plan together, I can provide the forum or mailing list or blog. like that. 2010/3/15 David McGlone da...@dmcentral.net On Sunday 14 March 2010 12:26:13 Johnny Mac wrote: I'm wondering how this would work? How would the person giving the presentation do it on a mailing list or forum or whatever else there could be? I would be interested. Sounds good Johnny Mac -Original Message- From: nagendra prasad [mailto:nagendra802...@gmail.com] Sent: Sunday, March 14, 2010 10:35 AM To: PHP DB; phpexpe...@yahoogroups.com Subject: [PHP-DB] Online PHP-Mysql Meeting Hi All, Few days back I have attended Ubuntu User day meeting. In that we had few important topics about Ubuntu and few people volunteered the class and taught about Ubuntu like Installing Ubuntu, Command line and stuff like that. I was wondering if we could have the same thing for PHP. We can set few important topics and if someone is expert on that topic he/she can teach that topic in the meeting just like a classroom. What say ppl? This could be the best place for a beginner to learn about PHP stuff :) Let me know your thoughts about it? Best, Guru. -- Blessings David M. I have been driven to my knees many times by the overwhelming conviction that I had nowhere else to go. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Blessings David M. I have been driven to my knees many times by the overwhelming conviction that I had nowhere else to go. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- akan ada dimana mulut terkunci dan suara tak ada lagi.. saat itu gunakanlah HP untuk melakukan SMS!! - ini aliran bedul.. bukan aliran aneh. tertawa sebelum tertawa didepan RSJ..
[PHP-DB] Re: [PHP-WIN] Re: [PHP-DB] Cannot connect to MySQL
sry.. this kinda other person problem thx for your support and I kinda found this problem on other place.. Is posible.. the problem in the windows 7? On Sun, Mar 7, 2010 at 12:12 AM, Venkat Raman Don don.ra...@microsoft.comwrote: Seems like IPV6 functionality of Windows and MySQL driver is not gelling well. Please see http://bugs.php.net/bug.php?id=50172. This is also discussed in MySQL forum at http://forums.mysql.com/read.php?52,294772,294772#msg-294772. Thanks, Don. -Original Message- From: Lester Caine [mailto:les...@lsces.co.uk] Sent: Saturday, March 06, 2010 9:01 AM To: php-windows Subject: Re: [PHP-WIN] Re: [PHP-DB] Cannot connect to MySQL Gunawan Wibisono wrote: Hello, First of all, I apologise if I do something wrong, because I'm new to this weird system. For test purposes, I have installed Apache 2.2.14 with PHP 5.3.1 and MySQL 5.1.44 on Windows 7 Home Premium. However, whenever I try accessing MySQL via PHP, I get the following error: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. MySQL's command line client is still working fine. I think that PHP simply does not see MySQL, though the settings in php.ini seem to be correct. Earlier (before I upgraded to Windows 7 and PHP 5.3) it worked. I've tried turning off the antivirus, because sometimes it may cause timeouts, but it didn't help. Can someone please help me fix this? PHP does not come with any database enabled by default, so you will need to enable one. For MySQL just look in php.ini for the line ;extension=php_mysql.dll and remove the ';' at the front, and then restart Apache. The first page you should create is ?php phpinfo(); ? Which will list all the modules that are active ;) -- Lester Caine - G8HFL - Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk// Firebird - http://www.firebirdsql.org/index.php -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- akan ada dimana mulut terkunci dan suara tak ada lagi.. saat itu gunakanlah HP untuk melakukan SMS!! - ini aliran bedul.. bukan aliran aneh. tertawa sebelum tertawa didepan RSJ..
Re: [PHP-DB] Cannot connect to MySQL
you install php, apache and mysql one-by-one? how about try access other db (example: odbc) On Fri, Mar 5, 2010 at 9:33 PM, The Phantom livephan...@live.com wrote: Hello, First of all, I apologise if I do something wrong, because I'm new to this weird system. For test purposes, I have installed Apache 2.2.14 with PHP 5.3.1 and MySQL 5.1.44 on Windows 7 Home Premium. However, whenever I try accessing MySQL via PHP, I get the following error: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. MySQL's command line client is still working fine. I think that PHP simply does not see MySQL, though the settings in php.ini seem to be correct. Earlier (before I upgraded to Windows 7 and PHP 5.3) it worked. I've tried turning off the antivirus, because sometimes it may cause timeouts, but it didn't help. Can someone please help me fix this? _ Hotmail: Trusted email with powerful SPAM protection. http://clk.atdmt.com/GBL/go/201469227/direct/01/ -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- akan ada dimana mulut terkunci dan suara tak ada lagi.. saat itu gunakanlah HP untuk melakukan SMS!! - ini aliran bedul.. bukan aliran aneh. tertawa sebelum tertawa didepan RSJ..
Re: [PHP-DB] Upload_File
u should type the error here and attach the file not type in msgbox below what permision for upload folder? On Wed, Feb 10, 2010 at 6:16 PM, Bilal Ahmad engg.bilalma...@googlemail.com wrote: Hi I am trying to make a form to provide option to user to upload a file on a server.Here is the code for my upload.php. It checks all the conditions etc.. . This code works fine on localhost , and file is uploaded successfully. But when I use this script online on my server, it gives me error. couldn't figure out what is error. What I think is error in move_upload_file, but it isn't returning any error. File permissions on upload folder are 755. if((!empty($_FILES['uploaded_file'])) ($_FILES['uploaded_file']['error'] == 0)){ $ok = 0; $filename = basename($_FILES['uploaded_file']['name']); $ext = substr($filename, strrpos($filename, '.') + 1); if (($ext == jpg || gif || png) ($_FILES[uploaded_file][type] == image/jpeg || image/gif || image/png) ($_FILES[uploaded_file][size] 2097152) ){ $newname = 'upload/'.$filename; if (!file_exists($newname)) { if ((move_uploaded_file($_FILES['uploaded_file']['tmp_name'],$newname))) { $ok = 1; echo It's done! The file has been saved as: .$newname; } else { echo Error: A problem occurred during file upload!; //This one executes when ever i try to upload file on server. } } else { echo Error: File .$_FILES[uploaded_file][name]. already exists; } } else { echo Error: Only .jpg images under 2MB are accepted for upload; } } else { echo Error: No file uploaded; } Thanks Bilal Farooq Ahmad -- akan ada dimana mulut terkunci dan suara tak ada lagi.. saat itu gunakanlah HP untuk melakukan SMS!! - ini aliran bedul.. bukan aliran aneh. tertawa sebelum tertawa didepan RSJ..
Fwd: [PHP-DB] Storing images
-- Forwarded message -- From: Gunawan Wibisono landavi...@gmail.com Date: Wed, Feb 3, 2010 at 3:02 PM Subject: Re: [PHP-DB] Storing images To: Karl DeSaulniers k...@designdrumm.com u can do that... but i suggest you not put image to table since there a limit in table i found 800kb the max image size you can input in table (1 row). you should put the images in local.. but is up to you.. On Wed, Feb 3, 2010 at 2:54 PM, Karl DeSaulniers k...@designdrumm.comwrote: Ok, now here is another question from what you stated. Is there a way to compress the image data before storing, like a zip archive does to files? Thanks for your response. Karl On Feb 3, 2010, at 1:45 AM, Chaitanya Yanamadala wrote: It i possible to store the image in the database. But it will increase the database size. So try referring the URL.. Karl DeSaulniers Design Drumm http://designdrumm.com
Re: [PHP-DB] unlink problems
kesavan is right !! i see the problem in link.. u type ./blabla.pdf the main problem is in the ./ remove the ./ unless the file you want to remove are in the root On 11/25/09, Kesavan Rengarajan k...@trk7.com wrote: Looks like the PDF is not in the admin directory. Try to use the full path to the PDF file and also check the permissions on the file. Sent from my iPhone On 25/11/2009, at 9:22 PM, Neil Jackson n...@webcoza.co.za wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I use the following to delete a file on a webserver if( unlink( ./$filename ) ) { echo $filename. deleted ; $action=''; echo scriptdocument.location.href='$PHP_SELF?action=$actioncode= $code'/script; } But I get the following error Warning: unlink(./6 November 2009.pdf): No such file or directory in /srv/www/htdocs/bee_partners/admin/tenders.php on line 82 6 November 2009.pdf not deleted Any help? -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iEYEARECAAYFAksNBV4ACgkQGgk1S8edB3JqWgCfb61pxGvh+KCXNfNdWgF2kb/P xCMAn2dSOgN9AiFYX35Ga00XyxZQwGnw =NL6k -END PGP SIGNATURE- -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- akan ada dimana mulut terkunci dan suara tak ada lagi.. saat itu gunakanlah HP untuk melakukan SMS!! - ini aliran bedul.. bukan aliran aneh. tertawa sebelum tertawa didepan RSJ.. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] adding a simple WHERE clause to this MySQL query causes the result to contain 0 rows?!
read 2nd something not right.. or should show ERRORRR?? but. let's skip it.. i think you tried it and work.. soo ignore this line. uniqueDate?? why not order by id.. is the same right? It seems super easy to me; great.. i need 1 hour to understand this can you include sample from those table.. hope we can try at home and try to figure it out? John Butler wrote: Can anyone see what must be a simple error in the way I am trying to construct the 2 WHERE clauses, below? (in the latter query) These two columns in the two separate tables are of type TIMESTAMP: solarLandingDateTime solarAWDateTime The values I am passing into the query are like so var_dump($userPikStartDate); // string(10) 2009-08-04 var_dump($userPikEndDate); // string(10) 2009-08-09 This query works as expected and returns all my rows: (including ones where the 'solarLandingDateTime' or 'solarAWDateTime' column contains a TIMESTAMP like '2009-08-09 03:14:07' $query = SELECT COUNT(*) AS `CountRows_UNIQdateTblDir`, date(solarLandingDateTime) AS `uniqueDate`, solarLandingDir AS `trackingDir`, 't7solar_landing' AS `tableAlias` FROM t7solar_landing GROUP BY date(solarLandingDateTime), solarLandingDir UNION ALL SELECT count(*) AS `CountRows_UNIQdateTblDir`, date(solarAWDateTime) AS `uniqueDate`, solarAWfm_meta_adtracking AS `trackingDir`, 'aweber_7solar_aw' AS `tableAlias` FROM aweber_7solar_aw GROUP BY date(solarAWDateTime), solarAWfm_meta_adtracking ORDER BY uniqueDate DESC LIMIT 300; But thisquery returns zero rows: $query = SELECT COUNT(*) AS `CountRows_UNIQdateTblDir`, date(solarLandingDateTime) AS `uniqueDate`, solarLandingDir AS `trackingDir`, 't7solar_landing' AS `tableAlias` FROM t7solar_landing WHERE date(solarLandingDateTime) = $userPikStartDate AND date(solarLandingDateTime) = $userPikEndDate GROUP BY date(solarLandingDateTime), solarLandingDir UNION ALL SELECT count(*) AS `CountRows_UNIQdateTblDir`, date(solarAWDateTime) AS `uniqueDate`, solarAWfm_meta_adtracking AS `trackingDir`, 'aweber_7solar_aw' AS `tableAlias` FROM aweber_7solar_aw WHERE date(solarAWDateTime) = $userPikStartDate AND date(solarAWDateTime) = $userPikEndDate GROUP BY date(solarAWDateTime), solarAWfm_meta_adtracking ORDER BY uniqueDate DESC LIMIT 300; ?? Thanks for taking a look. It seems super easy to me; I don't see why it doesn't work. -John -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Move from PHP4 to PHP5 , and to Zend Platform - any gotchas? (MYSQL and SQL SERVER)
i don't know about the sql.. but i have some story. in php4, when type url like this localhost/mywork/index.php?myid=1 i able to print the 'myid' variable easyly.. but when in php5.. i must type $_GET['myid'] to have myid value. Weaver Hickerson wrote: Greetings list. We are planning to move our legacy php4/apache system to PHP5 and also move to the Zend Platform. Wondering if anyone has any gotchas/horror stories.. The system interfaces with both MySQL and SQL Server. Any thoughts appreciated! Weaver Hickerson, President LightSpeed Technology Group [EMAIL PROTECTED] 770-787-0880 ext 3011 -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Using multiple submits on a page and retaining $POST data
that's not php problem that's was javascript problem On 3/16/07, Onochie Anyanetu [EMAIL PROTECTED] wrote: Hello, and I would like to thank everyone that attempts to help me out. I have looked long and hard online before I resorted to this. My problem is that I have a page that relies on multiple submits and data from what was submitted. example: // 1. some sort of drop down // 2. submit button // 3. display data retrieved from database // 4. user enters more information // 5. second submit button, run checks to vertify all data is entered u mean when clicked.. the info like username are check whenever is valid or not?? perhaps u should try ajax // 6. enter data into database i don't get it what u mean in here?? The problem is in step 5, when the user hits the second submit and data is checked before db submission, I am losing the data displayed by the first submit button hmm i don't get it by reading at the first. i think in the 2nd page u should try to make input type=hidden name=user value=landa this input contain what previous data enter... foreach($_POST as $nm=$val){ $txt.=input type=hidden name=$nm value=$val; } echo $txt; This is what I have tried ive tried using POST and SESSION variables to display the data, but this doesnt work. this is because in my code i have an if isset statement to check if submit has been pressed, then the variables are retrieved from the db and used. when clicking the second submit button and checks are done, the top portion of the page of information retrieved by the first submit are nothing but blanks because the first submit is no longer set (using isset) my next idea was to save the variable selected in the first drop down (step 1) and requery with this selection at the second submit button to retrieve and redisplay the data. this did not work because this variable was set back to because the drop down resets itself on each submit. disabling the drop down if the first submit is set and then setting the variable did not work either because when the second submit is hit, the first submit is no longer set, so the drop down is displayed, the variable is set to and i get nothing in my variable. this also was the case if i made it a global variable. i wish to see the offline from your pages.. if able send to me so basically i have resorted to just googling things and trying out different arrangements of code to no avail. I need a way to hold the data on the top half of the screen while the bottom half is being manipulated. any, and i mean any help at this point would be GREATLY appreciated! Thank you. Onochie -- akan ada dimana mulut terkunci dan suara tak ada lagi.. saat itu gunakanlah HP untuk melakukan SMS!! - ini aliran bedul.. bukan aliran aneh. tertawa sebelum tertawa didepan RSJ.. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Using multiple submits on a page and retaining $POST data
solved On 3/16/07, Onochie Anyanetu [EMAIL PROTECTED] wrote: Hello Gunawan On your first comment, im not sure what you were referring to when you said it is a js problem on your second comment, i am talking about the user entered data. data submitted by the first submit button will always be predefined by means of the user using a selection box, the data im concerned with checking is the input boxes he will be seeing. and this wont necessarily be username/pass. and im trying to do this in php if at all possible. on your next comment, (6) i am talking about after i vertified the validity of the user typed/entered data, i will enter that into my db next comment - i knew this would be hard to describe, but i'll try again. this is to be done all on one page. and ive tried using something like: value=\$_POST['name']\ but i am having problems keeping the initial drop down at the selected choice, so whenever either submit button is pressed and the post goes to php self, the drop down is refreshed back to its starting value, which is NULL hahaha.. that's simple.. drop down menu always return to the null because u don't give selected on one of option. i have a function (build in) that's answer your problem.. if you on hurry.. i'm sory, i cant give it now.. my skrip in other comp.. select option value=base selectedsale options/option option value=base2 Buy options/option /select try this on offline i believe.. the first you enter the page.. the sale option will be selected now add 2 option then try one of the option you add have selected.. what happen next you will see the default will be change, remember erase selected forgive me.. i think it matter of js but it matter of html. fyi.. try using ajax .. i believe it make your life for comfort.. (since it don't need to refresh the page) and make your skill up. I hope that helps define my problem a little more Onochie On 3/16/07, Gunawan Wibisono [EMAIL PROTECTED] wrote: that's not php problem that's was javascript problem On 3/16/07, Onochie Anyanetu [EMAIL PROTECTED] wrote: Hello, and I would like to thank everyone that attempts to help me out. I have looked long and hard online before I resorted to this. My problem is that I have a page that relies on multiple submits and data from what was submitted. example: // 1. some sort of drop down // 2. submit button // 3. display data retrieved from database // 4. user enters more information // 5. second submit button, run checks to vertify all data is entered u mean when clicked.. the info like username are check whenever is valid or not?? perhaps u should try ajax // 6. enter data into database i don't get it what u mean in here?? The problem is in step 5, when the user hits the second submit and data is checked before db submission, I am losing the data displayed by the first submit button hmm i don't get it by reading at the first. i think in the 2nd page u should try to make input type=hidden name=user value=landa this input contain what previous data enter... foreach($_POST as $nm=$val){ $txt.=input type=hidden name=$nm value=$val; } echo $txt; This is what I have tried ive tried using POST and SESSION variables to display the data, but this doesnt work. this is because in my code i have an if isset statement to check if submit has been pressed, then the variables are retrieved from the db and used. when clicking the second submit button and checks are done, the top portion of the page of information retrieved by the first submit are nothing but blanks because the first submit is no longer set (using isset) my next idea was to save the variable selected in the first drop down (step 1) and requery with this selection at the second submit button to retrieve and redisplay the data. this did not work because this variable was set back to because the drop down resets itself on each submit. disabling the drop down if the first submit is set and then setting the variable did not work either because when the second submit is hit, the first submit is no longer set, so the drop down is displayed, the variable is set to and i get nothing in my variable. this also was the case if i made it a global variable. i wish to see the offline from your pages.. if able send to me so basically i have resorted to just googling things and trying out different arrangements of code to no avail. I need a way to hold the data on the top half of the screen while the bottom half is being manipulated. any, and i mean any help at this point would be GREATLY appreciated! Thank you. Onochie -- akan ada dimana mulut terkunci dan suara tak ada lagi.. saat itu gunakanlah HP untuk melakukan SMS!! - ini aliran bedul.. bukan aliran aneh. tertawa sebelum tertawa didepan RSJ.. -- akan ada dimana mulut terkunci dan suara tak ada lagi.. saat itu gunakanlah HP untuk melakukan SMS!! - ini aliran bedul.. bukan aliran aneh
Re: [PHP-DB] What effects MySQL connection's character set
what i read.. i conclusion. whenever the data is.. is always latin1 right?? if the data seem give strange type (example like japanese font).. it will stay on latin1 or change into apropriate data On 2/1/07, Niel Archer [EMAIL PROTECTED] wrote: Hi all Finally identified the problem. Was pretty obvious in retrospect. The mysqli class (Improved MySQL extension OO style) defaults to latin1 as a character set, regardless of what PHP is using. Simple solution is to use the set_charset method (mysqli_set_charset for non OO) on the object, which will change the connection parameter. Niel -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- akan ada dimana mulut terkunci dan suara tak ada lagi.. saat itu gunakanlah HP untuk melakukan SMS!! - ini aliran bedul.. bukan aliran aneh. tertawa sebelum tertawa didepan RSJ.. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php