כמה לינקים להפעלה בקוד
- 
					
					
					
					
 @yosafizak לא כתבת מה המטרה שלך 
- 
					
					
					
					
 @צדיק-תמים כתב בכמה לינקים להפעלה בקוד: @yosafizak לא כתבת המטרה שלך אני רוצה לעשות קוד שכאשר לוחצים עליו זה יוצר מערכת שמנתבת למערכות שונות, 
 כפי שראית בקוד,שבכל שלוחה ינתב למערכת אחרת
- 
					
					
					
					
 https://www.call2all.co.il/ym/api/UpdateExtension?token=0700000000:1234&path=ivr2:1&type=routing_yemot&routing_yemot_number=0770000000ivr2:1 - נתיב השלוחה 
 0770000000 - מספר השלוחה להעברה
- 
					
					
					
					
 @צדיק-תמים כתב בכמה לינקים להפעלה בקוד: https://www.call2all.co.il/ym/api/UpdateExtension?token=0700000000:1234&path=ivr2:1&type=routing_yemot&routing_yemot_number=0770000000ivr2:1 - נתיב השלוחה 
 0770000000 - מספר השלוחה להעברהתודה רבה, אבל זה עובד לי רק כאשר אני מריץ לינק אחד כמו בדוגמא הזו: <?php file_get_contents("https://www.call2all.co.il/ym/api/UploadTextFile?token=0700000000:1234&what=ivr2:/ext.ini&contents=type=menu") ?>אבל כאשר אני מריץ כמה לינקים זה לא עובד..... 
- 
					
					
					
					
 @yosafizak "לא עובד" לא מאפשר לי להבין איפה הבעיה 
- 
					
					
					
					
 @צדיק-תמים כתב בכמה לינקים להפעלה בקוד: @yosafizak "לא עובד" לא מאפשר לי להבין איפה הבעיה כאשר אני מריץ את הקוד כך: <?php file_get_contents("https://www.call2all.co.il/ym/api/UploadTextFile?token=0700000000:1234&what=ivr2:/ext.ini&contents=type=menu"); file_get_contents("https://www.call2all.co.il/ym/api/UploadTextFile?token=0770000000:1234&what=ivr2:/1/ext.ini&contents=type=routing_yemot&routing_yemot_number=0770000000&title="); file_get_contents("https://www.call2all.co.il/ym/api/UploadTextFile?token=0770000000:1234&what=ivr2:/2/ext.ini&contents=type=routing_yemot&routing_yemot_number=0770000000&title="); file_get_contents("https://www.call2all.co.il/ym/api/UploadTextFile?token=0770000000:1234&what=ivr2:/3/ext.ini&contents=type=routing_yemot&routing_yemot_number=0770000000&Atitle="); ?> אז זה לא עובד.....אולם כאשר אני מריץ רק לינק אחד זה עובד 
- 
					
					
					
					
 @yosafizak כתב בכמה לינקים להפעלה בקוד: @צדיק-תמים כתב בכמה לינקים להפעלה בקוד: @yosafizak "לא עובד" לא מאפשר לי להבין איפה הבעיה כאשר אני מריץ את הקוד כך: <?php file_get_contents("https://www.call2all.co.il/ym/api/UploadTextFile?token=0700000000:1234&what=ivr2:/ext.ini&contents=type=menu"); file_get_contents("https://www.call2all.co.il/ym/api/UploadTextFile?token=0770000000:1234&what=ivr2:/1/ext.ini&contents=type=routing_yemot&routing_yemot_number=0770000000&title="); file_get_contents("https://www.call2all.co.il/ym/api/UploadTextFile?token=0770000000:1234&what=ivr2:/2/ext.ini&contents=type=routing_yemot&routing_yemot_number=0770000000&title="); file_get_contents("https://www.call2all.co.il/ym/api/UploadTextFile?token=0770000000:1234&what=ivr2:/3/ext.ini&contents=type=routing_yemot&routing_yemot_number=0770000000&Atitle="); ?>זה לא הצורה שכתבתי @צדיק-תמים כתב בכמה לינקים להפעלה בקוד: https://www.call2all.co.il/ym/api/UpdateExtension?token=0700000000:1234&path=ivr2:1&type=routing_yemot&routing_yemot_number=0770000000ivr2:1 - נתיב השלוחה 
 0770000000 - מספר השלוחה להעברה
- 
					
					
					
					
 @צדיק-תמים 
 הבנתי אני רק הבאתי דוגמא....
 אני מתכוון שגם עם מה שהבאת זה לא עובד........
- 
					
					
					
					
 @yosafizak תכתוב בדיוק מה כתבת, לא דוגמה (חוץ ממספר מערכת וסיסמה שתשנה) 
 ותפרט מה הכוונה לא עובד - לא מתעדכן בקו? או שיש שגיאה?
- 
					
					
					
					
 @צדיק-תמים כתב בכמה לינקים להפעלה בקוד: @yosafizak תכתוב בדיוק מה כתבת, לא דוגמה (חוץ ממספר מערכת וסיסמה שתשנה) 
 ותפרט מה הכוונה לא עובד - לא מתעדכן בקו? או שיש שגיאה?אוקיי,אעשה זאת מחר בע"ה 
- 
					
					
					
					
 שלום, 
 אני רוצה להגיד שהסתבכתי לגמרי......................
 אז רציתי לשאול אם מישהו יכול בבקשה להביא לי את הקוד המלא ב-PHP איך לשנות את קובץ ה-ext.ini במערכת?     
 תודה רבה מראש!!!
- 
					
					
					
					
 @פיסטוק-פרווה כתב בכמה לינקים להפעלה בקוד: וכן הלאה, שים לב שבקודים האלו (גם במה שהבאת) זה רק מפעיל את הלינק מבלי להתייחס לתוצאה! איך כן מקבלים את הפלט שמתקבל בלינק, (URL). 
- 
					
					
					
					
 @אליהושש פשוט מכניסים את הפקודה למשתנה לדוגמא (מבלי קשר למה שכתוב בפקודה רק ציטוט עם תוספת משתנה) <?php $a=file_get_contents("https://www.call2all.co.il/ym/api/UploadTextFile?token=0700000000:1234&what=ivr2:/ext.ini&contents=type=menu"); ?>ואז משתנה a יכיל את התוצאה לא משנה מה זה מערך תשובת ג'סון וכולי 
- 
					
					
					
					
 בתכל'ס, מישהו יכול לתת לי את בקוד המלא שאוכל להריץ? 
- 
					
					
					
					
 @yosafizak תפרט בבקשה שוב מה בדיוק אתה רוצה שזה יריץ ואיך 
- 
					
					
					
					
 @הלי כתב בכמה לינקים להפעלה בקוד: @yosafizak תפרט בבקשה שוב מה בדיוק אתה רוצה שזה יריץ ואיך אני רוצה זה יריץ לי שלושה לינקים כאלה: https://www.call2all.co.il/ym/api/UploadTextFile?token=0770000000:1234&what=ivr2:/1/ext.ini&contents=type=routing_yemot%0Arouting_yemot_number=0770000000ומשום מה כאשר אני מריץ את הקוד הזה זה לא עובד: <?php file_get_contents("https://www.call2all.co.il/ym/api/UploadTextFile?token=0700000000:1234&what=ivr2:/ext.ini&contents=type=menu"); file_get_contents("https://www.call2all.co.il/ym/api/UploadTextFile?token=0770000000:1234&what=ivr2:/1/ext.ini&contents=type=routing_yemot%0Arouting_yemot_number=0770000000%0Atitle="); file_get_contents("https://www.call2all.co.il/ym/api/UploadTextFile?token=0770000000:1234&what=ivr2:/2/ext.ini&contents=type=routing_yemot%0Arouting_yemot_number=0770000000%0Atitle="); file_get_contents("https://www.call2all.co.il/ym/api/UploadTextFile?token=0770000000:1234&what=ivr2:/3/ext.ini&contents=type=routing_yemot%0Arouting_yemot_number=0770000000%0Atitle="); ?>יש לציין שאם אני מריץ את הקוד ככה זה כן עובד: <?php file_get_contents("https://www.call2all.co.il/ym/api/UploadTextFile?token=0700000000:1234&what=ivr2:/ext.ini&contents=type=menu") ?>
- 
					
					
					
					
 תנסה ככה ובעז"ה יעבוד. <?php $url=json_decode(file_get_contents("https://www.call2all.co.il/ym/api/UploadTextFile?token=0700000000:1234&what=ivr2:/ext.ini&contents=type=menu"), true); $url1=json_decode(file_get_contents("https://www.call2all.co.il/ym/api/UploadTextFile?token=0770000000:1234&what=ivr2:/1/ext.ini&contents=type=routing_yemot%0Arouting_yemot_number=0770000000%0Atitle="), true); $url2=json_decode(file_get_contents("https://www.call2all.co.il/ym/api/UploadTextFile?token=0770000000:1234&what=ivr2:/2/ext.ini&contents=type=routing_yemot%0Arouting_yemot_number=0770000000%0Atitle="), true); $url3=json_decode(file_get_contents("https://www.call2all.co.il/ym/api/UploadTextFile?token=0770000000:1234&what=ivr2:/3/ext.ini&contents=type=routing_yemot%0Arouting_yemot_number=0770000000%0Atitle="), true); ?>
- 
					
					
					
					
 @אליהושש כתב בכמה לינקים להפעלה בקוד: תנסה ככה ובעז"ה יעבוד. <?php $url=json_decode(file_get_contents("https://www.call2all.co.il/ym/api/UploadTextFile?token=0700000000:1234&what=ivr2:/ext.ini&contents=type=menu"), true); $url1=json_decode(file_get_contents("https://www.call2all.co.il/ym/api/UploadTextFile?token=0770000000:1234&what=ivr2:/1/ext.ini&contents=type=routing_yemot%0Arouting_yemot_number=0770000000%0Atitle="), true); $url2=json_decode(file_get_contents("https://www.call2all.co.il/ym/api/UploadTextFile?token=0770000000:1234&what=ivr2:/2/ext.ini&contents=type=routing_yemot%0Arouting_yemot_number=0770000000%0Atitle="), true); $url3=json_decode(file_get_contents("https://www.call2all.co.il/ym/api/UploadTextFile?token=0770000000:1234&what=ivr2:/3/ext.ini&contents=type=routing_yemot%0Arouting_yemot_number=0770000000%0Atitle="), true); ?>תותח!!!!!!!!! 
 עובד פצצה!!!!!
 תודה רבה לך
- 
					
					
					
					
 @אליהושש כתב בכמה לינקים להפעלה בקוד: תנסה ככה ובעז"ה יעבוד. <?php $url=file_get_contents("https://www.call2all.co.il/ym/api/UploadTextFile?token=0700000000:1234&what=ivr2:/ext.ini&contents=type=menu"); $url1=file_get_contents("https://www.call2all.co.il/ym/api/UploadTextFile?token=0770000000:1234&what=ivr2:/1/ext.ini&contents=type=routing_yemot%0Arouting_yemot_number=0770000000%0Atitle="); $url2=file_get_contents("https://www.call2all.co.il/ym/api/UploadTextFile?token=0770000000:1234&what=ivr2:/2/ext.ini&contents=type=routing_yemot%0Arouting_yemot_number=0770000000%0Atitle="); $url3=file_get_contents("https://www.call2all.co.il/ym/api/UploadTextFile?token=0770000000:1234&what=ivr2:/3/ext.ini&contents=type=routing_yemot%0Arouting_yemot_number=0770000000%0Atitle="); ?>בעיקרון זה אמור לעבוד גם ככה ולא צריך את הפקודה json_decode והעיקר להכניס למשתנה אבל לא ניסיתי 
- 
				הוזכר על-ידי Y yosafizak