After a few hours i’ve managed to clean everything up and provide some good usage examples. Check the project on Github to see some more information. Usage Examples Address Verify // Load the class require_once('../USPSAddressVerify.php'); // Initiate and set the username provided from usps $verify = new USPSAddressVerify('xxxx'); // During test mode this seems not to always work as...
apache
אחד מהאפשרויות החדשות שהוצגו ב PHP 5.3 הן האפשרות ליצור פונקציות בזמן הרצת הסקריפט, ללא צורך בהגדרת פונקציה עבור פעולה שמתבצעת ספציפית באותו המקום. Closures היא מילה נרדפת ל Lambda Function ו Anonymous Function, בדומה ל JS אפשרות זו יוצרת פונקציה וניתן להציב אותו למשתנה...
ראשית, נושא ה SVN הוא מאוד רחב, ולכן לא ניתן יהיה לכסותו בפוסט אחד בלבד. בפוסט זה אני אעבור בקצרה על מספר דברים בנוגע ל SVN. בכתיבת מדריך זה אני עובד עם MacBook Pro, ואני עובד מול Versions שהוא ה SVN CLIENT שלי. השרת הוא שרת מקומי ואני משתמש בשורת הפקודות כדי להריץ את...
לפעמים אתה צריך לוודא שהמשתמש צופה באתר תחת SSL ישנה דרך פשוטה לבצע פעולה זו על ידי הכרחת המשתמש לצפות באתר תחת הקידומת HTTPS ולא HTTP בכדי לבצע זאת כל מה שליכם לעשות הוא להוסיף את השורות הבאות לקובץ ה .htaccess בשרת: RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$...
Sometimes you may need to make sure that the user is browsing your site over securte connection. An easy to way to always redirect the user to secure connection (https://) can be accomplished with a .htaccess file containing the following lines: RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.example.com/$1 [R,L] Please, note that the .htaccess should be located in the web site main folder. In case you wish to...
Mod_Rewrite Tips and Tricks are lot of .htaccess rewrite examples that show specific uses for creating .htaccess rewrites to do all kinds of cool and profitable stuff for your site. Htaccess Rewrites are enabled by using the Apache module mod_rewrite, which is one of the most powerful Apache modules and features availale. Htaccess Rewrites through mod_rewrite provide the special ability to Rewrite requests internally as well as Redirect...
בפוסט הקודם דנו בסוגיה של Zend Server לעומת שאר שרתי ווב הקיימים כבר. אם תקראו את הפוסט הקודם תוכלו לראות ששחר הגיב והציג את היתרונות בשימוש שלו לעומת אחרים, כמו כן גם נשאלה השאלה באמת מה יהיה יותר יעיל כשזה מגיע לשימוש באפליקציות ווב למיניהם על שרתי Zend...
אני מניח שכל אחד מכם שעוסק בתכנות משתדל כמה שיותר שכל מה שנכתב יהיה כמה שיותר בטוח, וכמה שיותר מהיר. לכן בדרך כלל דרוש איזה כלי כדי לבדוק כמה זמן בידיוק לוקח לכל אפליקציה/מערכת להטען (תחת עומסים כמובן ולא לבקשה אחת) לכן חשבתי לשתף בלי שאני משתמש בו...





Latest Comments